.Bx'ize/.Nx'ize
This commit is contained in:
parent
a751b73708
commit
af4ebfa68d
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user