diff options
| author | perry <perry@NetBSD.org> | 1998-02-02 05:20:24 +0000 |
|---|---|---|
| committer | perry <perry@NetBSD.org> | 1998-02-02 05:20:24 +0000 |
| commit | a5c24028fa4dc4c5087fdd2318c1495842967607 (patch) | |
| tree | 9bd744e9c7311515e59964c1d7bd5f45b5ed458e /lib | |
| parent | f94197be4a83a6fd372b4d22113976db7b006f0c (diff) | |
merge lite-2
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/sys/Makefile.inc | 95 | ||||
| -rw-r--r-- | lib/libc/sys/brk.2 | 14 | ||||
| -rw-r--r-- | lib/libc/sys/chflags.2 | 17 | ||||
| -rw-r--r-- | lib/libc/sys/execve.2 | 23 | ||||
| -rw-r--r-- | lib/libc/sys/getfsstat.2 | 41 | ||||
| -rw-r--r-- | lib/libc/sys/getitimer.2 | 9 | ||||
| -rw-r--r-- | lib/libc/sys/getsockopt.2 | 6 | ||||
| -rw-r--r-- | lib/libc/sys/gettimeofday.2 | 15 | ||||
| -rw-r--r-- | lib/libc/sys/intro.2 | 11 | ||||
| -rw-r--r-- | lib/libc/sys/mmap.2 | 32 | ||||
| -rw-r--r-- | lib/libc/sys/mount.2 | 27 | ||||
| -rw-r--r-- | lib/libc/sys/msync.2 | 14 | ||||
| -rw-r--r-- | lib/libc/sys/munmap.2 | 10 | ||||
| -rw-r--r-- | lib/libc/sys/quotactl.2 | 6 | ||||
| -rw-r--r-- | lib/libc/sys/sigaltstack.2 | 8 | ||||
| -rw-r--r-- | lib/libc/sys/sigsuspend.2 | 10 | ||||
| -rw-r--r-- | lib/libc/sys/stat.2 | 6 | ||||
| -rw-r--r-- | lib/libc/sys/statfs.2 | 38 | ||||
| -rw-r--r-- | lib/libc/sys/undelete.2 | 2 |
19 files changed, 254 insertions, 130 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 1ef0a101b07..5829549384a 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,5 +1,5 @@ -# $NetBSD: Makefile.inc,v 1.78 1998/01/05 02:29:04 thorpej Exp $ -# @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 +# $NetBSD: Makefile.inc,v 1.79 1998/02/02 05:20:24 perry Exp $ +# @(#)Makefile.inc 8.3 (Berkeley) 10/24/94 # sys sources .PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/sys ${.CURDIR}/sys @@ -31,35 +31,32 @@ SRCS+= timer_create.c timer_delete.c timer_gettime.c timer_settime.c \ timer_getoverrun.c # modules with default implementations on all architectures: -ASM= accept.o access.o acct.o adjtime.o bind.o chdir.o chflags.o chmod.o \ - chown.o chroot.o \ - clock_getres.o clock_gettime.o clock_settime.o \ - close.o connect.o dup.o dup2.o execve.o fchdir.o \ - fchflags.o fchmod.o fchown.o fcntl.o flock.o fpathconf.o \ - __fstat13.o fstatfs.o fsync.o futimes.o \ - getdents.o getfh.o getfsstat.o \ - getgroups.o getitimer.o __getlogin.o getpeername.o getpgid.o \ - getpgrp.o getpriority.o getrlimit.o getrusage.o \ - getsockname.o getsockopt.o gettimeofday.o ioctl.o kill.o \ - ktrace.o lchmod.o lchown.o __lstat13.o \ - lfs_bmapv.o lfs_markv.o lfs_segclean.o lfs_segwait.o link.o \ - listen.o lutimes.o madvise.o mincore.o minherit.o \ - mkdir.o mkfifo.o mknod.o mlock.o \ - mount.o mprotect.o msgctl.o msgget.o msgrcv.o msgsnd.o __msync13.o \ - munlock.o munmap.o nanosleep.o nfssvc.o ntp_adjtime.o ntp_gettime.o \ - open.o pathconf.o poll.o \ - profil.o quotactl.o \ - read.o readlink.o readv.o reboot.o \ - recvfrom.o recvmsg.o rename.o revoke.o \ - rmdir.o select.o semconfig.o semget.o semop.o sendmsg.o sendto.o \ - setegid.o seteuid.o setgid.o setgroups.o setitimer.o setpgid.o \ - setpriority.o setregid.o setreuid.o \ - setrlimit.o setsid.o setsockopt.o settimeofday.o \ - setuid.o shmat.o shmctl.o shmdt.o shmget.o shutdown.o sigaction.o \ - __sigaltstack14.o socket.o socketpair.o __stat13.o statfs.o swapctl.o \ - symlink.o sysarch.o umask.o undelete.o unlink.o unmount.o \ - utimes.o vadvise.o wait4.o write.o writev.o __semctl.o __syscall.o \ - __sysctl.o +ASM= accept.o access.o acct.o adjtime.o bind.o chdir.o chflags.o \ + chmod.o chown.o chroot.o clock_getres.o clock_gettime.o \ + clock_settime.o close.o connect.o dup.o dup2.o execve.o \ + fchdir.o fchflags.o fchmod.o fchown.o fcntl.o flock.o \ + fpathconf.o __fstat13.o fstatfs.o fsync.o futimes.o \ + getdents.o getfh.o getfsstat.o getgroups.o getitimer.o \ + __getlogin.o getpeername.o getpgid.o getpgrp.o \ + getpriority.o getrlimit.o getrusage.o getsockname.o \ + getsockopt.o gettimeofday.o ioctl.o kill.o ktrace.o \ + lchmod.o lchown.o __lstat13.o lfs_bmapv.o lfs_markv.o \ + lfs_segclean.o lfs_segwait.o link.o listen.o lutimes.o \ + madvise.o mincore.o minherit.o mkdir.o mkfifo.o mknod.o \ + mlock.o mount.o mprotect.o msgctl.o msgget.o msgrcv.o \ + msgsnd.o __msync13.o munlock.o munmap.o nanosleep.o \ + nfssvc.o ntp_adjtime.o ntp_gettime.o open.o pathconf.o \ + poll.o profil.o quotactl.o read.o readlink.o readv.o \ + reboot.o recvfrom.o recvmsg.o rename.o revoke.o rmdir.o \ + select.o semconfig.o semget.o semop.o sendmsg.o sendto.o \ + setegid.o seteuid.o setgid.o setgroups.o setitimer.o \ + setpgid.o setpriority.o setregid.o setreuid.o setrlimit.o \ + setsid.o setsockopt.o settimeofday.o setuid.o shmat.o \ + shmctl.o shmdt.o shmget.o shutdown.o sigaction.o \ + __sigaltstack14.o socket.o socketpair.o __stat13.o statfs.o \ + swapctl.o symlink.o sysarch.o umask.o undelete.o unlink.o \ + unmount.o utimes.o vadvise.o wait4.o write.o writev.o \ + __semctl.o __syscall.o __sysctl.o PASM= ${ASM:.o=.po} SASM= ${ASM:.o=.so} @@ -171,26 +168,26 @@ LintSysPseudoNoerr.c: ${.CURDIR}/sys/makelintstub \ @sh ${.CURDIR}/sys/makelintstub -o ${.TARGET} -p \ -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDONOERR} -MAN+= accept.2 access.2 acct.2 adjtime.2 bind.2 brk.2 chdir.2 chflags.2 \ - chmod.2 chown.2 chroot.2 close.2 connect.2 dup.2 execve.2 _exit.2 \ - fcntl.2 flock.2 fork.2 fsync.2 getdents.2 getdirentries.3 getfh.2 \ - getfsstat.2 getgid.2 getgroups.2 getitimer.2 getlogin.2 getpeername.2 \ - getpgrp.2 getpid.2 getpriority.2 getrlimit.2 getrusage.2 getsockname.2 \ - getsockopt.2 gettimeofday.2 getuid.2 intro.2 ioctl.2 kill.2 ktrace.2 \ - link.2 listen.2 lseek.2 mkdir.2 \ - mkfifo.2 mknod.2 madvise.2 mincore.2 minherit.2 \ - mlock.2 mmap.2 mount.2 mprotect.2 msgctl.2 msgget.2 msgrcv.2 \ - msgsnd.2 msync.2 munmap.2 nanosleep.2 nfssvc.2 open.2 pathconf.2 \ - pipe.2 poll.2 \ - profil.2 ptrace.2 quotactl.2 read.2 readlink.2 reboot.2 recv.2 \ - rename.2 revoke.2 rmdir.2 select.2 semctl.2 semget.2 semop.2 \ - send.2 setgroups.2 setpgid.2 setregid.2 setreuid.2 setsid.2 setuid.2 \ - shmat.2 shmctl.2 shmget.2 \ +MAN+= accept.2 access.2 acct.2 adjtime.2 bind.2 brk.2 chdir.2 \ + chflags.2 chmod.2 chown.2 chroot.2 close.2 connect.2 dup.2 \ + execve.2 _exit.2 fcntl.2 flock.2 fork.2 fsync.2 getdents.2 \ + getdirentries.3 getfh.2 getfsstat.2 getgid.2 getgroups.2 \ + getitimer.2 getlogin.2 getpeername.2 getpgrp.2 getpid.2 \ + getpriority.2 getrlimit.2 getrusage.2 getsockname.2 \ + getsockopt.2 gettimeofday.2 getuid.2 intro.2 ioctl.2 kill.2 \ + ktrace.2 link.2 listen.2 lseek.2 mkdir.2 mkfifo.2 mknod.2 \ + madvise.2 mincore.2 minherit.2 mlock.2 mmap.2 mount.2 \ + mprotect.2 msgctl.2 msgget.2 msgrcv.2 msgsnd.2 msync.2 \ + munmap.2 nanosleep.2 nfssvc.2 open.2 pathconf.2 pipe.2 \ + poll.2 profil.2 ptrace.2 quotactl.2 read.2 readlink.2 \ + reboot.2 recv.2 rename.2 revoke.2 rmdir.2 select.2 semctl.2 \ + semget.2 semop.2 send.2 setgroups.2 setpgid.2 setregid.2 \ + setreuid.2 setsid.2 setuid.2 shmat.2 shmctl.2 shmget.2 \ shutdown.2 sigaction.2 sigaltstack.2 sigpending.2 \ sigprocmask.2 sigreturn.2 sigstack.2 sigsuspend.2 socket.2 \ - socketpair.2 stat.2 statfs.2 swapctl.2 swapon.3 symlink.2 sync.2 \ - sysarch.2 syscall.2 truncate.2 umask.2 unlink.2 utimes.2 vfork.2 \ - wait.2 write.2 + socketpair.2 stat.2 statfs.2 swapctl.2 swapon.3 symlink.2 \ + sync.2 sysarch.2 syscall.2 truncate.2 umask.2 undelete.2 \ + unlink.2 utimes.2 vfork.2 wait.2 write.2 MLINKS+=brk.2 sbrk.2 MLINKS+=dup.2 dup2.2 diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2 index 45248853551..0c9da0d824a 100644 --- a/lib/libc/sys/brk.2 +++ b/lib/libc/sys/brk.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: brk.2,v 1.9 1997/09/27 19:23:34 hubertf Exp $ +.\" $NetBSD: brk.2,v 1.10 1998/02/02 05:20:25 perry Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)brk.2 8.2 (Berkeley) 12/11/93 +.\" @(#)brk.2 8.4 (Berkeley) 5/1/95 .\" -.Dd December 11, 1993 +.Dd May 1, 1995 .Dt BRK 2 .Os BSD 4 .Sh NAME @@ -105,8 +105,8 @@ e.g. for the definition of .Em etext ) . .Sh RETURN VALUES -.Nm Brk -returns a pointer to the new end of memory if successful; +.Nm brk +returns 0 if successful; otherwise -1 with .Va errno set to indicate why the allocation failed. @@ -117,7 +117,9 @@ otherwise -1 with .Va errno set to indicate why the allocation failed. .Sh ERRORS -.Xr Sbrk +.Xr brk +or +.Xr sbrk will fail and no additional memory will be allocated if one of the following are true: .Bl -tag -width Er diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2 index 1b05d7ac36f..4b64a5e3ef4 100644 --- a/lib/libc/sys/chflags.2 +++ b/lib/libc/sys/chflags.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: chflags.2,v 1.9 1997/04/23 06:00:51 mikel Exp $ +.\" $NetBSD: chflags.2,v 1.10 1998/02/02 05:20:25 perry Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)chflags.2 8.1 (Berkeley) 6/9/93 +.\" @(#)chflags.2 8.3 (Berkeley) 5/2/95 .\" -.Dd June 9, 1993 +.Dd May 2, 1995 .Dt CHFLAGS 2 .Os BSD 4.4 .Sh NAME @@ -91,11 +91,9 @@ The and .Dv SF_APPEND flags may only be set or unset by the super-user. -The -.Dv SF_IMMUTABLE -and -.Dv SF_APPEND -flags may be set at any time, but normally may only be unset when +Attempts by the non-super-user to set the super-user only flags +are silently ignored. +These flags may be set at any time, but normally may only be unset when the system is in single-user mode. (See .Xr init 8 @@ -168,7 +166,8 @@ error occurred while reading from or writing to the file system. .El .Sh SEE ALSO .Xr chflags 1 , -.Xr init 8 +.Xr init 8 , +.Xr mount_union 8 .Sh HISTORY The .Fn chflags diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2 index 8aba841a5b2..e05d33d6e97 100644 --- a/lib/libc/sys/execve.2 +++ b/lib/libc/sys/execve.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: execve.2,v 1.12 1997/07/14 23:19:55 kleink Exp $ +.\" $NetBSD: execve.2,v 1.13 1998/02/02 05:20:26 perry Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)execve.2 8.3 (Berkeley) 1/24/94 +.\" @(#)execve.2 8.5 (Berkeley) 6/1/94 .\" -.Dd January 24, 1994 +.Dd June 1, 1994 .Dt EXECVE 2 .Os BSD 4 .Sh NAME @@ -68,9 +68,11 @@ An interpreter file begins with a line of the form: .Ed .Pp When an interpreter file is -.Fn execve Ap d , +.\" was .Fn execve Ap d , +\fBexecve\fP'd, the system -.Fn execve Ap s +.\" was .Fn execve Ap s +\fBexecve\fP's runs the specified .Em interpreter . If the optional @@ -78,13 +80,16 @@ If the optional is specified, it becomes the first argument to the .Em interpreter , and the name of the originally -.Fn execve Ap d +.\" was .Fn execve Ap d +\fBexecve\fP'd file becomes the second argument; otherwise, the name of the originally -.Fn execve Ap d +.\" was .Fn execve Ap d +\fBexecve\fP'd file becomes the first argument. The original arguments are shifted over to become the subsequent arguments. The zeroth argument, normally the name of the -.Fn execve Ap d +.\" was .Fn execve Ap d +\fBexecve\fP'd file, is left unchanged. .Pp The argument @@ -142,6 +147,7 @@ the effective user ID is recorded as the saved set-user-ID, and the effective group ID is recorded as the saved set-group-ID. These values may be used in changing the effective IDs later (see .Xr setuid 2 ) . +.ne 1i .Pp The new process also inherits the following attributes from the calling process: @@ -226,6 +232,7 @@ permission, but has an invalid magic number in its header. .It Bq Er ETXTBSY The new process file is a pure procedure (shared text) file that is currently open for writing or reading by some process. +.ne 1i .It Bq Er ENOMEM The new process requires more virtual memory than is allowed by the imposed maximum diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2 index d923e69e44f..b415803ccfe 100644 --- a/lib/libc/sys/getfsstat.2 +++ b/lib/libc/sys/getfsstat.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: getfsstat.2,v 1.9 1997/12/18 07:22:58 mikel Exp $ +.\" $NetBSD: getfsstat.2,v 1.10 1998/02/02 05:20:27 perry Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)getfsstat.2 8.1 (Berkeley) 6/9/93 +.\" @(#)getfsstat.2 8.3 (Berkeley) 5/25/95 .\" -.Dd June 9, 1993 +.Dd May 25, 1995 .Dt GETFSSTAT 2 .Os .Sh NAME @@ -77,7 +77,40 @@ struct statfs { }; .Ed .Pp -Fields that are undefined for a particular file system are set to -1. +The flags that may be returned include: +.Bl -tag -width MNT_ASYNCHRONOUS +.It Dv MNT_RDONLY +The filesystem is mounted read-only; +Even the super-user may not write on it. +.It Dv MNT_NOEXEC +Files may not be executed from the filesystem. +.It Dv MNT_NOSUID +Setuid and setgid bits on files are not honored when they are executed. +.It Dv MNT_NODEV +Special files in the filesystem may not be opened. +.It Dv MNT_SYNCHRONOUS +All I/O to the filesystem is done synchronously. +.It Dv MNT_ASYNCHRONOUS +No filesystem I/O is done synchronously. +.It Dv MNT_LOCAL +The filesystem resides locally. +.It Dv MNT_QUOTA +The filesystem has quotas enabled on it. +.It Dv MNT_ROOTFS +Identifies the root filesystem. +.It Dv MNT_EXRDONLY +The filesystem is exported read-only. +.It Dv MNT_EXPORTED +The filesystem is exported for both reading and writing. +.It Dv MNT_DEFEXPORTED +The filesystem is exported for both reading and writing to any Internet host. +.It Dv MNT_EXPORTANON +The filesystem maps all remote accesses to the anonymous user. +.It Dv MNT_EXKERB +The filesystem is exported with Kerberos uid mapping. +.El +.Pp +Fields that are undefined for a particular filesystem are set to -1. The buffer is filled with an array of .Fa statfs structures, one for each mounted file system diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2 index 2f22c203ff2..eaafce4bfcb 100644 --- a/lib/libc/sys/getitimer.2 +++ b/lib/libc/sys/getitimer.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: getitimer.2,v 1.6 1995/10/12 15:40:54 jtc Exp $ +.\" $NetBSD: getitimer.2,v 1.7 1998/02/02 05:20:28 perry Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)getitimer.2 8.2 (Berkeley) 12/11/93 +.\" @(#)getitimer.2 8.3 (Berkeley) 5/16/95 .\" -.Dd December 11, 1993 +.Dd May 16, 1995 .Dt GETITIMER 2 .Os BSD 4.2 .Sh NAME @@ -134,8 +134,7 @@ sets a time value to zero, .Fa timerisset tests if a time value is non-zero, and .Fa timercmp -compares two time values (beware that >= and <= do not -work with this macro). +compares two time values. .Sh RETURN VALUES If the calls succeed, a value of 0 is returned. If an error occurs, the value -1 is returned, and a more precise error code is placed diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2 index a7b01fdb322..e3a0daeb9b4 100644 --- a/lib/libc/sys/getsockopt.2 +++ b/lib/libc/sys/getsockopt.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: getsockopt.2,v 1.11 1998/01/10 12:40:24 enami Exp $ +.\" $NetBSD: getsockopt.2,v 1.12 1998/02/02 05:20:29 perry Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)getsockopt.2 8.3 (Berkeley) 4/19/94 +.\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95 .\" -.Dd April 19, 1994 +.Dd May 2, 1995 .Dt GETSOCKOPT 2 .Os BSD 4.3r .Sh NAME diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2 index 3eaaee37b9c..c52fd10061a 100644 --- a/lib/libc/sys/gettimeofday.2 +++ b/lib/libc/sys/gettimeofday.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: gettimeofday.2,v 1.9 1997/10/09 05:05:56 mycroft Exp $ +.\" $NetBSD: gettimeofday.2,v 1.10 1998/02/02 05:20:30 perry Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)gettimeofday.2 8.1 (Berkeley) 6/4/93 +.\" @(#)gettimeofday.2 8.2 (Berkeley) 5/26/95 .\" -.Dd June 4, 1993 +.Dd May 26, 1995 .Dt GETTIMEOFDAY 2 .Os BSD 4 .Sh NAME @@ -94,6 +94,15 @@ and will always return zeroes. .Pp Only the super-user may set the time of day. +.\" XXX uncomment when/if this is put into place! +.\" If the system is running in secure mode (see +.\" .Xr init 8 ), +.\" the time may only be advanced. +.\" This limitation is imposed to prevent a malicious super-user +.\" from setting arbitrary time stamps on files. +.\" The system time can still be adjusted backwards using the +.\" .Xr adjtime 2 +.\" system call even when the system is secure. .Sh RETURN A 0 return value indicates that the call succeeded. A -1 return value indicates an error occurred, and in this diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2 index 5c26739eaee..86685f09be3 100644 --- a/lib/libc/sys/intro.2 +++ b/lib/libc/sys/intro.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: intro.2,v 1.9 1997/11/12 00:47:40 mrg Exp $ +.\" $NetBSD: intro.2,v 1.10 1998/02/02 05:20:30 perry Exp $ .\" .\" Copyright (c) 1980, 1983, 1986, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)intro.2 8.3 (Berkeley) 12/11/93 +.\" @(#)intro.2 8.5 (Berkeley) 2/27/95 .\" -.Dd December 11, 1993 +.Dd February 27, 1995 .Dt INTRO 2 .Os BSD 4 .Sh NAME @@ -124,6 +124,7 @@ executable file. A file descriptor argument was out of range, referred to no open file, or a read (write) request was made to a file that was only open for writing (reading). +.sp .It Er 10 ECHILD Em "\&No child processes" . A .Xr wait 2 @@ -291,6 +292,7 @@ addresses with Internet protocols. .It Er 48 EADDRINUSE Em "Address already in use" . Only one usage of each address is normally permitted. +.sp .It Er 49 EADDRNOTAVAIL Em "Cannot assign requested address" . Normally results from an attempt to create a socket with an address not on this machine. @@ -371,6 +373,7 @@ entry failed because the user's quota of disk blocks was exhausted, or the allocation of an inode for a newly created file failed because the user's quota of inodes was exhausted. +.ne 1i .It Er 70 ESTALE Em "Stale NFS file handle" . An attempt was made to access an open file (on an .Tn NFS @@ -443,6 +446,7 @@ A session leader with a controlling terminal is a controlling process. .It Controlling terminal A terminal that is associated with a session is known as the controlling terminal for that session and its members. +.ne 1i .It "Terminal Process Group ID" A terminal may be acquired by a session leader as its controlling terminal. Once a terminal is associated with a session, any of the process groups @@ -520,6 +524,7 @@ for the super-user.) A process is recognized as a .Em super-user process and is granted special privileges if its effective user ID is 0. +.ne 1i .It Special Processes The processes with process IDs of 0, 1, and 2 are special. Process 0 is the scheduler. Process 1 is the initialization process diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2 index 2ca8245018e..2dc5b4954d1 100644 --- a/lib/libc/sys/mmap.2 +++ b/lib/libc/sys/mmap.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: mmap.2,v 1.11 1998/01/10 14:54:56 kleink Exp $ +.\" $NetBSD: mmap.2,v 1.12 1998/02/02 05:20:31 perry Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)mmap.2 8.1 (Berkeley) 6/4/93 +.\" @(#)mmap.2 8.4 (Berkeley) 5/11/95 .\" -.Dd June 4, 1993 +.Dd May 11, 1995 .Dt MMAP 2 .Os BSD 4 .Sh NAME @@ -56,11 +56,10 @@ bytes to be mapped from the object described by starting at byte offset .Fa offset . If -.Fa offset -or .Fa len is not a multiple of the pagesize, the mapped region may extend past the specified range. +Any such extension beyond the end of the mapped object will be zero-filled. .Pp If .Fa addr @@ -174,10 +173,10 @@ parameter and .Fa fd was not open for reading. The flags -.Dv PROT_WRITE and .Dv MAP_SHARED -were specified as part -of the +and +.Dv PROT_WRITE +were specified as part of the .Fa flags and .Fa prot @@ -188,12 +187,25 @@ was not open for writing. .Fa Fd is not a valid open file descriptor. .It Bq Er EINVAL +.\"One of +.\".Dv MAP_ANON +.\"or +.\".Dv MAP_FILE +.\"was not specified as part of the +.\".Fa flags +.\"parameter. .Dv MAP_FIXED was specified and the -.I addr -parameter was not page aligned. +.Fa addr +parameter was not page aligned or was outside of the +valid address range for a process. +.Dv MAP_ANON was specified and +.Fa fd +was not \-1. .Fa Fd did not reference a regular or character special file. +.Fa Len +was less than zero. .It Bq Er ENOMEM .Dv MAP_FIXED was specified and the diff --git a/lib/libc/sys/mount.2 b/lib/libc/sys/mount.2 index a3674a823c4..9cadfa6eb22 100644 --- a/lib/libc/sys/mount.2 +++ b/lib/libc/sys/mount.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: mount.2,v 1.14 1997/11/26 14:46:44 tv Exp $ +.\" $NetBSD: mount.2,v 1.15 1998/02/02 05:20:32 perry Exp $ .\" .\" Copyright (c) 1980, 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)mount.2 8.2 (Berkeley) 12/11/93 +.\" @(#)mount.2 8.3 (Berkeley) 5/24/95 .\" -.Dd December 11, 1993 +.Dd May 24, 1995 .Dt MOUNT 2 .Os BSD 4 .Sh NAME @@ -110,6 +110,14 @@ The argument defines the type of the file system. The types of file systems known to the system are defined in .Aq Pa sys/mount.h . +.\" XXX from lite-2: +.\" The types of filesystems known to the system can be obtained with +.\" .Xr sysctl 8 +.\" by using the command: +.\" .Bd -literal -offset indent +.\" sysctl vfs +.\" .Ed +.\" .Pp .Fa Data is a pointer to a structure that contains the type specific arguments to mount. @@ -157,6 +165,17 @@ struct mfs_args { u_long size; /* size of file system */ }; .Ed +.\" XXX from lite-2: +.\" The format for these argument structures is described in the +.\" manual page for each filesystem. +.\" By convention filesystem manual pages are named +.\" by prefixing ``mount_'' to the name of the filesystem as returned by +.\" .Xr sysctl 8 . +.\" Thus the +.\" .Nm NFS +.\" filesystem is described by the +.\" .Xr mount_nfs 8 +.\" manual page. .Pp The .Fn unmount @@ -322,7 +341,7 @@ mounted. .Sh SEE ALSO .Xr mount 8 , .Xr umount 8 , -.Xr mfs 8 +.Xr sysctl 8 .Sh BUGS Some of the error codes need translation to more obvious messages. .Sh HISTORY diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2 index 6ffabfb2aa2..be3af14de11 100644 --- a/lib/libc/sys/msync.2 +++ b/lib/libc/sys/msync.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: msync.2,v 1.9 1997/10/16 23:21:57 christos Exp $ +.\" $NetBSD: msync.2,v 1.10 1998/02/02 05:20:33 perry Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)msync.2 8.1 (Berkeley) 6/9/93 +.\" @(#)msync.2 8.2 (Berkeley) 6/21/94 .\" .Dd October 10, 1997 .Dt MSYNC 2 @@ -97,8 +97,16 @@ argument was invalid. The .Fa addr parameter was not page aligned. +.It Bq Er EINVAL +The +.Fa addr +parameter did not specify an address part of a mapped region. +.It Bq Er EINVAL +The +.Fa len +parameter was negative. .It Bq Er EIO -An I/O error occured while writing. +An I/O error occured while writing to the file system. .It Bq Er ENOMEM Addresses in the specified region are outside the range allowed for the address space of the process, or specify one or more pages diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2 index a150b1758ef..bbccbc49d02 100644 --- a/lib/libc/sys/munmap.2 +++ b/lib/libc/sys/munmap.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: munmap.2,v 1.7 1997/10/16 23:21:59 christos Exp $ +.\" $NetBSD: munmap.2,v 1.8 1998/02/02 05:20:33 perry Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)munmap.2 8.2 (Berkeley) 4/15/94 +.\" @(#)munmap.2 8.3 (Berkeley) 5/27/94 .\" -.Dd April 15, 1994 +.Dd May 27, 1994 .Dt MUNMAP 2 .Os .Sh NAME @@ -68,8 +68,8 @@ The parameter was not page aligned, the .Fa len parameter was negative, or -some part of the region being unmapped is not part of the currently -valid address space. +some part of the region being unmapped is outside the +valid address range for a process. .Sh "SEE ALSO" .Xr madvise 2 , .Xr mincore 2 , diff --git a/lib/libc/sys/quotactl.2 b/lib/libc/sys/quotactl.2 index a92e434b644..37baeafca99 100644 --- a/lib/libc/sys/quotactl.2 +++ b/lib/libc/sys/quotactl.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: quotactl.2,v 1.10 1996/10/22 21:49:00 explorer Exp $ +.\" $NetBSD: quotactl.2,v 1.11 1998/02/02 05:20:34 perry Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -34,9 +34,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)quotactl.2 8.1 (Berkeley) 6/4/93 +.\" @(#)quotactl.2 8.2 (Berkeley) 3/10/95 .\" -.Dd June 4, 1993 +.Dd March 10, 1995 .Dt QUOTACTL 2 .Os .Sh NAME diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2 index aaacbe4a21a..d603bb8e5d5 100644 --- a/lib/libc/sys/sigaltstack.2 +++ b/lib/libc/sys/sigaltstack.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: sigaltstack.2,v 1.6 1997/11/26 16:51:12 kleink Exp $ +.\" $NetBSD: sigaltstack.2,v 1.7 1998/02/02 05:20:35 perry Exp $ .\" .\" Copyright (c) 1983, 1991, 1992, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)sigaltstack.2 8.1 (Berkeley) 6/4/93 +.\" @(#)sigaltstack.2 8.2 (Berkeley) 5/1/95 .\" -.Dd June 4, 1993 +.Dd May 1, 1995 .Dt SIGALTSTACK 2 .Os BSD 4.2 .Sh NAME @@ -43,7 +43,7 @@ .Fd #include <signal.h> .Pp .Bd -literal -typedef struct { +typedef struct sigaltstack { void *ss_sp; size_t ss_size; int ss_flags; diff --git a/lib/libc/sys/sigsuspend.2 b/lib/libc/sys/sigsuspend.2 index e49e0a3a400..9399c6012a0 100644 --- a/lib/libc/sys/sigsuspend.2 +++ b/lib/libc/sys/sigsuspend.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: sigsuspend.2,v 1.5 1997/07/14 23:20:20 kleink Exp $ +.\" $NetBSD: sigsuspend.2,v 1.6 1998/02/02 05:20:35 perry Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)sigsuspend.2 8.1 (Berkeley) 6/4/93 +.\" @(#)sigsuspend.2 8.2 (Berkeley) 5/16/95 .\" -.Dd June 4, 1993 +.Dd May 16, 1995 .Dt SIGSUSPEND 2 .Os .Sh NAME @@ -76,6 +76,6 @@ set to .Xr sigsetops 3 .Sh STANDARDS The -.Nm sigsupend -function conforms to +.Nm sigsuspend +function call conforms to .St -p1003.1-90 . diff --git a/lib/libc/sys/stat.2 b/lib/libc/sys/stat.2 index 3292167a39e..8b70d99cd03 100644 --- a/lib/libc/sys/stat.2 +++ b/lib/libc/sys/stat.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: stat.2,v 1.14 1997/10/11 03:19:39 enami Exp $ +.\" $NetBSD: stat.2,v 1.15 1998/02/02 05:20:36 perry Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)stat.2 8.3 (Berkeley) 4/19/94 +.\" @(#)stat.2 8.4 (Berkeley) 5/1/95 .\" -.Dd April 19, 1994 +.Dd May 1, 1995 .Dt STAT 2 .Os BSD 4 .Sh NAME diff --git a/lib/libc/sys/statfs.2 b/lib/libc/sys/statfs.2 index 7639043b8a4..feefad9f5c9 100644 --- a/lib/libc/sys/statfs.2 +++ b/lib/libc/sys/statfs.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: statfs.2,v 1.13 1997/12/18 07:24:23 mikel Exp $ +.\" $NetBSD: statfs.2,v 1.14 1998/02/02 05:20:37 perry Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)statfs.2 8.3 (Berkeley) 2/11/94 +.\" @(#)statfs.2 8.5 (Berkeley) 5/24/95 .\" -.Dd February 11, 1994 +.Dd May 24, 1995 .Dt STATFS 2 .Os .Sh NAME @@ -80,6 +80,38 @@ struct statfs { char f_mntfromname[MNAMELEN]; /* mounted file system */ }; .Ed +The flags that may be returned include: +.Bl -tag -width MNT_ASYNCHRONOUS +.It Dv MNT_RDONLY +The filesystem is mounted read-only; +Even the super-user may not write on it. +.It Dv MNT_NOEXEC +Files may not be executed from the filesystem. +.It Dv MNT_NOSUID +Setuid and setgid bits on files are not honored when they are executed. +.It Dv MNT_NODEV +Special files in the filesystem may not be opened. +.It Dv MNT_SYNCHRONOUS +All I/O to the filesystem is done synchronously. +.It Dv MNT_ASYNCHRONOUS +No filesystem I/O is done synchronously. +.It Dv MNT_LOCAL +The filesystem resides locally. +.It Dv MNT_QUOTA +The filesystem has quotas enabled on it. +.It Dv MNT_ROOTFS +Identifies the root filesystem. +.It Dv MNT_EXRDONLY +The filesystem is exported read-only. +.It Dv MNT_EXPORTED +The filesystem is exported for both reading and writing. +.It Dv MNT_DEFEXPORTED +The filesystem is exported for both reading and writing to any Internet host. +.It Dv MNT_EXPORTANON +The filesystem maps all remote accesses to the anonymous user. +.It Dv MNT_EXKERB +The filesystem is exported with Kerberos uid mapping. +.El .Pp Fields that are undefined for a particular file system are set to -1. .Fn Fstatfs diff --git a/lib/libc/sys/undelete.2 b/lib/libc/sys/undelete.2 index 317397c8d0d..d44b7f69d1a 100644 --- a/lib/libc/sys/undelete.2 +++ b/lib/libc/sys/undelete.2 @@ -1,3 +1,5 @@ +.\" $NetBSD: undelete.2,v 1.2 1998/02/02 05:23:10 perry Exp $ +.\" .\" Copyright (c) 1994 .\" Jan-Simon Pendry .\" The Regents of the University of California. All rights reserved. |
