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

Mats Wichmann mats at linuxfoundation.org
Sun Mar 10 13:51:48 UTC 2013


------------------------------------------------------------
revno: 2096
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: build_env
timestamp: Sun 2013-03-10 07:51:48 -0600
message:
  add some constants for POSIX 2008 (bug 3469)
modified:
  headers/All/5.0/fcntl.h.defs
  headers/All/5.0/sys/stat.h.defs
  headers/fcntl.h
  headers/sys/stat.h
  package/Makefile
-------------- next part --------------
=== modified file 'headers/All/5.0/fcntl.h.defs'
--- a/headers/All/5.0/fcntl.h.defs	2013-02-04 19:04:09 +0000
+++ b/headers/All/5.0/fcntl.h.defs	2013-03-10 13:51:48 +0000
@@ -1,4 +1,5 @@
 
+#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
@@ -11,10 +12,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

=== modified file 'headers/All/5.0/sys/stat.h.defs'
--- a/headers/All/5.0/sys/stat.h.defs	2013-03-06 23:47:19 +0000
+++ b/headers/All/5.0/sys/stat.h.defs	2013-03-10 13:51:48 +0000
@@ -6,6 +6,8 @@
 #define S_ISLNK(m)	(((m)&S_IFMT)==S_IFLNK)
 #define S_ISREG(m)	(((m)&S_IFMT)==S_IFREG)
 #define S_ISSOCK(m)	(((m)&S_IFMT)==S_IFSOCK)
+#define UTIME_NOW	((1l << 30) - 1l)
+#define UTIME_OMIT	((1l << 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 'headers/fcntl.h'
--- a/headers/fcntl.h	2013-02-04 19:04:09 +0000
+++ b/headers/fcntl.h	2013-03-10 13:51:48 +0000
@@ -145,7 +145,15 @@
 #endif				/* __LSB_VERSION__ >= 4.0 */
 
 #if __LSB_VERSION__ >= 50
+#define AT_FDCWD	-100	/* Use the current working directory to determine the target of relative file paths. */
+#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_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 O_RSYNC	O_SYNC
 #endif				/* __LSB_VERSION__ >= 5.0 */
 

=== modified file 'headers/sys/stat.h'
--- a/headers/sys/stat.h	2013-03-06 23:47:19 +0000
+++ b/headers/sys/stat.h	2013-03-10 13:51:48 +0000
@@ -106,6 +106,11 @@
 #endif
 #endif				/* __LSB_VERSION__ >= 3.2 */
 
+#if __LSB_VERSION__ >= 50
+#define UTIME_NOW	((1l << 30) - 1l)
+#define UTIME_OMIT	((1l << 30) - 2l)
+#endif				/* __LSB_VERSION__ >= 5.0 */
+
 
 
 #if __LSB_VERSION__ >= 20

=== modified file 'package/Makefile'
--- a/package/Makefile	2013-03-09 00:27:37 +0000
+++ b/package/Makefile	2013-03-10 13:51:48 +0000
@@ -46,7 +46,7 @@
 
 # We define this here instead of directly in the spec file as
 # we need to be able to work out what the produced rpm files will be called
-RPM_PACKAGE_RELEASE=6
+RPM_PACKAGE_RELEASE=7
 
 # Initialize LIB64 to proper value for 64-bit architectures
 export LIB64:=$(shell case `uname -m` in (ppc64 | s390x | x86_64) echo 64 ;; esac)



More information about the lsb-messages mailing list