[Lsb-messages] /var/www/bzr/lsb/devel/lsbspec r3902: add some constants for POSIX 2008 (bug 3469)

Mats Wichmann mats at linuxfoundation.org
Sun Mar 10 14:01:05 UTC 2013


------------------------------------------------------------
revno: 3902
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: lsbspec
timestamp: Sun 2013-03-10 08:01:05 -0600
message:
  add some constants for POSIX 2008 (bug 3469)
modified:
  LSB/generic/baselib/baselib.sgml
  LSB/generic/baselib/libc.sgml
-------------- next part --------------
=== modified file 'LSB/generic/baselib/baselib.sgml'
--- a/LSB/generic/baselib/baselib.sgml	2013-03-09 00:36:28 +0000
+++ b/LSB/generic/baselib/baselib.sgml	2013-03-10 14:01:05 +0000
@@ -4003,6 +4003,7 @@
 </PARA>
 <SCREEN>
 
+#define AT_FDCWD	-100	/* Use the current working directory to determine the target of relative file paths. */
 #define POSIX_FADV_NORMAL	0
 #define O_RDONLY	00
 #define O_ACCMODE	0003
@@ -4015,10 +4016,17 @@
 #define O_EXCL	0200
 #define O_APPEND	02000
 #define O_ASYNC	020000
+#define O_CLOEXEC	02000000	/* The FD_CLOEXEC flag associated with the new descriptor shall be set to close the file descriptor upon execution of an exec family function. */
 #define O_NOCTTY	0400
 #define O_NDELAY	04000
 #define O_NONBLOCK	04000
 #define O_SYNC	04010000
+#define AT_SYMLINK_NOFOLLOW	0x100	/* Do not follow symbolic links. */
+#define AT_EMPTY_PATH	0x1000	/* Allow empty relative pathname. */
+#define AT_EACCESS	0x200	/* Check access using effective user and group ID. */
+#define AT_REMOVEDIR	0x200	/* Remove directory instead of file. */
+#define AT_SYMLINK_FOLLOW	0x400	/* Follow symbolic link. */
+#define AT_NO_AUTOMOUNT	0x800	/* Suppress terminal automount traversal. */
 #define FD_CLOEXEC	1
 #define POSIX_FADV_RANDOM	1
 #define POSIX_FADV_SEQUENTIAL	2
@@ -8070,6 +8078,8 @@
 #define S_ISLNK(m)	(((m)&amp;S_IFMT)==S_IFLNK)
 #define S_ISREG(m)	(((m)&amp;S_IFMT)==S_IFREG)
 #define S_ISSOCK(m)	(((m)&amp;S_IFMT)==S_IFSOCK)
+#define UTIME_NOW	((1l &lt;&lt; 30) - 1l)
+#define UTIME_OMIT	((1l &lt;&lt; 30) - 2l)
 #define S_TYPEISMQ(buf)	((buf)->st_mode - (buf)->st_mode)
 #define S_TYPEISSEM(buf)	((buf)->st_mode - (buf)->st_mode)
 #define S_TYPEISSHM(buf)	((buf)->st_mode - (buf)->st_mode)

=== modified file 'LSB/generic/baselib/libc.sgml'
--- a/LSB/generic/baselib/libc.sgml	2013-03-09 00:36:28 +0000
+++ b/LSB/generic/baselib/libc.sgml	2013-03-10 14:01:05 +0000
@@ -3934,6 +3934,7 @@
 </PARA>
 <SCREEN>
 
+#define AT_FDCWD	-100	/* Use the current working directory to determine the target of relative file paths. */
 #define POSIX_FADV_NORMAL	0
 #define O_RDONLY	00
 #define O_ACCMODE	0003
@@ -3946,10 +3947,17 @@
 #define O_EXCL	0200
 #define O_APPEND	02000
 #define O_ASYNC	020000
+#define O_CLOEXEC	02000000	/* The FD_CLOEXEC flag associated with the new descriptor shall be set to close the file descriptor upon execution of an exec family function. */
 #define O_NOCTTY	0400
 #define O_NDELAY	04000
 #define O_NONBLOCK	04000
 #define O_SYNC	04010000
+#define AT_SYMLINK_NOFOLLOW	0x100	/* Do not follow symbolic links. */
+#define AT_EMPTY_PATH	0x1000	/* Allow empty relative pathname. */
+#define AT_EACCESS	0x200	/* Check access using effective user and group ID. */
+#define AT_REMOVEDIR	0x200	/* Remove directory instead of file. */
+#define AT_SYMLINK_FOLLOW	0x400	/* Follow symbolic link. */
+#define AT_NO_AUTOMOUNT	0x800	/* Suppress terminal automount traversal. */
 #define FD_CLOEXEC	1
 #define POSIX_FADV_RANDOM	1
 #define POSIX_FADV_SEQUENTIAL	2
@@ -8001,6 +8009,8 @@
 #define S_ISLNK(m)	(((m)&amp;S_IFMT)==S_IFLNK)
 #define S_ISREG(m)	(((m)&amp;S_IFMT)==S_IFREG)
 #define S_ISSOCK(m)	(((m)&amp;S_IFMT)==S_IFSOCK)
+#define UTIME_NOW	((1l &lt;&lt; 30) - 1l)
+#define UTIME_OMIT	((1l &lt;&lt; 30) - 2l)
 #define S_TYPEISMQ(buf)	((buf)->st_mode - (buf)->st_mode)
 #define S_TYPEISSEM(buf)	((buf)->st_mode - (buf)->st_mode)
 #define S_TYPEISSHM(buf)	((buf)->st_mode - (buf)->st_mode)



More information about the lsb-messages mailing list