summaryrefslogtreecommitdiff
path: root/io/sys/stat.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-01-05 10:32:47 +0000
committerRoland McGrath <roland@gnu.org>2006-01-05 10:32:47 +0000
commitc90c5d4106a2903a40cc3213f8d172e5c6c7ffd6 (patch)
treedfe6853619664e591436f68e5a60f9330db82612 /io/sys/stat.h
parent06dc5bf35af0b12ff1b62960baf2abb844834e05 (diff)
downloadglibc-c90c5d4106a2903a40cc3213f8d172e5c6c7ffd6.tar.gz
* io/sys/stat.h [__USE_GNU]: Declare fchmodat.
* io/fchmodat.c: New file. * io/Makefile (routines): Add fchmodat. * io/Versions (libc: GLIBC_2.4): Likewise. * sysdeps/unix/sysv/linux/fchmodat.c: New file. * io/tst-fchmodat.c: New file. * io/Makefile (tests): Add it.
Diffstat (limited to 'io/sys/stat.h')
-rw-r--r--io/sys/stat.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 6ce3a1be66..93cd7d0610 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1992,1995-2004,2005 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1995-2004,2005,2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -293,6 +293,14 @@ extern int lchmod (__const char *__file, __mode_t __mode)
extern int fchmod (int __fd, __mode_t __mode) __THROW;
#endif
+#ifdef __USE_GNU
+/* Set file access permissions of FILE relative to
+ the directory FD is open on. */
+extern int fchmodat (int __fd, __const char *__file, __mode_t mode, int __flag)
+ __THROW __nonnull ((2)) __wur;
+#endif /* Use GNU. */
+
+
/* Set the file creation mask of the current process to MASK,
and return the old creation mask. */