NetBSD/lib/libc/sys
jmmv 2a3e5eeb7c Apply the NFS exports list rototill patch:
- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
  function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
  file sys/nfs/nfs_export.c.  The former was becoming large and its code
  is always compiled, regardless of the build options.  Using the latter,
  the code is only compiled in when NFSSERVER is enabled.  While doing this,
  also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
  path and a set of export entries.  At the moment it can only clear the
  exports list or append entries, one by one, but it is done in a way that
  allows setting the whole set of entries atomically in the future (see the
  comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
  that it becomes file system agnostic.  In fact, all this whole thing was
  done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
  exports initialization; done internally by the kernel when initializing
  the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
  subsystems can run arbitrary code upon receipt of specific VFS events.
  At the moment, this only provides support for unmount and is used to
  destroy NFS exports lists from the file systems being unmounted, though it
  has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.
2005-09-23 12:10:31 +00:00
..
Lint_Ovfork.c
Lint___clone.c Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
Lint___syscall.c Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
Lint___vfork14.c
Lint_brk.c
Lint_clone.c Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
Lint_exect.c
Lint_getcontext.c Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
Lint_pipe.c
Lint_ptrace.c
Lint_sbrk.c
Lint_syscall.c Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
Makefile.inc compat core reorg. 2005-09-13 01:44:08 +00:00
__semctl13.c Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
_brk.c compat core reorg. 2005-09-13 01:44:08 +00:00
_exit.2 Use St -isoC-9X instead of St -isoC9X, to be in sync with groff. 2003-09-08 17:54:31 +00:00
_fork.c compat core reorg. 2005-09-13 01:44:08 +00:00
_getcontext.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
_lwp_create.2 Use 2003-04-16 13:34:34 +00:00
_lwp_exit.2 Use 2003-04-16 13:34:34 +00:00
_lwp_getprivate.2 Use 2003-04-16 13:34:34 +00:00
_lwp_self.2 Use 2003-04-16 13:34:34 +00:00
_lwp_suspend.2 Use 2003-04-16 13:34:34 +00:00
_lwp_wait.2 Use 2003-04-16 13:34:34 +00:00
_lwp_wakeup.2 Use 2003-04-16 13:34:34 +00:00
_pipe.c compat core reorg. 2005-09-13 01:44:08 +00:00
_sbrk.c compat core reorg. 2005-09-13 01:44:08 +00:00
accept.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
access.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
acct.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
adjtime.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
adjtime.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
bind.2 Remove unnecessary parentheses. Add comma in enumeration. 2005-09-10 22:27:39 +00:00
brk.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
chdir.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
chflags.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
chmod.2 Add EPERM to fchmod() failure list. 2005-01-06 16:30:52 +00:00
chown.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
chroot.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
clock_settime.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
clock_settime.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
clone.2 Use 2003-04-16 13:34:34 +00:00
close.2 Don't refer to errno as "global integer variable". 2004-06-01 16:12:51 +00:00
connect.2 Bump date for previous. 2004-05-18 14:53:47 +00:00
dup.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
execve.2 Change HISTORY. It traces execve only back to 4.2BSD, and it is a 2005-05-07 17:29:19 +00:00
extattr_get_file.2 Sort sections and SEE ALSO. Remove superfluous comma. 2005-01-02 18:28:48 +00:00
fcntl.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
fdatasync.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
fhopen.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
flock.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
fork.2 Do not xref ourselves; grammar fixes. 2004-06-25 15:29:25 +00:00
fsync.2 Extend fsync_range(2) to support the FDISKSYNC flag, which requests 2005-01-25 23:55:20 +00:00
ftruncate.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getcontext.2 Use .In instead of .Fd. 2003-04-16 16:09:04 +00:00
getdents.2 d_namlen is now 16-bit. 2005-09-05 21:58:38 +00:00
getfh.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
getgid.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getgroups.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
getitimer.2 Add an article. 2004-08-14 11:04:29 +00:00
getlogin.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
getpeername.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getpgrp.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getpid.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getpriority.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
getrlimit.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
getrusage.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
getsid.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
getsockname.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getsockopt.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
gettimeofday.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
getuid.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getvfsstat.2 Mark up NULL, and fix a minus. 2004-04-21 12:16:00 +00:00
intro.2 Note ENOATTR; from FreeBSD. 2005-01-20 13:23:57 +00:00
ioctl.2 Bump date for FIONWRITE and FIONSPACE. 2004-11-08 16:15:42 +00:00
issetugid.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
kill.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
kqueue.2 Reference kfilter_register(9) rather than the non-existent kfilter_register(2). 2003-12-09 19:49:53 +00:00
ktrace.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
lfs_bmapv.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
lfs_markv.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
lfs_segclean.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
lfs_segwait.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
link.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
listen.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
lseek.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
lseek.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
madvise.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
makelintstub uuidgen(2) syscall. Originally from FreeBSD, ported by John Franklin in 2004-01-29 02:00:02 +00:00
mincore.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
minherit.2 Use Rv for return values section; bump date. 2003-11-19 16:50:09 +00:00
mkdir.2 Document that mkdir("/", x) returns EISDIR. According to POSIX this is not 2005-09-17 06:08:03 +00:00
mkfifo.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
mknod.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
mlock.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
mlockall.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
mmap.2 Note that MAP_ANON memory is zero filled. 2004-10-04 18:14:48 +00:00
mmap.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
mount.2 Lowercase after semicolon. 2005-08-05 13:21:13 +00:00
mprotect.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
msgctl.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
msgget.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
msgrcv.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
msgsnd.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
msync.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
munmap.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
nanosleep.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
nfssvc.2 Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
ntp_adjtime.2 Use 2003-04-16 13:34:34 +00:00
ntp_adjtime.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
open.2 document the flags O_ALT_IO and O_NOCTTY 2005-08-11 10:35:24 +00:00
pathconf.2 Fix typo. 2005-08-14 07:28:29 +00:00
pipe.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
pmc_control.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
poll.2 Crank the copyright year. 2005-03-10 19:53:22 +00:00
pread.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
preadv.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
profil.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
ptrace.2 document PT_DUMPCORE. 2005-01-09 17:41:19 +00:00
pwrite.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
pwritev.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
quotactl.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
rasctl.2 fix a typo 2004-01-11 16:05:27 +00:00
read.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
readlink.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
reboot.2 Minor grammar fixes. 2004-11-21 10:45:08 +00:00
recv.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
rename.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
revoke.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
rmdir.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
sa_enable.2 "Upcall handlers should be registered" -> "An upcall handler ..." 2004-03-14 23:05:09 +00:00
sa_register.2 Fix macro usage, use Dv for SA_FLAG_STACKINFO, and English nits. 2004-03-14 10:19:59 +00:00
sa_setconcurrency.2 sync with kernel. 2005-09-05 21:57:35 +00:00
sa_stacks.2 Bump date for last. 2004-12-12 05:56:45 +00:00
sa_yield.2 - note its typical usage. 2004-05-09 11:28:58 +00:00
select.2 nil pointer -> null pointer 2005-03-09 22:28:52 +00:00
semctl.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
semget.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
semop.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
send.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
setgroups.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
setpgid.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
setregid.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
setreuid.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
setsid.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
settimeofday.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
setuid.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
shmat.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
shmctl.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
shmget.2 \- is a minus, not -. 2004-05-13 10:10:46 +00:00
shutdown.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
sigaction.2 mention that SIG_IGN on SIGCHLD does not produce zombies. 2005-03-30 17:09:28 +00:00
sigaltstack.2 Add restrict qualifiers to remaining <signal.h> function arguments. 2005-03-22 20:25:31 +00:00
sigpending.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
sigprocmask.2 Add restrict qualifiers to remaining <signal.h> function arguments. 2005-03-22 20:25:31 +00:00
sigstack.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
sigsuspend.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
sigtimedwait.2 Use 2003-04-16 13:34:34 +00:00
sigtimedwait.c add POSIX sigtimedwait(), sigwaitinfo(), sigwait() - wait for queued signals 2003-02-15 21:11:47 +00:00
sigwait.c add POSIX sigtimedwait(), sigwaitinfo(), sigwait() - wait for queued signals 2003-02-15 21:11:47 +00:00
sigwaitinfo.c add POSIX sigtimedwait(), sigwaitinfo(), sigwait() - wait for queued signals 2003-02-15 21:11:47 +00:00
socket.2 Add missing colon symbol after sentence. 2004-11-03 13:11:41 +00:00
socketpair.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
stat.2 - Correct the fields in the stat structure. From PR/18255. 2005-06-14 12:10:02 +00:00
statvfs.2 Xref statvfs(5). 2004-04-21 21:25:59 +00:00
statvfs.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
swapctl.2 Remove the bogus const. 2005-05-29 21:12:27 +00:00
swapon.3 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
swapon.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
symlink.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
sync.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
sysarch.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
syscall.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
timer_create.2 Spelling fix. 2004-03-14 10:36:09 +00:00
timer_delete.2 Various fixes. 2003-09-14 09:02:49 +00:00
timer_settime.2 Various fixes. 2003-09-14 09:02:49 +00:00
truncate.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
truncate.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
umask.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
undelete.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
unlink.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
utimes.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
utrace.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00
uuidgen.2 Comment back in cross-references to other man pages, was looking at a non-recent 2005-01-30 18:13:04 +00:00
vfork.2 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
wait.2 Put the description of "options" in a new paragraph, for consistency 2004-05-24 05:52:52 +00:00
write.2 \- is a minus, not -. 2004-05-13 10:20:57 +00:00