PERFORCE change 200658 for review
John Baldwin
jhb at FreeBSD.org
Mon Oct 24 18:36:23 UTC 2011
http://p4web.freebsd.org/@@200658?ac=10
Change 200658 by jhb at jhb_jhbbsd on 2011/10/24 18:35:39
Better visibility for posix_fadvise(), and sort the prototypes
while here (reduces number of #if's).
Affected files ...
.. //depot/projects/fadvise/sys/sys/fcntl.h#4 edit
Differences ...
==== //depot/projects/fadvise/sys/sys/fcntl.h#4 (text+ko) ====
@@ -309,22 +309,20 @@
__BEGIN_DECLS
int open(const char *, int, ...);
int creat(const char *, mode_t);
+#if __BSD_VISIBLE
+int fadvise(int, off_t, off_t, int);
+#endif
int fcntl(int, int, ...);
+#if __BSD_VISIBLE
+int flock(int, int);
+#endif
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
int openat(int, const char *, int, ...);
#endif
-#if __BSD_VISIBLE
-int fadvise(int, off_t, off_t, int);
-#endif
-#if __POSIX_VISIBLE >= 200112
+#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
int posix_fadvise(int, off_t, off_t, int);
-#endif
-#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
int posix_fallocate(int, off_t, off_t);
#endif
-#if __BSD_VISIBLE
-int flock(int, int);
-#endif
__END_DECLS
#endif
More information about the p4-projects
mailing list