From owner-p4-projects@FreeBSD.ORG Wed Oct 26 19:00:26 2011 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D1483106564A; Wed, 26 Oct 2011 19:00:25 +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 5AEE81065670 for ; Wed, 26 Oct 2011 19:00:25 +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 2FD138FC19 for ; Wed, 26 Oct 2011 19:00:25 +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 p9QJ0PD8075443 for ; Wed, 26 Oct 2011 19:00:25 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id p9QJ0Pme075440 for perforce@freebsd.org; Wed, 26 Oct 2011 19:00:25 GMT (envelope-from jhb@freebsd.org) Date: Wed, 26 Oct 2011 19:00:25 GMT Message-Id: <201110261900.p9QJ0Pme075440@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 200777 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: Wed, 26 Oct 2011 19:00:26 -0000 http://p4web.freebsd.org/@@200777?ac=10 Change 200777 by jhb@jhb_jhbbsd on 2011/10/26 19:00:17 First cut at libc bits for fadvise(2). Affected files ... .. //depot/projects/fadvise/lib/libc/gen/Makefile.inc#2 edit .. //depot/projects/fadvise/lib/libc/gen/Symbol.map#2 edit .. //depot/projects/fadvise/lib/libc/gen/pfadvise.c#1 add .. //depot/projects/fadvise/lib/libc/sys/Makefile.inc#2 edit .. //depot/projects/fadvise/lib/libc/sys/Symbol.map#2 edit .. //depot/projects/fadvise/lib/libc/sys/fadvise.2#1 add .. //depot/projects/fadvise/lib/libc/sys/madvise.2#2 edit Differences ... ==== //depot/projects/fadvise/lib/libc/gen/Makefile.inc#2 (text+ko) ==== @@ -22,7 +22,7 @@ initgroups.c isatty.c isinf.c isnan.c jrand48.c lcong48.c \ lockf.c lrand48.c mrand48.c nftw.c nice.c \ nlist.c nrand48.c opendir.c \ - pause.c pmadvise.c popen.c posix_spawn.c \ + pause.c pfadvise.c pmadvise.c popen.c posix_spawn.c \ psignal.c pututxline.c pw_scan.c pwcache.c \ raise.c readdir.c readpassphrase.c rewinddir.c \ scandir.c seed48.c seekdir.c semctl.c \ ==== //depot/projects/fadvise/lib/libc/gen/Symbol.map#2 (text) ==== @@ -381,6 +381,10 @@ setutxent; }; +FBSD_1.3 { + posix_fadvise; +}; + FBSDprivate_1.0 { /* needed by thread libraries */ __thr_jtable; ==== //depot/projects/fadvise/lib/libc/sys/Makefile.inc#2 (text+ko) ==== @@ -80,7 +80,7 @@ bind.2 brk.2 cap_enter.2 cap_new.2 chdir.2 chflags.2 \ chmod.2 chown.2 chroot.2 clock_gettime.2 close.2 closefrom.2 \ connect.2 cpuset.2 cpuset_getaffinity.2 dup.2 execve.2 _exit.2 \ - extattr_get_file.2 fcntl.2 fhopen.2 flock.2 fork.2 fsync.2 \ + extattr_get_file.2 fadvise.2 fcntl.2 fhopen.2 flock.2 fork.2 fsync.2 \ getdirentries.2 getdtablesize.2 \ getfh.2 getfsstat.2 getgid.2 getgroups.2 getitimer.2 getlogin.2 \ getloginclass.2 getpeername.2 getpgrp.2 getpid.2 getpriority.2 \ @@ -141,6 +141,7 @@ extattr_get_file.2 extattr_set_fd.2 \ extattr_get_file.2 extattr_set_file.2 \ extattr_get_file.2 extattr_set_link.2 +MLINKS+=fadvise.2 posix_fadvise.2 MLINKS+=fhopen.2 fhstat.2 fhopen.2 fhstatfs.2 MLINKS+=getdirentries.2 getdents.2 MLINKS+=getfh.2 lgetfh.2 ==== //depot/projects/fadvise/lib/libc/sys/Symbol.map#2 (text) ==== @@ -378,6 +378,10 @@ setloginclass; }; +FBSD_1.3 { + fadvise; +}; + FBSDprivate_1.0 { ___acl_aclcheck_fd; __sys___acl_aclcheck_fd; @@ -539,6 +543,8 @@ __sys_extattr_set_link; _extattrctl; __sys_extattrctl; + _fadvise; + __sys_fadvise; _fchdir; __sys_fchdir; _fchflags; ==== //depot/projects/fadvise/lib/libc/sys/madvise.2#2 (text+ko) ==== @@ -166,6 +166,7 @@ was specified and the process does not have superuser privileges. .El .Sh SEE ALSO +.Xr fadvise 2 , .Xr mincore 2 , .Xr mprotect 2 , .Xr msync 2 ,