This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.11-111-ge00a72e
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 12 Jan 2010 05:11:54 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.11-111-ge00a72e
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via e00a72ef5e8c9801d14dc2ece38a8fd03e3d11d8 (commit)
from f8c1b120d49dc9a19a7e392d0e5d2cc4015f818b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e00a72ef5e8c9801d14dc2ece38a8fd03e3d11d8
commit e00a72ef5e8c9801d14dc2ece38a8fd03e3d11d8
Author: Ulrich Drepper <drepper@redhat.com>
Date: Mon Jan 11 21:11:29 2010 -0800
Fix up sys/stat.h for XPG7.
diff --git a/ChangeLog b/ChangeLog
index 003377e..16638da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-01-11 Ulrich Drepper <drepper@redhat.com>
+ * io/sys/stat.h: Declare fchmod for XPG7.
+ * conform/data/sys/stat.h-data: Fix up for XPG7.
+
* termios/termios.h: Define pid_t for XPG7.
* conform/data/math.h-data: Fix up for XPG6 and XPG7.
diff --git a/conform/data/sys/stat.h-data b/conform/data/sys/stat.h-data
index 72c656f..df39fd3 100644
--- a/conform/data/sys/stat.h-data
+++ b/conform/data/sys/stat.h-data
@@ -20,8 +20,10 @@ element {struct stat} blksize_t st_blksize
element {struct stat} blkcnt_t st_blocks
#endif
+#if !defined POSIX && !defined POSIX2008
type blkcnt_t
type blksize_t
+#endif
type dev_t
type ino_t
type mode_t
@@ -30,7 +32,7 @@ type uid_t
type gid_t
type off_t
type time_t
-# ifdef XOPEN2K8
+# if defined XOPEN2K8 || defined POSIX2008
type {struct timespec}
element {struct timespec} time_t tv_sec
element {struct timespec} long tv_nsec
@@ -107,8 +109,6 @@ function int mkfifoat (int, const char*, mode_t)
# endif
# if !defined POSIX && !defined POSIX2008
function int mknod (const char*, mode_t, dev_t)
-# endif
-# if defined XOPEN2K8 || defined POSIX2008
function int mknodat (int, const char*, mode_t, dev_t)
# endif
function int stat (const char*, struct stat*)
diff --git a/io/sys/stat.h b/io/sys/stat.h
index c21801d..733a927 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -29,7 +29,7 @@
#include <bits/types.h> /* For __mode_t and __dev_t. */
#if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC \
- || defined __USE_ATFILE
+ || defined __USE_ATFILE
# if defined __USE_XOPEN || defined __USE_XOPEN2K
# define __need_time_t
# endif
@@ -293,7 +293,7 @@ extern int lchmod (__const char *__file, __mode_t __mode)
#endif
/* Set file access permissions of the file FD is open on to MODE. */
-#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
+#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
extern int fchmod (int __fd, __mode_t __mode) __THROW;
#endif
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 3 +++
conform/data/sys/stat.h-data | 6 +++---
io/sys/stat.h | 4 ++--
3 files changed, 8 insertions(+), 5 deletions(-)
hooks/post-receive
--
GNU C Library master sources