Date: Mon, 24 Oct 2011 18:36:22 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 200658 for review Message-ID: <201110241836.p9OIaMCJ082567@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@200658?ac=10 Change 200658 by jhb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110241836.p9OIaMCJ082567>