summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorperry <perry@NetBSD.org>1998-02-03 21:12:45 +0000
committerperry <perry@NetBSD.org>1998-02-03 21:12:45 +0000
commitaf4ebfa68d8f9cbe76a18fa02f1f260adbdfd001 (patch)
tree5b0918639db2ffd0f5075c497687c2718dde6906 /lib/libc
parenta751b737085ee07cf58ee94c42d7820116df489a (diff)
.Bx'ize/.Nx'ize
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/chflags.25
-rw-r--r--lib/libc/sys/getdents.25
-rw-r--r--lib/libc/sys/getdirentries.339
-rw-r--r--lib/libc/sys/getfh.25
-rw-r--r--lib/libc/sys/getfsstat.25
-rw-r--r--lib/libc/sys/getlogin.25
-rw-r--r--lib/libc/sys/getpgrp.214
-rw-r--r--lib/libc/sys/madvise.25
-rw-r--r--lib/libc/sys/mincore.25
-rw-r--r--lib/libc/sys/mlock.25
-rw-r--r--lib/libc/sys/mprotect.25
-rw-r--r--lib/libc/sys/munmap.25
-rw-r--r--lib/libc/sys/nfssvc.25
-rw-r--r--lib/libc/sys/pathconf.25
-rw-r--r--lib/libc/sys/statfs.25
-rw-r--r--lib/libc/sys/undelete.25
16 files changed, 73 insertions, 50 deletions
diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2
index 4b64a5e3ef4..faeace17c96 100644
--- a/lib/libc/sys/chflags.2
+++ b/lib/libc/sys/chflags.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: chflags.2,v 1.10 1998/02/02 05:20:25 perry Exp $
+.\" $NetBSD: chflags.2,v 1.11 1998/02/03 21:12:45 perry Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -173,4 +173,5 @@ The
.Fn chflags
and
.Fn fchflags
-functions first appeared in 4.4BSD.
+functions first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/getdents.2 b/lib/libc/sys/getdents.2
index b7555c389df..651ede996cc 100644
--- a/lib/libc/sys/getdents.2
+++ b/lib/libc/sys/getdents.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: getdents.2,v 1.1 1997/10/10 02:15:50 fvdl Exp $
+.\" $NetBSD: getdents.2,v 1.2 1998/02/03 21:12:46 perry Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -147,4 +147,5 @@ it was being read.
.Sh HISTORY
The
.Fn getdents
-function first appeared in NetBSD 1.3
+function first appeared in
+.Nx 1.3 .
diff --git a/lib/libc/sys/getdirentries.3 b/lib/libc/sys/getdirentries.3
index 532bec151b7..041cde95bac 100644
--- a/lib/libc/sys/getdirentries.3
+++ b/lib/libc/sys/getdirentries.3
@@ -1,3 +1,5 @@
+.\" $NetBSD: getdirentries.3,v 1.2 1998/02/03 21:12:46 perry Exp $
+.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -29,19 +31,27 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)getdirentries.2 8.2 (Berkeley) 5/3/95
+.\" @(#)getdirentries.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd May 3, 1995
-.Dt GETDIRENTRIES 2
+.Dd June 9, 1993
+.Dt GETDIRENTRIES 3
.Os
.Sh NAME
.Nm getdirentries
.Nd "get directory entries in a filesystem independent format"
.Sh SYNOPSIS
-.Fd #include <sys/dirent.h>
+.Fd #include <dirent.h>
.Ft int
.Fn getdirentries "int fd" "char *buf" "int nbytes" "long *basep"
.Sh DESCRIPTION
+.Sh DESCRIPTION
+.Bf -symbolic
+.\" This interface is available from the compatibility library, libcompat and
+This interface is provided for compatibility only and
+has been obsoleted by
+.Xr getdents 2 .
+.Ef
+.Pp
.Fn Getdirentries
reads directory entries from the directory
referenced by the file descriptor
@@ -67,8 +77,7 @@ structures each containing the following entries:
.Bd -literal -offset indent
unsigned long d_fileno;
unsigned short d_reclen;
-unsigned char d_type;
-unsigned char d_namlen;
+unsigned short d_namlen;
char d_name[MAXNAMELEN + 1]; /* see below */
.Ed
.Pp
@@ -84,11 +93,6 @@ The
.Fa d_reclen
entry is the length, in bytes, of the directory record.
The
-.Fa d_type
-entry is the type of the file pointed to by the directory record.
-The file type values are defined in
-.Fa <sys/dirent.h> .
-The
.Fa d_name
entry contains a null terminated file name.
The
@@ -134,17 +138,17 @@ is set to indicate the error.
.Sh ERRORS
.Fn Getdirentries
will fail if:
-.Bl -tag -width [EFAULT]
-.It EBADF
+.Bl -tag -width Er
+.It Bq Er EBADF
.Fa fd
is not a valid file descriptor open for reading.
-.It EFAULT
+.It Bq Er EFAULT
Either
.Fa buf
or
.Fa basep
point outside the allocated address space.
-.It EIO
+.It Bq Er EIO
An
.Tn I/O
error occurred while reading from or writing to the file system.
@@ -154,5 +158,6 @@ error occurred while reading from or writing to the file system.
.Xr lseek 2
.Sh HISTORY
The
-.Nm getdirentries
-function first appeared in 4.4BSD.
+.Fn getdirentries
+function first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/getfh.2 b/lib/libc/sys/getfh.2
index ff12795ad19..392362ec5d5 100644
--- a/lib/libc/sys/getfh.2
+++ b/lib/libc/sys/getfh.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: getfh.2,v 1.7 1995/10/12 15:40:53 jtc Exp $
+.\" $NetBSD: getfh.2,v 1.8 1998/02/03 21:12:47 perry Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -95,4 +95,5 @@ error occurred while reading from or writing to the file system.
The
.Fn getfh
function
-first appeared in 4.4BSD.
+first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2
index b415803ccfe..9b8acc5a017 100644
--- a/lib/libc/sys/getfsstat.2
+++ b/lib/libc/sys/getfsstat.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: getfsstat.2,v 1.10 1998/02/02 05:20:27 perry Exp $
+.\" $NetBSD: getfsstat.2,v 1.11 1998/02/03 21:12:48 perry Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -164,4 +164,5 @@ error occurred while reading from or writing to the file system.
.Sh HISTORY
The
.Fn getfsstat
-function first appeared in 4.4BSD.
+function first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/getlogin.2 b/lib/libc/sys/getlogin.2
index 3881a629109..1250f7a40bc 100644
--- a/lib/libc/sys/getlogin.2
+++ b/lib/libc/sys/getlogin.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: getlogin.2,v 1.5 1997/07/14 23:19:59 kleink Exp $
+.\" $NetBSD: getlogin.2,v 1.6 1998/02/03 21:12:48 perry Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -130,4 +130,5 @@ Portable programs should probably still make this check.
.Sh HISTORY
The
.Fn getlogin
-function first appeared in 4.4BSD.
+function first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/getpgrp.2 b/lib/libc/sys/getpgrp.2
index 84f009fd5e7..c044e142f67 100644
--- a/lib/libc/sys/getpgrp.2
+++ b/lib/libc/sys/getpgrp.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: getpgrp.2,v 1.12 1997/11/12 00:47:32 mrg Exp $
+.\" $NetBSD: getpgrp.2,v 1.13 1998/02/03 21:12:49 perry Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -86,8 +86,10 @@ function call appeared in
.Bx 4.0 .
The
.Fn getpgid
-function call is derived from it's usage in System V Release 4, and
-first appeared in NetBSD 1.2A.
+function call is derived from it's usage in
+.At V.4 ,
+and first appeared in
+.Nx 1.3 .
.Sh COMPATIBILITY
This version of
.Fn getpgrp
@@ -101,7 +103,8 @@ From the
.St -p1003.1-90
Rationale:
.sp
-4.3BSD provides a
+.Bx 4.3
+provides a
.Fn getpgrp
function that returns the process group ID for a specified process.
Although this function is used to support job control, all known
@@ -109,7 +112,8 @@ job-control shells always specify the calling process with this
function.
Thus, the simpler System V
.Fn getpgrp
-suffices, and the added complexity of the 4.3BSD
+suffices, and the added complexity of the
+.Bx 4.3
.Fn getpgrp
has been omitted from POSIX.1.
The old functionality is available from the
diff --git a/lib/libc/sys/madvise.2 b/lib/libc/sys/madvise.2
index 883e303ffd3..cb9767f57c5 100644
--- a/lib/libc/sys/madvise.2
+++ b/lib/libc/sys/madvise.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: madvise.2,v 1.8 1997/10/16 23:21:39 christos Exp $
+.\" $NetBSD: madvise.2,v 1.9 1998/02/03 21:12:49 perry Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -68,4 +68,5 @@ The known behaviors are given in
.Sh HISTORY
The
.Nm madvise
-function first appeared in 4.4BSD.
+function first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/mincore.2 b/lib/libc/sys/mincore.2
index c09bd3bf339..bb66b978f50 100644
--- a/lib/libc/sys/mincore.2
+++ b/lib/libc/sys/mincore.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: mincore.2,v 1.8 1997/10/16 23:21:44 christos Exp $
+.\" $NetBSD: mincore.2,v 1.9 1998/02/03 21:12:50 perry Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -63,4 +63,5 @@ with a value of 1 meaning that the page is in-core.
.Sh HISTORY
The
.Fn mincore
-function first appeared in 4.4BSD.
+function first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/mlock.2 b/lib/libc/sys/mlock.2
index 5acf1f0589f..a729c19373f 100644
--- a/lib/libc/sys/mlock.2
+++ b/lib/libc/sys/mlock.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: mlock.2,v 1.4 1997/10/16 23:21:50 christos Exp $
+.\" $NetBSD: mlock.2,v 1.5 1998/02/03 21:12:51 perry Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -161,4 +161,5 @@ The
.Fn mlock
and
.Fn munlock
-functions first appeared in 4.4BSD.
+functions first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/mprotect.2 b/lib/libc/sys/mprotect.2
index dd646bf7c4e..1d6166a2af3 100644
--- a/lib/libc/sys/mprotect.2
+++ b/lib/libc/sys/mprotect.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: mprotect.2,v 1.7 1997/10/16 23:21:56 christos Exp $
+.\" $NetBSD: mprotect.2,v 1.8 1998/02/03 21:12:51 perry Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -60,4 +60,5 @@ the granularity of protection changes may be as large as an entire region.
.Sh HISTORY
The
.Fn mprotect
-function first appeared in 4.4BSD.
+function first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2
index bbccbc49d02..4b5807f253d 100644
--- a/lib/libc/sys/munmap.2
+++ b/lib/libc/sys/munmap.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: munmap.2,v 1.8 1998/02/02 05:20:33 perry Exp $
+.\" $NetBSD: munmap.2,v 1.9 1998/02/03 21:12:52 perry Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -81,4 +81,5 @@ valid address range for a process.
.Sh HISTORY
The
.Fn munmap
-function first appeared in 4.4BSD.
+function first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/nfssvc.2 b/lib/libc/sys/nfssvc.2
index 297472162c1..5fd8a454b8d 100644
--- a/lib/libc/sys/nfssvc.2
+++ b/lib/libc/sys/nfssvc.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: nfssvc.2,v 1.6 1995/02/27 12:35:08 cgd Exp $
+.\" $NetBSD: nfssvc.2,v 1.7 1998/02/03 21:12:52 perry Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -223,7 +223,8 @@ The caller is not the super-user.
.Sh HISTORY
The
.Nm nfssvc
-function first appeared in 4.4BSD.
+function first appeared in
+.Bx 4.4 .
.Sh BUGS
The
.Nm nfssvc
diff --git a/lib/libc/sys/pathconf.2 b/lib/libc/sys/pathconf.2
index d4d62197aa6..98abab89458 100644
--- a/lib/libc/sys/pathconf.2
+++ b/lib/libc/sys/pathconf.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: pathconf.2,v 1.4 1997/07/14 23:20:08 kleink Exp $
+.\" $NetBSD: pathconf.2,v 1.5 1998/02/03 21:12:53 perry Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -169,4 +169,5 @@ The
.Nm pathconf
and
.Nm fpathconf
-functions first appeared in 4.4BSD.
+functions first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/statfs.2 b/lib/libc/sys/statfs.2
index feefad9f5c9..eadca5e7668 100644
--- a/lib/libc/sys/statfs.2
+++ b/lib/libc/sys/statfs.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: statfs.2,v 1.14 1998/02/02 05:20:37 perry Exp $
+.\" $NetBSD: statfs.2,v 1.15 1998/02/03 21:12:54 perry Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -178,4 +178,5 @@ error occurred while reading from or writing to the file system.
.Sh HISTORY
The
.Fn statfs
-function first appeared in 4.4BSD.
+function first appeared in
+.Bx 4.4 .
diff --git a/lib/libc/sys/undelete.2 b/lib/libc/sys/undelete.2
index d44b7f69d1a..301a2d6ae55 100644
--- a/lib/libc/sys/undelete.2
+++ b/lib/libc/sys/undelete.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: undelete.2,v 1.2 1998/02/02 05:23:10 perry Exp $
+.\" $NetBSD: undelete.2,v 1.3 1998/02/03 21:12:54 perry Exp $
.\"
.\" Copyright (c) 1994
.\" Jan-Simon Pendry
@@ -104,4 +104,5 @@ points outside the process's allocated address space.
.Sh HISTORY
An
.Nm undelete
-function call first appeared in 4.4BSD-Lite.
+function call first appeared in
+.Bx 4.4 -Lite .