From owner-p4-projects@FreeBSD.ORG Mon Oct 24 18:36:23 2011 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D229A106567A; Mon, 24 Oct 2011 18:36:22 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95004106566B for ; Mon, 24 Oct 2011 18:36:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:4f8:fff6::2d]) by mx1.freebsd.org (Postfix) with ESMTP id 8261C8FC0C for ; Mon, 24 Oct 2011 18:36:22 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id p9OIaMkF082570 for ; Mon, 24 Oct 2011 18:36:22 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id p9OIaMCJ082567 for perforce@freebsd.org; Mon, 24 Oct 2011 18:36:22 GMT (envelope-from jhb@freebsd.org) Date: Mon, 24 Oct 2011 18:36:22 GMT Message-Id: <201110241836.p9OIaMCJ082567@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 200658 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2011 18:36:23 -0000 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