summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-03-31 12:14:04 +0000
committerkib <kib@FreeBSD.org>2008-03-31 12:14:04 +0000
commit2ad0eb2d91aa816f59ca8be579d30e4b4a5dc788 (patch)
tree01ab711c3d38413d1f4d7a5f2a4b8eb6ba3b8d7d /sys/sys
parent5c017b360f4996ed64753b8bfc0fa13a974bf4a8 (diff)
downloadFreeBSD-src-2ad0eb2d91aa816f59ca8be579d30e4b4a5dc788.zip
FreeBSD-src-2ad0eb2d91aa816f59ca8be579d30e4b4a5dc788.tar.gz
Add the libc glue and headers definitions for the *at() syscalls.
Based on the submission by rdivacky, sponsored by Google Summer of Code 2007 Reviewed by: rwatson, rdivacky Tested by: pho
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/fcntl.h1
-rw-r--r--sys/sys/stat.h6
-rw-r--r--sys/sys/time.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h
index c455436..f6f5b8d 100644
--- a/sys/sys/fcntl.h
+++ b/sys/sys/fcntl.h
@@ -272,6 +272,7 @@ __BEGIN_DECLS
int open(const char *, int, ...);
int creat(const char *, mode_t);
int fcntl(int, int, ...);
+int openat(int, const char *, int, ...);
#if __BSD_VISIBLE
int flock(int, int);
#endif
diff --git a/sys/sys/stat.h b/sys/sys/stat.h
index 10a3739..4b70d19 100644
--- a/sys/sys/stat.h
+++ b/sys/sys/stat.h
@@ -330,6 +330,12 @@ int mknod(const char *, mode_t, dev_t);
#endif
int stat(const char * __restrict, struct stat * __restrict);
mode_t umask(mode_t);
+#if __BSD_VISIBLE
+int fstatat(int, const char *, struct stat *, int);
+int mkdirat(int, const char *, mode_t);
+int mkfifoat(int, const char *, mode_t);
+int mknodat(int, const char *, mode_t, dev_t);
+#endif
__END_DECLS
#endif /* !_KERNEL */
diff --git a/sys/sys/time.h b/sys/sys/time.h
index 3ece2c1..b12b6d8 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -321,6 +321,7 @@ int lutimes(const char *, const struct timeval *);
int setitimer(int, const struct itimerval *, struct itimerval *);
int settimeofday(const struct timeval *, const struct timezone *);
int utimes(const char *, const struct timeval *);
+int futimesat(int, const char *, const struct timeval [2]);
__END_DECLS
#endif /* !_KERNEL */
OpenPOWER on IntegriCloud