mirror of
https://sourceware.org/git/glibc.git
synced 2025-05-19 05:53:43 +03:00
Fix up sys/stat.h for XPG7.
This commit is contained in:
parent
f8c1b120d4
commit
e00a72ef5e
@ -1,5 +1,8 @@
|
|||||||
2010-01-11 Ulrich Drepper <drepper@redhat.com>
|
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.
|
* termios/termios.h: Define pid_t for XPG7.
|
||||||
|
|
||||||
* conform/data/math.h-data: Fix up for XPG6 and XPG7.
|
* conform/data/math.h-data: Fix up for XPG6 and XPG7.
|
||||||
|
@ -20,8 +20,10 @@ element {struct stat} blksize_t st_blksize
|
|||||||
element {struct stat} blkcnt_t st_blocks
|
element {struct stat} blkcnt_t st_blocks
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined POSIX && !defined POSIX2008
|
||||||
type blkcnt_t
|
type blkcnt_t
|
||||||
type blksize_t
|
type blksize_t
|
||||||
|
#endif
|
||||||
type dev_t
|
type dev_t
|
||||||
type ino_t
|
type ino_t
|
||||||
type mode_t
|
type mode_t
|
||||||
@ -30,7 +32,7 @@ type uid_t
|
|||||||
type gid_t
|
type gid_t
|
||||||
type off_t
|
type off_t
|
||||||
type time_t
|
type time_t
|
||||||
# ifdef XOPEN2K8
|
# if defined XOPEN2K8 || defined POSIX2008
|
||||||
type {struct timespec}
|
type {struct timespec}
|
||||||
element {struct timespec} time_t tv_sec
|
element {struct timespec} time_t tv_sec
|
||||||
element {struct timespec} long tv_nsec
|
element {struct timespec} long tv_nsec
|
||||||
@ -107,8 +109,6 @@ function int mkfifoat (int, const char*, mode_t)
|
|||||||
# endif
|
# endif
|
||||||
# if !defined POSIX && !defined POSIX2008
|
# if !defined POSIX && !defined POSIX2008
|
||||||
function int mknod (const char*, mode_t, dev_t)
|
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)
|
function int mknodat (int, const char*, mode_t, dev_t)
|
||||||
# endif
|
# endif
|
||||||
function int stat (const char*, struct stat*)
|
function int stat (const char*, struct stat*)
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include <bits/types.h> /* For __mode_t and __dev_t. */
|
#include <bits/types.h> /* For __mode_t and __dev_t. */
|
||||||
|
|
||||||
#if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC \
|
#if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC \
|
||||||
|| defined __USE_ATFILE
|
|| defined __USE_ATFILE
|
||||||
# if defined __USE_XOPEN || defined __USE_XOPEN2K
|
# if defined __USE_XOPEN || defined __USE_XOPEN2K
|
||||||
# define __need_time_t
|
# define __need_time_t
|
||||||
# endif
|
# endif
|
||||||
@ -293,7 +293,7 @@ extern int lchmod (__const char *__file, __mode_t __mode)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set file access permissions of the file FD is open on to MODE. */
|
/* 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;
|
extern int fchmod (int __fd, __mode_t __mode) __THROW;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user