summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2009-03-04 03:33:21 +0000
committerdas <das@FreeBSD.org>2009-03-04 03:33:21 +0000
commit40cb57e44ebefc7049ca738b55723388e0ac4ba9 (patch)
treebb8e21d132ad1a715288dbe4e27e308eff9f83d5
parent8dcc83a1d4116213cc0c5df1b7a162c6730a30e3 (diff)
downloadFreeBSD-src-40cb57e44ebefc7049ca738b55723388e0ac4ba9.zip
FreeBSD-src-40cb57e44ebefc7049ca738b55723388e0ac4ba9.tar.gz
Add openat to the POSIX.1-2008 namespace.
-rw-r--r--sys/sys/fcntl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h
index c3cbc51..6e69d5d 100644
--- a/sys/sys/fcntl.h
+++ b/sys/sys/fcntl.h
@@ -278,7 +278,9 @@ __BEGIN_DECLS
int open(const char *, int, ...);
int creat(const char *, mode_t);
int fcntl(int, int, ...);
+#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
int openat(int, const char *, int, ...);
+#endif
#if __BSD_VISIBLE
int flock(int, int);
#endif
OpenPOWER on IntegriCloud