mdoc(7) police: "The .Fa argument.".
This commit is contained in:
parent
3ca4c01eea
commit
2efeeba554
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108087
@ -76,7 +76,9 @@ function
|
||||
will fail and no signal will be sent if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EINVAL
|
||||
.Fa Sig
|
||||
The
|
||||
.Fa sig
|
||||
argument
|
||||
is not a valid signal number.
|
||||
.It Bq Er ESRCH
|
||||
No process can be found in the process group specified by
|
||||
|
@ -56,7 +56,9 @@ assigns
|
||||
to the set of masked signals
|
||||
and then waits for a signal to arrive;
|
||||
on return the set of masked signals is restored.
|
||||
.Fa Sigmask
|
||||
The
|
||||
.Fa sigmask
|
||||
argument
|
||||
is usually 0 to indicate that no
|
||||
signals are to be blocked.
|
||||
The
|
||||
|
@ -274,7 +274,9 @@ or
|
||||
points to memory that is not a valid part of the process
|
||||
address space.
|
||||
.It Bq Er EINVAL
|
||||
.Fa Sig
|
||||
The
|
||||
.Fa sig
|
||||
argument
|
||||
is not a valid signal number.
|
||||
.It Bq Er EINVAL
|
||||
An attempt is made to ignore or supply a handler for
|
||||
@ -312,8 +314,10 @@ Here
|
||||
.Fa sig
|
||||
is the signal number, into which the hardware faults and traps are
|
||||
mapped as defined below.
|
||||
.Fa Code
|
||||
is a parameter that is either a constant
|
||||
The
|
||||
.Fa code
|
||||
argument
|
||||
is either a constant
|
||||
as given below or, for compatibility mode faults, the code provided by
|
||||
the hardware (Compatibility mode faults are distinguished from the
|
||||
other
|
||||
@ -321,7 +325,9 @@ other
|
||||
traps by having
|
||||
.Dv PSL_CM
|
||||
set in the psl).
|
||||
.Fa Scp
|
||||
The
|
||||
.Fa scp
|
||||
argument
|
||||
is a pointer to the
|
||||
.Fa sigcontext
|
||||
structure (defined in
|
||||
|
@ -172,7 +172,9 @@ is
|
||||
(no comparison function is specified), the keys are compared
|
||||
lexically, with shorter keys considered less than longer keys.
|
||||
.It Va prefix
|
||||
.Va Prefix
|
||||
The
|
||||
.Va prefix
|
||||
element
|
||||
is the prefix comparison function.
|
||||
If specified, this routine must return the number of bytes of the second key
|
||||
argument which are necessary to determine that it is greater than the first
|
||||
@ -206,10 +208,11 @@ is 0 (no order is specified) the current host order is used.
|
||||
If the file already exists (and the
|
||||
.Dv O_TRUNC
|
||||
flag is not specified), the
|
||||
values specified for the parameters
|
||||
values specified for the
|
||||
.Va flags , lorder
|
||||
and
|
||||
.Va psize
|
||||
arguments
|
||||
are ignored
|
||||
in favor of the values used when the tree was created.
|
||||
.Pp
|
||||
|
@ -77,7 +77,9 @@ The
|
||||
.Fn dbm_open base flags mode
|
||||
function
|
||||
opens or creates a database.
|
||||
The
|
||||
.Fa base
|
||||
argument
|
||||
is the basename of the file containing
|
||||
the database; the actual database has a
|
||||
.Pa .db
|
||||
@ -88,9 +90,11 @@ is
|
||||
.Qq Li /home/me/mystuff
|
||||
then the actual database is in the file
|
||||
.Pa /home/me/mystuff.db .
|
||||
The
|
||||
.Fa flags
|
||||
and
|
||||
.Fa mode
|
||||
arguments
|
||||
are passed to
|
||||
.Xr open 2 .
|
||||
.Pq Dv O_RDWR | O_CREAT
|
||||
@ -129,7 +133,9 @@ The
|
||||
.Fn dbm_store db key data flags
|
||||
function
|
||||
inserts or replaces an entry in the database.
|
||||
The
|
||||
.Fa flags
|
||||
argument
|
||||
is either
|
||||
.Dv DBM_INSERT
|
||||
or
|
||||
|
@ -69,7 +69,9 @@ opens
|
||||
.Fa file
|
||||
for reading and/or writing.
|
||||
Files never intended to be preserved on disk may be created by setting
|
||||
the file parameter to
|
||||
the
|
||||
.Fa file
|
||||
argument to
|
||||
.Dv NULL .
|
||||
.Pp
|
||||
The
|
||||
@ -180,15 +182,16 @@ with a
|
||||
or
|
||||
.Va sync
|
||||
function may result in inconsistent or lost information.
|
||||
.Va Close
|
||||
.Va close
|
||||
routines return -1 on error (setting
|
||||
.Va errno )
|
||||
and 0 on success.
|
||||
.It Va del
|
||||
A pointer to a routine to remove key/data pairs from the database.
|
||||
.Pp
|
||||
The parameter
|
||||
The
|
||||
.Fa flags
|
||||
argument
|
||||
may be set to the following value:
|
||||
.Bl -tag -width indent
|
||||
.It Dv R_CURSOR
|
||||
@ -196,7 +199,7 @@ Delete the record referenced by the cursor.
|
||||
The cursor must have previously been initialized.
|
||||
.El
|
||||
.Pp
|
||||
.Va Delete
|
||||
.Va delete
|
||||
routines return -1 on error (setting
|
||||
.Va errno ) ,
|
||||
0 on success, and 1 if the specified
|
||||
@ -230,7 +233,7 @@ The address and length of the data associated with the specified
|
||||
.Fa key
|
||||
are returned in the structure referenced by
|
||||
.Fa data .
|
||||
.Va Get
|
||||
.Va get
|
||||
routines return -1 on error (setting
|
||||
.Va errno ) ,
|
||||
0 on success, and 1 if the
|
||||
@ -239,8 +242,9 @@ was not in the file.
|
||||
.It Va put
|
||||
A pointer to a routine to store key/data pairs in the database.
|
||||
.Pp
|
||||
The parameter
|
||||
The
|
||||
.Fa flags
|
||||
argument
|
||||
may be set to one of the following values:
|
||||
.Bl -tag -width indent
|
||||
.It Dv R_CURSOR
|
||||
@ -302,7 +306,7 @@ The default behavior of the
|
||||
routines is to enter the new key/data pair, replacing any previously
|
||||
existing key.
|
||||
.Pp
|
||||
.Va Put
|
||||
.Va put
|
||||
routines return -1 on error (setting
|
||||
.Va errno ) ,
|
||||
0 on success, and 1 if the
|
||||
@ -336,7 +340,7 @@ while records inserted in front of the cursor will be returned.
|
||||
.Pp
|
||||
The
|
||||
.Fa flags
|
||||
value
|
||||
argument
|
||||
.Em must
|
||||
be set to one of the following values:
|
||||
.Bl -tag -width indent
|
||||
@ -390,7 +394,7 @@ and
|
||||
access methods because they each imply that the keys have an inherent
|
||||
order which does not change.
|
||||
.Pp
|
||||
.Va Seq
|
||||
.Va seq
|
||||
routines return -1 on error (setting
|
||||
.Va errno ) ,
|
||||
0 on success and 1 if there are no key/data pairs less than or greater
|
||||
@ -410,7 +414,7 @@ routine has no effect and will always succeed.
|
||||
.Pp
|
||||
The
|
||||
.Fa flags
|
||||
value may be set to the following value:
|
||||
argument may be set to the following value:
|
||||
.Bl -tag -width indent
|
||||
.It Dv R_RECNOSYNC
|
||||
If the
|
||||
@ -427,7 +431,7 @@ field of the
|
||||
manual page for more information.)
|
||||
.El
|
||||
.Pp
|
||||
.Va Sync
|
||||
.Va sync
|
||||
routines return -1 on error (setting
|
||||
.Va errno )
|
||||
and 0 on success.
|
||||
@ -471,7 +475,7 @@ or the following:
|
||||
.It Bq Er EFTYPE
|
||||
A file is incorrectly formatted.
|
||||
.It Bq Er EINVAL
|
||||
A parameter has been specified (hash function, pad byte etc.) that is
|
||||
An argument has been specified (hash function, pad byte etc.) that is
|
||||
incompatible with the current file specification or which is not
|
||||
meaningful for the function (for example, use of the cursor without
|
||||
prior initialization) or there is a mismatch between the version
|
||||
|
@ -77,14 +77,18 @@ typedef struct {
|
||||
The elements of this structure are as follows:
|
||||
.Bl -tag -width indent
|
||||
.It Va bsize
|
||||
.Va Bsize
|
||||
The
|
||||
.Va bsize
|
||||
element
|
||||
defines the
|
||||
.Nm
|
||||
table bucket size, and is, by default, 256 bytes.
|
||||
It may be preferable to increase the page size for disk-resident tables
|
||||
and tables with large data items.
|
||||
.It Va ffactor
|
||||
.Va Ffactor
|
||||
The
|
||||
.Va ffactor
|
||||
element
|
||||
indicates a desired density within the
|
||||
.Nm
|
||||
table.
|
||||
@ -94,7 +98,9 @@ one bucket, determining when the
|
||||
table grows or shrinks.
|
||||
The default value is 8.
|
||||
.It Va nelem
|
||||
.Va Nelem
|
||||
The
|
||||
.Va nelem
|
||||
element
|
||||
is an estimate of the final size of the
|
||||
.Nm
|
||||
table.
|
||||
@ -110,7 +116,9 @@ This value is
|
||||
advisory, and the access method will allocate more memory rather
|
||||
than fail.
|
||||
.It Va hash
|
||||
.Va Hash
|
||||
The
|
||||
.Va hash
|
||||
element
|
||||
is a user defined
|
||||
.Nm
|
||||
function.
|
||||
@ -141,10 +149,11 @@ value specified when the tree was created is used.
|
||||
If the file already exists (and the
|
||||
.Dv O_TRUNC
|
||||
flag is not specified), the
|
||||
values specified for the parameters
|
||||
values specified for the
|
||||
.Va bsize , ffactor , lorder
|
||||
and
|
||||
.Va nelem
|
||||
arguments
|
||||
are
|
||||
ignored and the values specified when the tree was created are used.
|
||||
.Pp
|
||||
|
@ -146,20 +146,22 @@ is returned and
|
||||
is set.
|
||||
The
|
||||
.Fa flags
|
||||
parameter is not currently used.
|
||||
argument is not currently used.
|
||||
.Pp
|
||||
The function
|
||||
.Fn mpool_put
|
||||
unpins the page referenced by
|
||||
.Fa pgaddr .
|
||||
.Fa Pgaddr
|
||||
The
|
||||
.Fa pgaddr
|
||||
argument
|
||||
must be an address previously returned by
|
||||
.Fn mpool_get
|
||||
or
|
||||
.Fn mpool_new .
|
||||
The
|
||||
.Fa flags
|
||||
value is specified by
|
||||
argument is specified by
|
||||
.Em or Ns 'ing
|
||||
any of the following values:
|
||||
.Bl -tag -width indent
|
||||
|
@ -52,7 +52,7 @@ threads from entering its critical sections simultaneously.
|
||||
.Pp
|
||||
The
|
||||
.Fa context
|
||||
parameter specifies an opaque context for creating locks. The
|
||||
argument specifies an opaque context for creating locks. The
|
||||
dynamic linker will pass it to the
|
||||
.Fa lock_create
|
||||
function when creating the locks it needs. When the dynamic linker
|
||||
@ -65,26 +65,26 @@ to destroy the context.
|
||||
.Pp
|
||||
The
|
||||
.Fa lock_create
|
||||
parameter specifies a function for creating a read/write lock. It
|
||||
argument specifies a function for creating a read/write lock. It
|
||||
must return a pointer to the new lock.
|
||||
.Pp
|
||||
The
|
||||
.Fa rlock_acquire
|
||||
and
|
||||
.Fa wlock_acquire
|
||||
parameters specify functions which lock a lock for reading or
|
||||
arguments specify functions which lock a lock for reading or
|
||||
writing, respectively. The
|
||||
.Fa lock_release
|
||||
parameter specifies a function which unlocks a lock. Each of these
|
||||
argument specifies a function which unlocks a lock. Each of these
|
||||
functions is passed a pointer to the lock.
|
||||
.Pp
|
||||
The
|
||||
.Fa lock_destroy
|
||||
parameter specifies a function to destroy a lock. It may be
|
||||
argument specifies a function to destroy a lock. It may be
|
||||
.Dv NULL
|
||||
if locks do not need to be destroyed. The
|
||||
.Fa context_destroy
|
||||
parameter specifies a function to destroy the context. It may be
|
||||
argument specifies a function to destroy the context. It may be
|
||||
.Dv NULL
|
||||
if the context does not need to be destroyed.
|
||||
.Pp
|
||||
|
@ -92,7 +92,9 @@ A null pointer supplied for
|
||||
.Fa path
|
||||
is interpreted as a reference to the main
|
||||
executable of the process.
|
||||
The
|
||||
.Fa mode
|
||||
argument
|
||||
controls the way in which external function references from the
|
||||
loaded object are bound to their referents.
|
||||
It must contain one of the following values, possibly ORed with
|
||||
|
@ -118,9 +118,9 @@ and
|
||||
functions also specify the environment of the executed process by following
|
||||
the
|
||||
.Dv NULL
|
||||
pointer that terminates the list of arguments in the parameter list
|
||||
or the pointer to the argv array with an additional parameter.
|
||||
This additional parameter is an array of pointers to null-terminated strings
|
||||
pointer that terminates the list of arguments in the argument list
|
||||
or the pointer to the argv array with an additional argument.
|
||||
This additional argument is an array of pointers to null-terminated strings
|
||||
and
|
||||
.Em must
|
||||
be terminated by a
|
||||
|
@ -67,7 +67,7 @@ family of functions cannot verify the types of arguments that they are
|
||||
passed at run-time. In some cases, like
|
||||
.Xr catgets 3 ,
|
||||
it is useful or necessary to use a user-supplied format string with no
|
||||
guarantee that the format string matches the specified parameters.
|
||||
guarantee that the format string matches the specified arguments.
|
||||
.Pp
|
||||
The
|
||||
.Fn fmtcheck
|
||||
@ -94,7 +94,7 @@ Otherwise, it will return
|
||||
.Fa fmt_default .
|
||||
.Sh SECURITY CONSIDERATIONS
|
||||
Note that the formats may be quite different as long as they accept the
|
||||
same parameters. For example,
|
||||
same arguments. For example,
|
||||
.Qq Li "%p %o %30s %#llx %-10.*e %n"
|
||||
is compatible with
|
||||
.Qq Li "This number %lu %d%% and string %s has %qd numbers and %.*g floats (%n)" .
|
||||
|
@ -95,25 +95,25 @@ prune and/or re-visit portions of the hierarchy.
|
||||
Two structures are defined (and typedef'd) in the include file
|
||||
.Aq Pa fts.h .
|
||||
The first is
|
||||
.Fa FTS ,
|
||||
.Vt FTS ,
|
||||
the structure that represents the file hierarchy itself.
|
||||
The second is
|
||||
.Fa FTSENT ,
|
||||
.Vt FTSENT ,
|
||||
the structure that represents a file in the file
|
||||
hierarchy.
|
||||
Normally, an
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure is returned for every file in the file
|
||||
hierarchy.
|
||||
In this manual page,
|
||||
.Dq file
|
||||
and
|
||||
.Dq Fa FTSENT No structure
|
||||
.Dq Vt FTSENT No structure
|
||||
are generally
|
||||
interchangeable.
|
||||
.Pp
|
||||
The
|
||||
.Fa FTS
|
||||
.Vt FTS
|
||||
structure contains space for a single pointer, which may be used to
|
||||
store application data or per-hierarchy state.
|
||||
The
|
||||
@ -123,7 +123,7 @@ and
|
||||
functions may be used to set and retrieve this pointer.
|
||||
This is likely to be useful only when accessed from the sort
|
||||
comparison function, which can determine the original
|
||||
.Fa FTS
|
||||
.Vt FTS
|
||||
stream of its arguments using the
|
||||
.Fn fts_get_stream
|
||||
function.
|
||||
@ -132,7 +132,7 @@ The two
|
||||
functions are also available as macros of the same name.
|
||||
.Pp
|
||||
The
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure contains at least the following fields, which are
|
||||
described in greater detail below:
|
||||
.Bd -literal
|
||||
@ -158,7 +158,7 @@ These fields are defined as follows:
|
||||
.Bl -tag -width "fts_namelen"
|
||||
.It Fa fts_info
|
||||
One of the following values describing the returned
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure and
|
||||
the file it represents.
|
||||
With the exception of directories without errors
|
||||
@ -174,11 +174,11 @@ A directory that causes a cycle in the tree.
|
||||
(The
|
||||
.Fa fts_cycle
|
||||
field of the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure will be filled in as well.)
|
||||
.It Dv FTS_DEFAULT
|
||||
Any
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure that represents a file type not explicitly described
|
||||
by one of the other
|
||||
.Fa fts_info
|
||||
@ -200,7 +200,7 @@ which was not specified as a file name to
|
||||
.It Dv FTS_DP
|
||||
A directory being visited in post-order.
|
||||
The contents of the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure will be unchanged from when
|
||||
it was returned in pre-order, i.e. with the
|
||||
.Fa fts_info
|
||||
@ -257,19 +257,19 @@ The length of the string referenced by
|
||||
The depth of the traversal, numbered from \-1 to N, where this file
|
||||
was found.
|
||||
The
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure representing the parent of the starting point (or root)
|
||||
of the traversal is numbered
|
||||
.Dv FTS_ROOTPARENTLEVEL
|
||||
(\-1), and the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure for the root
|
||||
itself is numbered
|
||||
.Dv FTS_ROOTLEVEL
|
||||
(0).
|
||||
.It Fa fts_errno
|
||||
Upon return of a
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure from the
|
||||
.Fn fts_children
|
||||
or
|
||||
@ -304,7 +304,7 @@ It is initialized to
|
||||
.Dv NULL .
|
||||
.It Fa fts_parent
|
||||
A pointer to the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure referencing the file in the hierarchy
|
||||
immediately above the current file, i.e. the directory of which this
|
||||
file is a member.
|
||||
@ -333,9 +333,9 @@ of a hard link between two directories, or a symbolic link pointing to a
|
||||
directory, the
|
||||
.Fa fts_cycle
|
||||
field of the structure will point to the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure in the hierarchy that references the same file as the current
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure.
|
||||
Otherwise, the contents of the
|
||||
.Fa fts_cycle
|
||||
@ -358,10 +358,10 @@ fields are guaranteed to be
|
||||
for the file most recently returned by
|
||||
.Fn fts_read .
|
||||
To use these fields to reference any files represented by other
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures will require that the path buffer be modified using the
|
||||
information contained in that
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure's
|
||||
.Fa fts_pathlen
|
||||
field.
|
||||
@ -400,11 +400,11 @@ is also specified.
|
||||
This option causes the
|
||||
.Nm
|
||||
routines to return
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures for the targets of symbolic links
|
||||
instead of the symbolic links themselves.
|
||||
If this option is set, the only symbolic links for which
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures
|
||||
are returned to the application are those referencing non-existent files.
|
||||
Either
|
||||
@ -434,7 +434,7 @@ pathnames were provided as arguments to
|
||||
.Fn fts_open .
|
||||
.It Dv FTS_NOSTAT
|
||||
By default, returned
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures reference file characteristic information (the
|
||||
.Fa statp
|
||||
field) for each file visited.
|
||||
@ -452,11 +452,11 @@ field undefined.
|
||||
This option causes the
|
||||
.Nm
|
||||
routines to return
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures for symbolic links themselves instead
|
||||
of the target files they point to.
|
||||
If this option is set,
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures for all symbolic links in the
|
||||
hierarchy are returned to the application.
|
||||
Either
|
||||
@ -478,7 +478,7 @@ encountered in the file hierarchy are ignored.
|
||||
This option causes the
|
||||
.Nm
|
||||
routines to return
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures for them.
|
||||
.It Dv FTS_XDEV
|
||||
This option prevents
|
||||
@ -493,7 +493,7 @@ specifies a user-defined function which may be used to order the traversal
|
||||
of the hierarchy.
|
||||
It
|
||||
takes two pointers to pointers to
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures as arguments and
|
||||
should return a negative value, zero, or a positive value to indicate
|
||||
if the file referenced by its first argument comes before, in any order
|
||||
@ -504,7 +504,7 @@ The
|
||||
and
|
||||
.Fa fts_pathlen
|
||||
fields of the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures may
|
||||
.Em never
|
||||
be used in this comparison.
|
||||
@ -529,7 +529,7 @@ everything else.
|
||||
The
|
||||
.Fn fts_read
|
||||
function returns a pointer to an
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure describing a file in
|
||||
the hierarchy.
|
||||
Directories (that are readable and do not cause cycles) are visited at
|
||||
@ -554,14 +554,14 @@ and sets
|
||||
.Va errno
|
||||
appropriately.
|
||||
If an error related to a returned file occurs, a pointer to an
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure is returned, and
|
||||
.Va errno
|
||||
may or may not have been set (see
|
||||
.Fa fts_info ) .
|
||||
.Pp
|
||||
The
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures returned by
|
||||
.Fn fts_read
|
||||
may be overwritten after a call to
|
||||
@ -572,7 +572,7 @@ on the same file hierarchy stream unless they represent a file of type
|
||||
directory, in which case they will not be overwritten until after a call to
|
||||
.Fn fts_read
|
||||
after the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure has been returned by the function
|
||||
.Fn fts_read
|
||||
in post-order.
|
||||
@ -580,16 +580,16 @@ in post-order.
|
||||
The
|
||||
.Fn fts_children
|
||||
function returns a pointer to an
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure describing the first entry in a NULL-terminated linked list of
|
||||
the files in the directory represented by the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure most recently returned by
|
||||
.Fn fts_read .
|
||||
The list is linked through the
|
||||
.Fa fts_link
|
||||
field of the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure, and is ordered by the user-specified comparison function, if any.
|
||||
Repeated calls to
|
||||
.Fn fts_children
|
||||
@ -604,7 +604,7 @@ will return a pointer to the files in the logical directory specified to
|
||||
i.e. the arguments specified to
|
||||
.Fn fts_open .
|
||||
Otherwise, if the
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structure most recently returned by
|
||||
.Fn fts_read
|
||||
is not a directory being visited in pre-order,
|
||||
@ -624,7 +624,7 @@ and sets
|
||||
appropriately.
|
||||
.Pp
|
||||
The
|
||||
.Fa FTSENT
|
||||
.Vt FTSENT
|
||||
structures returned by
|
||||
.Fn fts_children
|
||||
may be overwritten after a call to
|
||||
|
@ -94,7 +94,9 @@ function will first look for files ending in
|
||||
(see
|
||||
.Xr cap_mkdb 1 )
|
||||
before accessing the ASCII file.
|
||||
.Fa Buf
|
||||
The
|
||||
.Fa buf
|
||||
argument
|
||||
must be retained through all subsequent calls to
|
||||
.Fn cgetmatch ,
|
||||
.Fn cgetcap ,
|
||||
|
@ -54,8 +54,9 @@ function
|
||||
returns the standard domain name for the current processor, as
|
||||
previously set by
|
||||
.Fn setdomainname .
|
||||
The parameter
|
||||
The
|
||||
.Fa namelen
|
||||
argument
|
||||
specifies the size of the
|
||||
.Fa name
|
||||
array. The returned name is null-terminated unless insufficient
|
||||
@ -80,7 +81,7 @@ The
|
||||
.Fa name
|
||||
or
|
||||
.Fa namelen
|
||||
parameter gave an
|
||||
argument gave an
|
||||
invalid address.
|
||||
.It Bq Er EPERM
|
||||
The caller tried to set the hostname and was not the super-user.
|
||||
|
@ -54,8 +54,9 @@ function
|
||||
returns the standard host name for the current processor, as
|
||||
previously set by
|
||||
.Fn sethostname .
|
||||
The parameter
|
||||
The
|
||||
.Fa namelen
|
||||
argument
|
||||
specifies the size of the
|
||||
.Fa name
|
||||
array. The returned name is null-terminated unless insufficient
|
||||
@ -80,7 +81,7 @@ The
|
||||
.Fa name
|
||||
or
|
||||
.Fa namelen
|
||||
parameter gave an
|
||||
argument gave an
|
||||
invalid address.
|
||||
.It Bq Er EPERM
|
||||
The caller tried to set the hostname and was not the super-user.
|
||||
|
@ -60,7 +60,7 @@ The
|
||||
function
|
||||
passes its
|
||||
.Fa flags
|
||||
parameter transparently to
|
||||
argument transparently to
|
||||
.Xr getfsstat 2 .
|
||||
.Sh RETURN VALUES
|
||||
On successful completion,
|
||||
|
@ -183,7 +183,7 @@ The routines
|
||||
and
|
||||
.Fn isnettty
|
||||
return non-zero if the dialup or network flag is set for the
|
||||
tty entry relating to the tty named by the parameter, and
|
||||
tty entry relating to the tty named by the argument, and
|
||||
zero otherwise.
|
||||
.Sh FILES
|
||||
.Bl -tag -width /etc/ttys -compact
|
||||
|
@ -94,10 +94,12 @@ The following errors may be reported:
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa vfc
|
||||
pointer contains an invalid address.
|
||||
argument
|
||||
points to an invalid address.
|
||||
.It Bq Er ENOENT
|
||||
The
|
||||
.Fa name
|
||||
argument
|
||||
specifies a file system that is unknown or not configured in the kernel.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
|
@ -77,7 +77,7 @@ obtained in toto from the kernel via
|
||||
.Xr sysctl 3 .
|
||||
If the
|
||||
.Fa cachelist
|
||||
parameter to
|
||||
argument to
|
||||
.Fn setvfsent
|
||||
is non-zero, the list will be retrieved only once, upon the first call
|
||||
to one of the retrieval functions, until
|
||||
|
@ -354,7 +354,7 @@ contains the number of matched pathnames in the current invocation of
|
||||
.It Fa gl_flags
|
||||
contains a copy of the
|
||||
.Fa flags
|
||||
parameter with the bit
|
||||
argument with the bit
|
||||
.Dv GLOB_MAGCHAR
|
||||
set if
|
||||
.Fa pattern
|
||||
|
@ -65,14 +65,18 @@ and had a stack allocated for it.
|
||||
The context is modified so that it will continue execution by invoking
|
||||
.Fn func
|
||||
with the arguments provided.
|
||||
The
|
||||
.Fa argc
|
||||
argument
|
||||
must be equal to the number of additional arguments provided to
|
||||
.Fn makecontext
|
||||
and also equal to the number of parameters to
|
||||
and also equal to the number of arguments to
|
||||
.Fn func ,
|
||||
or else the behavior is undefined.
|
||||
.Pp
|
||||
The
|
||||
.Fa "ucp->uc_link"
|
||||
argument
|
||||
must be initialized before calling
|
||||
.Fn makecontext
|
||||
and determines the action to take when
|
||||
|
@ -174,7 +174,9 @@ function
|
||||
will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EPERM
|
||||
The
|
||||
.Fa cmd
|
||||
argument
|
||||
is equal to IPC_SET or IPC_RMID and the caller is not the super-user, nor does
|
||||
the effective uid match either the
|
||||
.Va msg_perm.uid
|
||||
@ -190,13 +192,17 @@ but the caller is not the super-user.
|
||||
The command is IPC_STAT
|
||||
and the caller has no read permission for this message queue.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa msqid
|
||||
argument
|
||||
is not a valid message queue identifier.
|
||||
.Pp
|
||||
.Va cmd
|
||||
is not a valid command.
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa buf
|
||||
argument
|
||||
specifies an invalid address.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
|
@ -69,22 +69,30 @@ The value of
|
||||
has one of the following meanings:
|
||||
.Bl -bullet
|
||||
.It
|
||||
The
|
||||
.Fa msgtyp
|
||||
argument
|
||||
is greater than 0. The first message of type
|
||||
.Fa msgtyp
|
||||
will be received.
|
||||
.It
|
||||
The
|
||||
.Fa msgtyp
|
||||
argument
|
||||
is equal to 0. The first message on the queue will be received.
|
||||
.It
|
||||
The
|
||||
.Fa msgtyp
|
||||
argument
|
||||
is less than 0. The first message of the lowest message type that is
|
||||
less than or equal to the absolute value of
|
||||
.Fa msgtyp
|
||||
will be received.
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
.Fa msgsz
|
||||
argument
|
||||
specifies the maximum length of the requested message.
|
||||
If the received
|
||||
message has a length greater than
|
||||
@ -165,14 +173,18 @@ function
|
||||
will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa msqid
|
||||
argument
|
||||
is not a valid message queue identifier.
|
||||
.Pp
|
||||
The message queue was removed while
|
||||
.Fn msgrcv
|
||||
was waiting for a message of the requested type to become available on it.
|
||||
.Pp
|
||||
The
|
||||
.Fa msgsz
|
||||
argument
|
||||
is less than 0.
|
||||
.It Bq Er E2BIG
|
||||
A matching message was received, but its size was greater than
|
||||
@ -184,7 +196,9 @@ flag was not set in
|
||||
.It Bq Er EACCES
|
||||
The calling process does not have read access to the message queue.
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa msgp
|
||||
argument
|
||||
points to an invalid address.
|
||||
.It Bq Er EINTR
|
||||
The system call was interrupted by the delivery of a signal.
|
||||
|
@ -50,7 +50,9 @@ The
|
||||
.Fn msgsnd
|
||||
function sends a message to the message queue specified in
|
||||
.Fa msqid .
|
||||
The
|
||||
.Fa msgp
|
||||
argument
|
||||
points to a structure containing the message.
|
||||
This structure should
|
||||
consist of the following members:
|
||||
@ -129,7 +131,9 @@ function
|
||||
will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa msqid
|
||||
argument
|
||||
is not a valid message queue identifier
|
||||
.Pp
|
||||
The message queue was removed while
|
||||
@ -137,11 +141,15 @@ The message queue was removed while
|
||||
was waiting for a resource to become available in order to deliver the
|
||||
message.
|
||||
.Pp
|
||||
The
|
||||
.Fa msgsz
|
||||
argument
|
||||
is less than 0, or greater than
|
||||
.Va msg_qbytes .
|
||||
.Pp
|
||||
The
|
||||
.Fa mtype
|
||||
argument
|
||||
is not greater than 0.
|
||||
.It Bq Er EACCES
|
||||
The calling process does not have write access to the message queue.
|
||||
@ -152,7 +160,9 @@ system, and
|
||||
was set in
|
||||
.Fa msgflg .
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa msgp
|
||||
argument
|
||||
points to an invalid address.
|
||||
.It Bq Er EINTR
|
||||
The system call was interrupted by the delivery of a signal.
|
||||
|
@ -163,7 +163,7 @@ and the seed used in
|
||||
.Fn lrand48 ,
|
||||
and
|
||||
.Fn mrand48 .
|
||||
An array of 7 shorts is passed as parameter; the first three shorts are
|
||||
An array of 7 shorts is passed as argument; the first three shorts are
|
||||
used to initialize the seed; the second three are used to initialize the
|
||||
multiplicand; and the last short is used to initialize the addend.
|
||||
It is thus not possible to use values greater than 0xffff as the addend.
|
||||
|
@ -64,7 +64,7 @@ referenced by
|
||||
.Pp
|
||||
The
|
||||
.Fa select
|
||||
parameter is a pointer to a user supplied subroutine which is called by
|
||||
argument is a pointer to a user supplied subroutine which is called by
|
||||
.Fn scandir
|
||||
to select which entries are to be included in the array.
|
||||
The select routine is passed a
|
||||
@ -76,7 +76,7 @@ is null, then all the directory entries will be included.
|
||||
.Pp
|
||||
The
|
||||
.Fa compar
|
||||
parameter is a pointer to a user supplied subroutine which is passed to
|
||||
argument is a pointer to a user supplied subroutine which is passed to
|
||||
.Xr qsort 3
|
||||
to sort the completed array.
|
||||
If this pointer is null, the array is not sorted.
|
||||
@ -86,7 +86,7 @@ The
|
||||
function
|
||||
is a routine which can be used for the
|
||||
.Fa compar
|
||||
parameter to sort the array alphabetically.
|
||||
argument to sort the array alphabetically.
|
||||
.Pp
|
||||
The memory allocated for the array can be deallocated with
|
||||
.Xr free 3 ,
|
||||
|
@ -106,7 +106,9 @@ The
|
||||
call fails if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa sig
|
||||
argument
|
||||
is not a valid signal number.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
|
@ -135,7 +135,7 @@ is possible on a descriptor (see
|
||||
.Pp
|
||||
The
|
||||
.Fa sig
|
||||
parameter specifies which signal was received.
|
||||
argument specifies which signal was received.
|
||||
The
|
||||
.Fa func
|
||||
procedure allows a user to choose the action upon receipt of a signal.
|
||||
@ -218,7 +218,9 @@ will fail and no action will take place if one of the
|
||||
following occur:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa sig
|
||||
argument
|
||||
is not a valid signal number.
|
||||
.It Bq Er EINVAL
|
||||
An attempt is made to ignore or supply a handler for
|
||||
|
@ -109,7 +109,9 @@ should be set to NULL.
|
||||
.Pp
|
||||
The size of the available data can be determined by calling
|
||||
.Fn sysctl
|
||||
with a NULL parameter for
|
||||
with the
|
||||
.Dv NULL
|
||||
argument for
|
||||
.Fa oldp .
|
||||
The size of the available data will be returned in the location pointed to by
|
||||
.Fa oldlenp .
|
||||
|
@ -130,8 +130,9 @@ by
|
||||
.Fn syslog
|
||||
and
|
||||
.Fn vsyslog .
|
||||
The parameter
|
||||
The
|
||||
.Fa ident
|
||||
argument
|
||||
is a string that will be prepended to every message.
|
||||
The
|
||||
.Fa logopt
|
||||
@ -163,7 +164,7 @@ instantiations of daemons.
|
||||
.Pp
|
||||
The
|
||||
.Fa facility
|
||||
parameter encodes a default facility to be assigned to all messages
|
||||
argument encodes a default facility to be assigned to all messages
|
||||
that do not have an explicit facility encoded:
|
||||
.Bl -tag -width LOG_AUTHPRIV
|
||||
.It Dv LOG_AUTH
|
||||
|
@ -117,7 +117,7 @@ of a second to the terminal referenced by
|
||||
.Fa fd .
|
||||
The
|
||||
.Fa len
|
||||
parameter is ignored in this implementation.
|
||||
argument is ignored in this implementation.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, all of these functions return a value of zero.
|
||||
.Sh ERRORS
|
||||
|
@ -215,7 +215,7 @@ termios structure referenced by
|
||||
.Fa tp .
|
||||
The
|
||||
.Fa action
|
||||
field is created by
|
||||
argument is created by
|
||||
.Em or Ns 'ing
|
||||
the following values, as specified in the include file
|
||||
.Aq Pa termios.h .
|
||||
|
@ -58,7 +58,9 @@ function returns a pointer to a time zone abbreviation for the specified
|
||||
and
|
||||
.Fa dst
|
||||
values.
|
||||
.Fa Zone
|
||||
The
|
||||
.Fa zone
|
||||
argument
|
||||
is the number of minutes west of GMT and
|
||||
.Fa dst
|
||||
is non-zero if daylight savings time is in effect.
|
||||
|
@ -42,7 +42,7 @@ function will get and set process limits.
|
||||
Currently this is limited to the maximum file size.
|
||||
The
|
||||
.Fa cmd
|
||||
parameter is one of the following:
|
||||
argument is one of the following:
|
||||
.Bl -tag -width ".Dv UL_GETSIZE"
|
||||
.It Dv UL_GETSIZE
|
||||
will return the maximum file size in units of 512 blocks of
|
||||
|
@ -67,7 +67,9 @@ thus, when
|
||||
encoding a set of characters into a buffer, the size of the buffer should
|
||||
be four times the number of characters encoded, plus one for the trailing
|
||||
.Dv NUL .
|
||||
The flag parameter is used for altering the default range of
|
||||
The
|
||||
.Fa flag
|
||||
argument is used for altering the default range of
|
||||
characters considered for encoding and for altering the visual
|
||||
representation.
|
||||
The additional character,
|
||||
@ -227,7 +229,9 @@ The following sequences are used to represent the indicated characters:
|
||||
.Li \e0 Tn - NUL No (000)
|
||||
.Ed
|
||||
.Pp
|
||||
When using this format, the nextc parameter is looked at to determine
|
||||
When using this format, the
|
||||
.Fa nextc
|
||||
argument is looked at to determine
|
||||
if a
|
||||
.Dv NUL
|
||||
character can be encoded as
|
||||
|
@ -82,9 +82,11 @@ Programs that are not loaded with
|
||||
may selectively collect profiling statistics by calling
|
||||
.Fn monstartup
|
||||
with the range of addresses to be profiled.
|
||||
The
|
||||
.Fa lowpc
|
||||
and
|
||||
.Fa highpc
|
||||
arguments
|
||||
specify the address range that is to be sampled;
|
||||
the lowest address sampled is that of
|
||||
.Fa lowpc
|
||||
|
@ -98,7 +98,7 @@ system calls
|
||||
will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EINVAL
|
||||
An inappropriate parameter was used for
|
||||
An inappropriate value was used for
|
||||
.Fa start_sel
|
||||
or
|
||||
.Fa num_sels .
|
||||
|
@ -54,13 +54,15 @@ The
|
||||
.Fn i386_set_watch
|
||||
function
|
||||
will set up the specified debug registers as indicated by the
|
||||
parameters. The
|
||||
arguments. The
|
||||
.Fa watchnum
|
||||
argument specifies which watch register is used, 0, 1, 2, 3, or -1. If
|
||||
.Fa watchnum
|
||||
is -1, a free watch register is found and used. If there are no free
|
||||
watch registers, an error code of -1 is returned.
|
||||
.Fa Watchaddr
|
||||
The
|
||||
.Fa watchaddr
|
||||
argument
|
||||
specifies the watch address,
|
||||
.Fa size
|
||||
specifies the size in bytes of the area to be watched (1, 2, or 4 bytes),
|
||||
|
@ -43,13 +43,17 @@ The
|
||||
.Fn i386_vm86
|
||||
system call
|
||||
is used to call various vm86 related functions.
|
||||
The
|
||||
.Fa function
|
||||
argument
|
||||
can be one of the following values:
|
||||
.Bl -tag -offset indent -width VM86_SET_VME
|
||||
.It Dv VM86_INIT
|
||||
This will initialize the kernel's vm86 parameter area for the
|
||||
process, and permit the process to make vm86 calls.
|
||||
The
|
||||
.Fa data
|
||||
argument
|
||||
points to the following structure:
|
||||
.Bd -literal
|
||||
struct vm86_init_args {
|
||||
@ -59,11 +63,17 @@ struct vm86_init_args {
|
||||
};
|
||||
.Ed
|
||||
.Pp
|
||||
The
|
||||
.Fa debug
|
||||
argument
|
||||
is used to turn on debugging code.
|
||||
The
|
||||
.Fa cpu_type
|
||||
argument
|
||||
controls the type of CPU being emulated, and is currently unimplemented.
|
||||
The
|
||||
.Fa int_map
|
||||
argument
|
||||
is a bitmap which determines whether vm86 interrupts should be handled
|
||||
in vm86 mode, or reflected back to the process. If the
|
||||
.Em Nth
|
||||
|
@ -239,6 +239,7 @@ The
|
||||
function
|
||||
was successful.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa locale
|
||||
name was incorrect.
|
||||
.It Bq Er ENOENT
|
||||
|
@ -87,16 +87,16 @@ function performs the inverse operation to
|
||||
.Fn addr2ascii .
|
||||
In addition to
|
||||
.Fa af ,
|
||||
it takes two parameters,
|
||||
it takes two arguments,
|
||||
.Fa ascii
|
||||
and
|
||||
.Fa result .
|
||||
The
|
||||
.Fa ascii
|
||||
parameter is a pointer to the string which is to be converted into
|
||||
argument is a pointer to the string which is to be converted into
|
||||
binary. The
|
||||
.Fa result
|
||||
parameter is a pointer to an appropriate network address structure for
|
||||
argument is a pointer to an appropriate network address structure for
|
||||
the specified family.
|
||||
.Pp
|
||||
The following gives the appropriate structure to use for binary
|
||||
@ -171,12 +171,12 @@ The
|
||||
.Fn addr2ascii
|
||||
routine was passed a
|
||||
.Fa len
|
||||
parameter which was inappropriate for the address family given by
|
||||
argument which was inappropriate for the address family given by
|
||||
.Fa af .
|
||||
.It Bq Er EPROTONOSUPPORT
|
||||
Either routine was passed an
|
||||
.Fa af
|
||||
parameter other than
|
||||
argument other than
|
||||
.Dv AF_INET
|
||||
or
|
||||
.Dv AF_LINK .
|
||||
|
@ -342,9 +342,10 @@ To return this information to the system the function
|
||||
.Fn freeaddrinfo
|
||||
is called.
|
||||
The
|
||||
.Fa addrinfo
|
||||
.Vt addrinfo
|
||||
structure pointed to by the
|
||||
.Fa ai argument
|
||||
.Fa ai
|
||||
argument
|
||||
is freed, along with any dynamic storage pointed to by the structure.
|
||||
This operation is repeated until a
|
||||
.Dv NULL
|
||||
@ -531,7 +532,9 @@ Invalid value for
|
||||
.It Dv EAI_FAIL
|
||||
Non-recoverable failure in name resolution.
|
||||
.It Dv EAI_FAMILY
|
||||
The
|
||||
.Fa ai_family
|
||||
address family is
|
||||
not supported.
|
||||
.It Dv EAI_MEMORY
|
||||
Memory allocation failure.
|
||||
@ -539,16 +542,21 @@ Memory allocation failure.
|
||||
No address associated with
|
||||
.Fa nodename .
|
||||
.It Dv EAI_NONAME
|
||||
Neither
|
||||
.Fa nodename
|
||||
nor
|
||||
.Fa servname
|
||||
provided, or not known.
|
||||
.It Dv EAI_SERVICE
|
||||
The
|
||||
.Fa servname
|
||||
service name is
|
||||
not supported for
|
||||
.Fa ai_socktype .
|
||||
.It Dv EAI_SOCKTYPE
|
||||
The
|
||||
.Fa ai_socktype
|
||||
socket type is
|
||||
not supported.
|
||||
.It Dv EAI_SYSTEM
|
||||
System error returned in
|
||||
|
@ -92,7 +92,7 @@ referenced by name or by address, respectively.
|
||||
.Pp
|
||||
The
|
||||
.Fa name
|
||||
parameter passed to
|
||||
argument passed to
|
||||
.Fn gethostbyname
|
||||
or
|
||||
.Fn gethostbyname2
|
||||
@ -101,7 +101,7 @@ should point to a
|
||||
hostname.
|
||||
The
|
||||
.Fa addr
|
||||
parameter passed to
|
||||
argument passed to
|
||||
.Fn gethostbyaddr
|
||||
should point to an address which is
|
||||
.Fa len
|
||||
@ -112,7 +112,7 @@ in binary form
|
||||
form).
|
||||
The
|
||||
.Fa type
|
||||
parameter specifies the address family
|
||||
argument specifies the address family
|
||||
(e.g.\&
|
||||
.Dv AF_INET , AF_INET6 ,
|
||||
etc.) of this address.
|
||||
@ -217,8 +217,8 @@ connection.
|
||||
The
|
||||
.Fn herror
|
||||
function writes a message to the diagnostic output consisting of the
|
||||
string parameter
|
||||
.Fa s ,
|
||||
string argument
|
||||
.Fa string ,
|
||||
the constant string
|
||||
.Qq Li ":\ " ,
|
||||
and a message corresponding to the value of
|
||||
@ -229,7 +229,7 @@ The
|
||||
function returns a string which is the message text corresponding to the
|
||||
value of the
|
||||
.Fa err
|
||||
parameter.
|
||||
argument.
|
||||
.Sh FILES
|
||||
.Bl -tag -width /etc/nsswitch.conf -compact
|
||||
.It Pa /etc/hosts
|
||||
|
@ -246,7 +246,7 @@ for the specified family.
|
||||
.It Bq Er EAI_MEMORY
|
||||
There was a memory allocation failure.
|
||||
.It Bq Er EAI_NONAME
|
||||
The name does not resolve for the supplied parameters.
|
||||
The name does not resolve for the supplied arguments.
|
||||
.Dv NI_NAMEREQD
|
||||
is set and the host's name cannot be located,
|
||||
or both nodename and servname were null.
|
||||
|
@ -133,6 +133,7 @@ or until
|
||||
is encountered.
|
||||
The
|
||||
.Fa type
|
||||
argument
|
||||
must be
|
||||
.Dv AF_INET .
|
||||
Network numbers are supplied in host order.
|
||||
|
@ -118,7 +118,9 @@ on success or
|
||||
.Li -1
|
||||
on an error.
|
||||
.Pp
|
||||
The
|
||||
.Fa bp
|
||||
argument
|
||||
is a pointer to previously allocated space that will contain the
|
||||
ancillary data object.
|
||||
It must be large enough to contain all the
|
||||
@ -127,17 +129,23 @@ individual options to be added by later calls to
|
||||
and
|
||||
.Fn inet6_option_alloc .
|
||||
.Pp
|
||||
The
|
||||
.Fa cmsgp
|
||||
argument
|
||||
is a pointer to a pointer to a
|
||||
.Li cmsghdr
|
||||
structure.
|
||||
The
|
||||
.Fa *cmsgp
|
||||
argument
|
||||
is initialized by this function to point to the
|
||||
.Li cmsghdr
|
||||
structure constructed by this function in the buffer pointed to by
|
||||
.Fa bp .
|
||||
.Pp
|
||||
The
|
||||
.Fa type
|
||||
argument
|
||||
is either
|
||||
.Dv IPV6_HOPOPTS
|
||||
or
|
||||
@ -161,14 +169,18 @@ if it succeeds or
|
||||
.Li -1
|
||||
on an error.
|
||||
.Pp
|
||||
The
|
||||
.Fa cmsg
|
||||
argument
|
||||
is a pointer to the
|
||||
.Li cmsghdr
|
||||
structure that must have been
|
||||
initialized by
|
||||
.Fn inet6_option_init .
|
||||
.Pp
|
||||
The
|
||||
.Fa typep
|
||||
argument
|
||||
is a pointer to the 8-bit option type.
|
||||
It is assumed that this
|
||||
field is immediately followed by the 8-bit option data length field,
|
||||
@ -198,7 +210,9 @@ and
|
||||
.Li 255 ,
|
||||
inclusive, and is the length of the option data that follows.
|
||||
.Pp
|
||||
The
|
||||
.Fa multx
|
||||
argument
|
||||
is the value
|
||||
.Li x
|
||||
in the alignment term
|
||||
@ -210,7 +224,9 @@ It must have a value of
|
||||
or
|
||||
.Li 8 .
|
||||
.Pp
|
||||
The
|
||||
.Fa plusy
|
||||
argument
|
||||
is the value
|
||||
.Li y
|
||||
in the alignment term
|
||||
@ -237,14 +253,18 @@ the ancillary data object while the current function returns a
|
||||
pointer to the space in the data object where the option's TLV must
|
||||
then be built by the caller.
|
||||
.Pp
|
||||
The
|
||||
.Fa cmsg
|
||||
argument
|
||||
is a pointer to the
|
||||
.Li cmsghdr
|
||||
structure that must have been
|
||||
initialized by
|
||||
.Fn inet6_option_init .
|
||||
.Pp
|
||||
The
|
||||
.Fa datalen
|
||||
argument
|
||||
is the value of the option data length byte for this option.
|
||||
This value is required as an argument to allow the function to
|
||||
determine if padding must be appended at the end of the option.
|
||||
@ -253,7 +273,9 @@ determine if padding must be appended at the end of the option.
|
||||
function does not need a data length argument
|
||||
since the option data length must already be stored by the caller.)
|
||||
.Pp
|
||||
The
|
||||
.Fa multx
|
||||
argument
|
||||
is the value
|
||||
.Li x
|
||||
in the alignment term
|
||||
@ -265,7 +287,9 @@ It must have a value of
|
||||
or
|
||||
.Li 8 .
|
||||
.Pp
|
||||
The
|
||||
.Fa plusy
|
||||
argument
|
||||
is the value
|
||||
.Li y
|
||||
in the alignment term
|
||||
@ -302,7 +326,9 @@ and
|
||||
is not
|
||||
.Dv NULL .
|
||||
.Pp
|
||||
The
|
||||
.Fa cmsg
|
||||
argument
|
||||
is a pointer to
|
||||
.Li cmsghdr
|
||||
structure of which
|
||||
@ -316,7 +342,9 @@ equals either
|
||||
or
|
||||
.Dv IPV6_DSTOPTS .
|
||||
.Pp
|
||||
The
|
||||
.Fa tptrp
|
||||
argument
|
||||
is a pointer to a pointer to an 8-bit byte and
|
||||
.Fa *tptrp
|
||||
is used
|
||||
@ -339,7 +367,9 @@ This function is similar to the previously described
|
||||
function, except this function lets the caller
|
||||
specify the option type to be searched for, instead of always
|
||||
returning the next option in the ancillary data object.
|
||||
The
|
||||
.Fa cmsg
|
||||
argument
|
||||
is a
|
||||
pointer to
|
||||
.Li cmsghdr
|
||||
@ -354,7 +384,9 @@ equals either
|
||||
or
|
||||
.Dv IPV6_DSTOPTS .
|
||||
.Pp
|
||||
The
|
||||
.Fa tptrp
|
||||
argument
|
||||
is a pointer to a pointer to an 8-bit byte and
|
||||
.Fa *tptrp
|
||||
is used
|
||||
|
@ -61,7 +61,9 @@ function converts an Internet network number from network format (usually a
|
||||
.Vt "struct in_addr"
|
||||
or some other binary form, in network byte order) to CIDR presentation format
|
||||
(suitable for external display purposes).
|
||||
The
|
||||
.Fa bits
|
||||
argument
|
||||
is the number of bits in
|
||||
.Fa src
|
||||
that are the network number.
|
||||
@ -90,7 +92,9 @@ The only value for
|
||||
.Fa af
|
||||
currently supported is
|
||||
.Dv AF_INET .
|
||||
The
|
||||
.Fa size
|
||||
argument
|
||||
is the size of the result buffer
|
||||
.Fa dst .
|
||||
.Pp
|
||||
|
@ -79,8 +79,9 @@ residing at the well-known Internet port
|
||||
.Dq Li shell/tcp
|
||||
(or whatever port is used by
|
||||
.Fa rshprog ) .
|
||||
The parameter
|
||||
The
|
||||
.Fa inport
|
||||
argument
|
||||
is ignored; it is only included to provide an interface similar to
|
||||
.Xr rcmd 3 .
|
||||
.Pp
|
||||
|
@ -292,7 +292,9 @@ but can be any of the query types defined in
|
||||
.Aq Pa arpa/nameser.h .
|
||||
The domain name for the query is given by
|
||||
.Fa dname .
|
||||
.Fa Newrr
|
||||
The
|
||||
.Fa newrr_in
|
||||
argument
|
||||
is currently unused but is intended for making update messages.
|
||||
.Pp
|
||||
The
|
||||
|
@ -94,10 +94,14 @@ The
|
||||
call fails if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa s
|
||||
argument
|
||||
is not a valid descriptor.
|
||||
.It Bq Er ENOTTY
|
||||
The
|
||||
.Fa s
|
||||
argument
|
||||
is a descriptor for a file, not a socket.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
|
@ -87,10 +87,14 @@ or has appropriate privileges.
|
||||
.It Bq Er EACCES
|
||||
MAC write access to the file is denied.
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa fd
|
||||
argument
|
||||
is not a valid file descriptor.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa label
|
||||
argument
|
||||
is not a valid MAC label.
|
||||
.It Bq Er EOPNOTSUPP
|
||||
Setting MAC labels is not supported
|
||||
|
@ -110,7 +110,9 @@ and places the results in the
|
||||
.Ft regex_t
|
||||
structure pointed to by
|
||||
.Fa preg .
|
||||
.Fa Cflags
|
||||
The
|
||||
.Fa cflags
|
||||
argument
|
||||
is the bitwise OR of zero or more of the following flags:
|
||||
.Bl -tag -width REG_EXTENDED
|
||||
.It Dv REG_EXTENDED
|
||||
@ -669,7 +671,9 @@ The
|
||||
function
|
||||
performance is poor.
|
||||
This will improve with later releases.
|
||||
.Fa Nmatch
|
||||
The
|
||||
.Fa nmatch
|
||||
argument
|
||||
exceeding 0 is expensive;
|
||||
.Fa nmatch
|
||||
exceeding 1 is worse.
|
||||
|
@ -54,23 +54,23 @@ Also, regularities in the clear text will
|
||||
not appear in the cipher text.
|
||||
.Pp
|
||||
Here is how to use these routines.
|
||||
The first parameter,
|
||||
The first argument,
|
||||
.Fa key ,
|
||||
is the 8-byte encryption key with parity.
|
||||
To set the key's parity, which for
|
||||
.Tn DES
|
||||
is in the low bit of each byte, use
|
||||
.Fn des_setparity .
|
||||
The second parameter,
|
||||
The second argument,
|
||||
.Fa data ,
|
||||
contains the data to be encrypted or decrypted.
|
||||
The
|
||||
third parameter,
|
||||
third argument,
|
||||
.Fa datalen ,
|
||||
is the length in bytes of
|
||||
.Fa data ,
|
||||
which must be a multiple of 8.
|
||||
The fourth parameter,
|
||||
The fourth argument,
|
||||
.Fa mode ,
|
||||
is formed by
|
||||
.Em OR Ns 'ing
|
||||
@ -95,8 +95,9 @@ in software and the routine returns
|
||||
.Er DESERR_NOHWDEVICE .
|
||||
For
|
||||
.Fn cbc_crypt ,
|
||||
the parameter
|
||||
the
|
||||
.Fa ivec
|
||||
argument
|
||||
is the 8-byte initialization
|
||||
vector for the chaining.
|
||||
It is updated to the next initialization
|
||||
@ -110,7 +111,7 @@ Encryption succeeded, but done in software instead of the requested hardware.
|
||||
.It Bq Er DESERR_HWERR
|
||||
An error occurred in the hardware or driver.
|
||||
.It Bq Er DESERR_BADPARAM
|
||||
Bad parameter to routine.
|
||||
Bad argument to routine.
|
||||
.El
|
||||
.Pp
|
||||
Given a result status
|
||||
|
@ -58,7 +58,9 @@ function
|
||||
returns
|
||||
.Dv NULL
|
||||
at the end of the file.
|
||||
The
|
||||
.Fa handlep
|
||||
argument
|
||||
is the handle obtained through
|
||||
.Fn setnetconfig .
|
||||
.Pp
|
||||
@ -90,7 +92,9 @@ The
|
||||
.Fn endnetconfig
|
||||
function
|
||||
should be called when processing is complete to release resources for reuse.
|
||||
The
|
||||
.Fa handlep
|
||||
argument
|
||||
is the handle obtained through
|
||||
.Fn setnetconfig .
|
||||
Programmers should be aware, however, that the last call to
|
||||
|
@ -33,7 +33,7 @@ be included.
|
||||
Some of the high-level
|
||||
RPC interface routines take a
|
||||
.Fa nettype
|
||||
string as one of the parameters
|
||||
string as one of the arguments
|
||||
(for example,
|
||||
.Fn clnt_create ,
|
||||
.Fn svc_create ,
|
||||
@ -42,7 +42,9 @@ string as one of the parameters
|
||||
This string defines a class of transports which can be used
|
||||
for a particular application.
|
||||
.Pp
|
||||
The
|
||||
.Fa nettype
|
||||
argument
|
||||
can be one of the following:
|
||||
.Bl -tag -width datagram_v
|
||||
.It netpath
|
||||
|
@ -72,8 +72,9 @@ This is the default authentication used by RPC.
|
||||
Create and return an RPC authentication handle that contains
|
||||
.Dv AUTH_SYS
|
||||
authentication information.
|
||||
The parameter
|
||||
The
|
||||
.Fa host
|
||||
argument
|
||||
is the name of the machine on which the information was
|
||||
created;
|
||||
.Fa uid
|
||||
@ -87,7 +88,7 @@ refer to a counted array of groups to which the user belongs.
|
||||
.It Fn authsys_create_default
|
||||
Call
|
||||
.Fn authsys_create
|
||||
with the appropriate parameters.
|
||||
with the appropriate arguments.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr rpc 3 ,
|
||||
|
@ -77,7 +77,7 @@ The remaining routines deal with error handling in the case of errors.
|
||||
.Pp
|
||||
Some of the routines take a
|
||||
.Vt CLIENT
|
||||
handle as one of the parameters.
|
||||
handle as one of the arguments.
|
||||
A
|
||||
.Vt CLIENT
|
||||
handle can be created by an RPC creation routine such as
|
||||
@ -107,16 +107,19 @@ client creation routine such as
|
||||
.Fn clnt_create
|
||||
(see
|
||||
.Xr rpc_clnt_create 3 ) .
|
||||
The parameter
|
||||
The
|
||||
.Fa inproc
|
||||
is the XDR function used to encode the procedure's parameters, and
|
||||
argument
|
||||
is the XDR function used to encode the procedure's arguments, and
|
||||
.Fa outproc
|
||||
is the XDR function used to decode the procedure's results;
|
||||
.Fa in
|
||||
is the address of the procedure's argument(s), and
|
||||
.Fa out
|
||||
is the address of where to place the result(s).
|
||||
The
|
||||
.Fa tout
|
||||
argument
|
||||
is the time allowed for results to be returned, which is overridden by
|
||||
a time-out set explicitly through
|
||||
.Fn clnt_control ,
|
||||
@ -128,8 +131,9 @@ otherwise an appropriate status is returned.
|
||||
.It Fn clnt_freeres
|
||||
A function macro that frees any data allocated by the
|
||||
RPC/XDR system when it decoded the results of an RPC call.
|
||||
The parameter
|
||||
The
|
||||
.Fa out
|
||||
argument
|
||||
is the address of the results, and
|
||||
.Fa outproc
|
||||
is the XDR routine describing the results.
|
||||
@ -257,7 +261,9 @@ except that the initial timeout,
|
||||
and the maximum timeout,
|
||||
.Fa waittime
|
||||
are specified in milliseconds.
|
||||
The
|
||||
.Fa inittime
|
||||
argument
|
||||
is the initial time that
|
||||
.Fn rpc_broadcast_exp
|
||||
waits before resending the request.
|
||||
@ -272,16 +278,19 @@ and
|
||||
.Fa procnum
|
||||
on the machine,
|
||||
.Fa host .
|
||||
The parameter
|
||||
The
|
||||
.Fa inproc
|
||||
is used to encode the procedure's parameters, and
|
||||
argument
|
||||
is used to encode the procedure's arguments, and
|
||||
.Fa outproc
|
||||
is used to decode the procedure's results;
|
||||
.Fa in
|
||||
is the address of the procedure's argument(s), and
|
||||
.Fa out
|
||||
is the address of where to place the result(s).
|
||||
The
|
||||
.Fa nettype
|
||||
argument
|
||||
can be any of the values listed on
|
||||
.Xr rpc 3 .
|
||||
This routine returns
|
||||
|
@ -73,7 +73,9 @@ to perform the requested service, and then sends a reply.
|
||||
.It Fn clnt_control
|
||||
A function macro to change or retrieve various information
|
||||
about a client object.
|
||||
The
|
||||
.Fa req
|
||||
argument
|
||||
indicates the type of operation, and
|
||||
.Fa info
|
||||
is a pointer to the information.
|
||||
@ -98,7 +100,7 @@ If you set the timeout value to 0,
|
||||
.Fn clnt_control
|
||||
immediately returns an error
|
||||
.Pq Dv RPC_TIMEDOUT .
|
||||
Set the timeout parameter to 0 for batching calls.
|
||||
Set the timeout argument to 0 for batching calls.
|
||||
.Bl -column CLSET_FD_NCLOSE "struct timeval *" "do not close fd on destroy"
|
||||
.It Dv CLGET_SVC_ADDR Ta "struct netbuf *" Ta "get servers address"
|
||||
.It Dv CLGET_FD Ta "int *" Ta "get fd from handle"
|
||||
@ -132,10 +134,14 @@ Generic client creation routine for program
|
||||
.Fa prognum
|
||||
and version
|
||||
.Fa versnum .
|
||||
The
|
||||
.Fa host
|
||||
argument
|
||||
identifies the name of the remote host where the server
|
||||
is located.
|
||||
The
|
||||
.Fa nettype
|
||||
argument
|
||||
indicates the class of transport protocol to use.
|
||||
The transports are tried in left to right order in
|
||||
.Ev NETPATH
|
||||
@ -174,7 +180,7 @@ later (see
|
||||
.It Fn clnt_create_timed
|
||||
Generic client creation routine which is similar to
|
||||
.Fn clnt_create
|
||||
but which also has the additional parameter
|
||||
but which also has the additional argument
|
||||
.Fa timeout
|
||||
that specifies the maximum amount of time allowed for
|
||||
each transport class tried.
|
||||
@ -188,10 +194,14 @@ Generic client creation routine which is similar to
|
||||
.Fn clnt_create
|
||||
but which also checks for the
|
||||
version availability.
|
||||
The
|
||||
.Fa host
|
||||
argument
|
||||
identifies the name of the remote host where the server
|
||||
is located.
|
||||
The
|
||||
.Fa nettype
|
||||
argument
|
||||
indicates the class transport protocols to be used.
|
||||
If the routine is successful it returns a client handle created for
|
||||
the highest version between
|
||||
@ -199,7 +209,9 @@ the highest version between
|
||||
and
|
||||
.Fa vers_high
|
||||
that is supported by the server.
|
||||
The
|
||||
.Fa vers_outp
|
||||
argument
|
||||
is set to this value.
|
||||
That is, after a successful return
|
||||
.Fa vers_low
|
||||
@ -241,7 +253,7 @@ the range supplied is supported by the server.
|
||||
.It Fn clnt_create_vers_timed
|
||||
Generic client creation routine which is similar to
|
||||
.Fn clnt_create_vers
|
||||
but which also has the additional parameter
|
||||
but which also has the additional argument
|
||||
.Fa timeout
|
||||
that specifies the maximum amount of time allowed for
|
||||
each transport class tried.
|
||||
@ -281,8 +293,9 @@ and version
|
||||
the client uses a connectionless transport.
|
||||
The remote program is located at address
|
||||
.Fa svcaddr .
|
||||
The parameter
|
||||
The
|
||||
.Fa fildes
|
||||
argument
|
||||
is an open and bound file descriptor.
|
||||
This routine will resend the call message in intervals of
|
||||
15 seconds until a response is received or until the
|
||||
@ -297,10 +310,11 @@ The retry time out and the total time out periods can
|
||||
be changed using
|
||||
.Fn clnt_control .
|
||||
The user may set the size of the send and receive
|
||||
buffers with the parameters
|
||||
buffers with the
|
||||
.Fa sendsz
|
||||
and
|
||||
.Fa recvsz ;
|
||||
.Fa recvsz
|
||||
arguments;
|
||||
values of 0 choose suitable defaults.
|
||||
This routine returns
|
||||
.Dv NULL
|
||||
@ -365,7 +379,9 @@ is
|
||||
.Dv NULL ,
|
||||
.Dv RPC_UNKNOWNADDR
|
||||
error is set.
|
||||
The
|
||||
.Fa fildes
|
||||
argument
|
||||
is a file descriptor which may be open, bound and connected.
|
||||
If it is
|
||||
.Dv RPC_ANYFD ,
|
||||
@ -385,10 +401,11 @@ error is set.
|
||||
If
|
||||
.Fa fildes
|
||||
is unbound, then it will attempt to bind the descriptor.
|
||||
The user may specify the size of the buffers with the parameters
|
||||
The user may specify the size of the buffers with the
|
||||
.Fa sendsz
|
||||
and
|
||||
.Fa recvsz ;
|
||||
.Fa recvsz
|
||||
arguments;
|
||||
values of 0 choose suitable defaults.
|
||||
Depending upon the type of the transport (connection-oriented
|
||||
or connectionless),
|
||||
@ -439,7 +456,7 @@ Like
|
||||
.Fn clnt_tp_create
|
||||
except
|
||||
.Fn clnt_tp_create_timed
|
||||
has the extra parameter
|
||||
has the extra argument
|
||||
.Fa timeout
|
||||
which specifies the maximum time allowed for
|
||||
for the creation attempt to succeed.
|
||||
@ -457,14 +474,16 @@ and version
|
||||
the client uses a connection-oriented transport.
|
||||
The remote program is located at address
|
||||
.Fa svcaddr .
|
||||
The parameter
|
||||
The
|
||||
.Fa fildes
|
||||
argument
|
||||
is an open and bound file descriptor.
|
||||
The user may specify the size of the send and receive buffers
|
||||
with the parameters
|
||||
with the
|
||||
.Fa sendsz
|
||||
and
|
||||
.Fa recvsz ;
|
||||
.Fa recvsz
|
||||
arguments;
|
||||
values of 0 choose suitable defaults.
|
||||
This routine returns
|
||||
.Dv NULL
|
||||
|
@ -68,7 +68,7 @@ The
|
||||
function,
|
||||
used on the client side, returns an authentication handle that
|
||||
will enable the use of the secure authentication system.
|
||||
The first parameter
|
||||
The first argument
|
||||
.Fa name
|
||||
is the network name, or
|
||||
.Fa netname ,
|
||||
@ -86,7 +86,7 @@ window is more secure than a large one, but choosing
|
||||
too small of a window will increase the frequency of
|
||||
resynchronizations because of clock drift.
|
||||
The third
|
||||
parameter
|
||||
argument
|
||||
.Fa addr
|
||||
is optional. If it is
|
||||
.Dv NULL ,
|
||||
@ -98,11 +98,11 @@ is supplied, however, then the system will use the address
|
||||
for consulting the remote time service whenever
|
||||
resynchronization
|
||||
is required.
|
||||
This parameter is usually the
|
||||
This argument is usually the
|
||||
address of the
|
||||
.Tn RPC
|
||||
server itself.
|
||||
The final parameter
|
||||
The final argument
|
||||
.Fa ckey
|
||||
is also optional. If it is
|
||||
.Dv NULL ,
|
||||
|
@ -156,8 +156,9 @@ Create and return an
|
||||
authentication handle that contains
|
||||
.Ux
|
||||
authentication information.
|
||||
The parameter
|
||||
The
|
||||
.Fa host
|
||||
argument
|
||||
is the name of the machine on which the information was
|
||||
created;
|
||||
.Fa uid
|
||||
@ -179,7 +180,7 @@ It is easy to impersonate a user.
|
||||
.Pp
|
||||
Calls
|
||||
.Fn authunix_create
|
||||
with the appropriate parameters.
|
||||
with the appropriate arguments.
|
||||
.Pp
|
||||
.It Xo
|
||||
.Ft int
|
||||
@ -202,13 +203,14 @@ and
|
||||
.Fa procnum
|
||||
on the machine
|
||||
.Fa host .
|
||||
The parameter
|
||||
The
|
||||
.Fa in
|
||||
argument
|
||||
is the address of the procedure's argument(s), and
|
||||
.Fa out
|
||||
is the address of where to place the result(s);
|
||||
.Fa inproc
|
||||
is used to encode the procedure's parameters, and
|
||||
is used to encode the procedure's arguments, and
|
||||
.Fa outproc
|
||||
is used to decode the procedure's results.
|
||||
This routine returns zero if it succeeds, or the value of
|
||||
@ -300,13 +302,14 @@ which is obtained with an
|
||||
.Tn RPC
|
||||
client creation routine such as
|
||||
.Fn clnt_create .
|
||||
The parameter
|
||||
The
|
||||
.Fa in
|
||||
argument
|
||||
is the address of the procedure's argument(s), and
|
||||
.Fa out
|
||||
is the address of where to place the result(s);
|
||||
.Fa inproc
|
||||
is used to encode the procedure's parameters, and
|
||||
is used to encode the procedure's arguments, and
|
||||
.Fa outproc
|
||||
is used to decode the procedure's results;
|
||||
.Fa tout
|
||||
@ -341,10 +344,14 @@ Otherwise, the socket remains open.
|
||||
.Xc
|
||||
.Pp
|
||||
Generic client creation routine.
|
||||
The
|
||||
.Fa host
|
||||
argument
|
||||
identifies the name of the remote host where the server
|
||||
is located.
|
||||
The
|
||||
.Fa proto
|
||||
argument
|
||||
indicates which kind of transport protocol to use.
|
||||
The
|
||||
currently supported values for this field are
|
||||
@ -373,7 +380,9 @@ large arguments or return huge results.
|
||||
.Pp
|
||||
A macro used to change or retrieve various information
|
||||
about a client object.
|
||||
The
|
||||
.Fa req
|
||||
argument
|
||||
indicates the type of operation, and
|
||||
.Fa info
|
||||
is a pointer to the information.
|
||||
@ -395,7 +404,7 @@ and their argument types and what they do are:
|
||||
.Pp
|
||||
Note: if you set the timeout using
|
||||
.Fn clnt_control ,
|
||||
the timeout parameter passed to
|
||||
the timeout argument passed to
|
||||
.Fn clnt_call
|
||||
will be ignored in all future calls.
|
||||
.Bl -column "CLSET_RETRY_TIMEOUT" "struct sockaddr_in"
|
||||
@ -431,8 +440,9 @@ A macro that frees any data allocated by the
|
||||
system when it decoded the results of an
|
||||
.Tn RPC
|
||||
call.
|
||||
The parameter
|
||||
The
|
||||
.Fa out
|
||||
argument
|
||||
is the address of the results, and
|
||||
.Fa outproc
|
||||
is the
|
||||
@ -637,8 +647,9 @@ is zero, then it is set to the actual port that the remote
|
||||
program is listening on (the remote
|
||||
.Xr rpcbind 8
|
||||
service is consulted for this information).
|
||||
The parameter
|
||||
The
|
||||
.Fa sockp
|
||||
argument
|
||||
is a socket; if it is
|
||||
.Dv RPC_ANYSOCK ,
|
||||
then this routine opens a new one and sets
|
||||
@ -649,10 +660,11 @@ Since
|
||||
uses buffered
|
||||
.Tn I/O ,
|
||||
the user may specify the size of the send and receive buffers
|
||||
with the parameters
|
||||
with the
|
||||
.Fa sendsz
|
||||
and
|
||||
.Fa recvsz ;
|
||||
.Fa recvsz
|
||||
arguments;
|
||||
values of zero choose suitable defaults.
|
||||
This routine returns
|
||||
.Dv NULL
|
||||
@ -689,8 +701,9 @@ is zero, then it is set to actual port that the remote
|
||||
program is listening on (the remote
|
||||
.Xr rpcbind 8
|
||||
service is consulted for this information).
|
||||
The parameter
|
||||
The
|
||||
.Fa sockp
|
||||
argument
|
||||
is a socket; if it is
|
||||
.Dv RPC_ANYSOCK ,
|
||||
then this routine opens a new one and sets
|
||||
@ -744,8 +757,9 @@ is zero, then it is set to actual port that the remote
|
||||
program is listening on (the remote
|
||||
.Xr rpcbind 8
|
||||
service is consulted for this information).
|
||||
The parameter
|
||||
The
|
||||
.Fa sockp
|
||||
argument
|
||||
is a socket; if it is
|
||||
.Dv RPC_ANYSOCK ,
|
||||
then this routine opens a new one and sets
|
||||
@ -791,8 +805,9 @@ the client uses
|
||||
sockets as a transport.
|
||||
The local program is located at the
|
||||
.Fa *raddr .
|
||||
The parameter
|
||||
The
|
||||
.Fa sockp
|
||||
argument
|
||||
is a socket; if it is
|
||||
.Dv RPC_ANYSOCK ,
|
||||
then this routine opens a new one and sets
|
||||
@ -803,10 +818,11 @@ Since
|
||||
uses buffered
|
||||
.Tn I/O ,
|
||||
the user may specify the size of the send and receive buffers
|
||||
with the parameters
|
||||
with the
|
||||
.Fa sendsz
|
||||
and
|
||||
.Fa recvsz ;
|
||||
.Fa recvsz
|
||||
arguments;
|
||||
values of zero choose suitable defaults.
|
||||
This routine returns
|
||||
.Dv NULL
|
||||
@ -920,12 +936,13 @@ address
|
||||
to make an
|
||||
.Tn RPC
|
||||
call on your behalf to a procedure on that host.
|
||||
The parameter
|
||||
The
|
||||
.Fa portp
|
||||
argument
|
||||
will be modified to the program's port number if the
|
||||
procedure
|
||||
succeeds.
|
||||
The definitions of other parameters are discussed
|
||||
The definitions of other arguments are discussed
|
||||
in
|
||||
.Fn callrpc
|
||||
and
|
||||
@ -1002,11 +1019,11 @@ version
|
||||
and procedure
|
||||
.Fa procnum ,
|
||||
.Fa procname
|
||||
is called with a pointer to its parameter(s);
|
||||
is called with a pointer to its argument(s);
|
||||
.Fa progname
|
||||
should return a pointer to its static result(s);
|
||||
.Fa inproc
|
||||
is used to decode the parameters while
|
||||
is used to decode the arguments while
|
||||
.Fa outproc
|
||||
is used to encode the results.
|
||||
This routine returns zero if the registration succeeded, \-1
|
||||
@ -1055,7 +1072,7 @@ is undefined after calling this routine.
|
||||
A global variable reflecting the
|
||||
.Tn RPC
|
||||
service side's
|
||||
read file descriptor bit mask; it is suitable as a template parameter
|
||||
read file descriptor bit mask; it is suitable as a template argument
|
||||
to the
|
||||
.Xr select 2
|
||||
system call.
|
||||
@ -1112,8 +1129,9 @@ associated with the
|
||||
.Tn RPC
|
||||
service transport handle,
|
||||
.Fa xprt .
|
||||
The parameter
|
||||
The
|
||||
.Fa in
|
||||
argument
|
||||
is the address where the arguments will be placed;
|
||||
.Fa inproc
|
||||
is the
|
||||
@ -1241,8 +1259,9 @@ Called by an
|
||||
.Tn RPC
|
||||
service's dispatch routine to send the results of a
|
||||
remote procedure call.
|
||||
The parameter
|
||||
The
|
||||
.Fa xprt
|
||||
argument
|
||||
is the request's associated transport handle;
|
||||
.Fa outproc
|
||||
is the
|
||||
@ -1283,7 +1302,7 @@ a remote procedure call due to an authentication error.
|
||||
.Xc
|
||||
.Pp
|
||||
Called by a service dispatch routine that cannot successfully
|
||||
decode its parameters.
|
||||
decode its arguments.
|
||||
See also
|
||||
.Fn svc_getargs .
|
||||
.Pp
|
||||
@ -1344,7 +1363,7 @@ it may call this routine.
|
||||
.Pp
|
||||
Called by a service dispatch routine that refuses to perform
|
||||
a remote procedure call due to insufficient
|
||||
authentication parameters.
|
||||
authentication arguments.
|
||||
The routine calls
|
||||
.Fn svcerr_auth xprt AUTH_TOOWEAK .
|
||||
.Pp
|
||||
@ -1427,7 +1446,9 @@ The transport is associated with the socket
|
||||
which may be
|
||||
.Dv RPC_ANYSOCK ,
|
||||
in which case a new socket is created.
|
||||
The
|
||||
.Fa *path
|
||||
argument
|
||||
is a variable-length file system pathname of
|
||||
at most 104 characters.
|
||||
This file is
|
||||
@ -1457,9 +1478,11 @@ choose suitable defaults.
|
||||
.Xc
|
||||
.Pp
|
||||
Create a service on top of any open descriptor.
|
||||
The
|
||||
.Fa sendsize
|
||||
and
|
||||
.Fa recvsize
|
||||
arguments
|
||||
indicate sizes for the send and receive buffers.
|
||||
If they are
|
||||
zero, a reasonable default is chosen.
|
||||
@ -1477,9 +1500,11 @@ this
|
||||
descriptor is a connected socket for a stream protocol such
|
||||
as
|
||||
.Tn TCP .
|
||||
The
|
||||
.Fa sendsize
|
||||
and
|
||||
.Fa recvsize
|
||||
arguments
|
||||
indicate sizes for the send and receive buffers.
|
||||
If they are
|
||||
zero, a reasonable default is chosen.
|
||||
@ -1600,11 +1625,11 @@ package.
|
||||
.Fn xdr_pmap "XDR *xdrs" "struct pmap *regs"
|
||||
.Xc
|
||||
.Pp
|
||||
Used for describing parameters to various
|
||||
Used for describing arguments to various
|
||||
.Xr rpcbind 8
|
||||
procedures, externally.
|
||||
This routine is useful for users who wish to generate
|
||||
these parameters without using the
|
||||
these arguments without using the
|
||||
.Fn pmap_*
|
||||
interface.
|
||||
.Pp
|
||||
@ -1615,7 +1640,7 @@ interface.
|
||||
.Pp
|
||||
Used for describing a list of port mappings, externally.
|
||||
This routine is useful for users who wish to generate
|
||||
these parameters without using the
|
||||
these arguments without using the
|
||||
.Fn pmap_*
|
||||
interface.
|
||||
.Pp
|
||||
|
@ -111,7 +111,7 @@ has global scope and ends all RPC server activity.
|
||||
.Vt fd_set Va svc_fdset
|
||||
.Xc
|
||||
A global variable reflecting the
|
||||
RPC server's read file descriptor bit mask; it is suitable as a parameter
|
||||
RPC server's read file descriptor bit mask; it is suitable as a argument
|
||||
to the
|
||||
.Xr select 2
|
||||
system call.
|
||||
@ -140,8 +140,9 @@ A function macro that decodes the arguments of an
|
||||
RPC request associated with the RPC
|
||||
service transport handle
|
||||
.Fa xprt .
|
||||
The parameter
|
||||
The
|
||||
.Fa in
|
||||
argument
|
||||
is the address where the arguments will be placed;
|
||||
.Fa inproc
|
||||
is the XDR
|
||||
@ -217,7 +218,7 @@ is an array of
|
||||
.Vt pollfd
|
||||
structures derived from
|
||||
.Va svc_fdset[] .
|
||||
It is suitable as a parameter to the
|
||||
It is suitable as an argument to the
|
||||
.Xr poll 2
|
||||
system call.
|
||||
The derivation of
|
||||
@ -242,8 +243,9 @@ system call to return.
|
||||
.It Fn svc_sendreply
|
||||
Called by an RPC service's dispatch routine to send the results of a
|
||||
remote procedure call.
|
||||
The parameter
|
||||
The
|
||||
.Fa xprt
|
||||
argument
|
||||
is the request's associated transport handle;
|
||||
.Fa outproc
|
||||
is the XDR
|
||||
|
@ -57,7 +57,9 @@ data structure.
|
||||
.It Fn svc_control
|
||||
A function to change or retrieve various information
|
||||
about a service object.
|
||||
The
|
||||
.Fa req
|
||||
argument
|
||||
indicates the type of operation and
|
||||
.Fa info
|
||||
is a pointer to the information.
|
||||
@ -73,7 +75,9 @@ an
|
||||
.Dv RPC_PROGVERSMISMATCH
|
||||
error will normally
|
||||
be returned.
|
||||
The
|
||||
.Fa info
|
||||
argument
|
||||
should be a pointer to an
|
||||
integer.
|
||||
Upon successful completion of the
|
||||
@ -98,7 +102,9 @@ error will normally
|
||||
be returned.
|
||||
It is sometimes desirable to
|
||||
change this behavior.
|
||||
The
|
||||
.Fa info
|
||||
argument
|
||||
should be a
|
||||
pointer to an integer which is either 0
|
||||
(indicating normal server behavior - an
|
||||
@ -114,7 +120,9 @@ function
|
||||
creates server handles for all the transports
|
||||
belonging to the class
|
||||
.Fa nettype .
|
||||
The
|
||||
.Fa nettype
|
||||
argument
|
||||
defines a class of transports which can be used
|
||||
for a particular application.
|
||||
The transports are tried in left to right order in
|
||||
@ -133,7 +141,9 @@ function
|
||||
registers itself with the rpcbind
|
||||
service (see
|
||||
.Xr rpcbind 8 ) .
|
||||
The
|
||||
.Fa dispatch
|
||||
function
|
||||
is called when there is a remote procedure call for the given
|
||||
.Fa prognum
|
||||
and
|
||||
@ -167,10 +177,12 @@ service handle, and returns a pointer to it.
|
||||
This routine returns
|
||||
.Dv NULL
|
||||
if it fails, and an error message is logged.
|
||||
The
|
||||
.Fa sendsz
|
||||
and
|
||||
.Fa recvsz
|
||||
are parameters used to specify the size of the buffers.
|
||||
arguments
|
||||
are arguments used to specify the size of the buffers.
|
||||
If they are 0, suitable defaults are chosen.
|
||||
The file descriptor
|
||||
.Fa fildes
|
||||
@ -188,9 +200,11 @@ This routine creates a service on top of an open and bound file descriptor,
|
||||
and returns the handle to it.
|
||||
Typically, this descriptor is a connected file descriptor for a
|
||||
connection-oriented transport.
|
||||
The
|
||||
.Fa sendsz
|
||||
and
|
||||
.Fa recvsz
|
||||
arguments
|
||||
indicate sizes for the send and receive buffers.
|
||||
If they are 0, reasonable defaults are chosen.
|
||||
This routine returns
|
||||
@ -219,7 +233,9 @@ should not be called when the raw interface is being used.
|
||||
.It Fn svc_tli_create
|
||||
This routine creates an RPC
|
||||
server handle, and returns a pointer to it.
|
||||
The
|
||||
.Fa fildes
|
||||
argument
|
||||
is the file descriptor on which the service is listening.
|
||||
If
|
||||
.Fa fildes
|
||||
@ -257,7 +273,7 @@ In the case where the default address is chosen,
|
||||
the number of outstanding connect requests is set to 8
|
||||
for connection-oriented transports.
|
||||
The user may specify the size of the send and receive buffers
|
||||
with the parameters
|
||||
with the arguments
|
||||
.Fa sendsz
|
||||
and
|
||||
.Fa recvsz ;
|
||||
@ -277,7 +293,9 @@ creates a server handle for the network
|
||||
specified by
|
||||
.Fa netconf ,
|
||||
and registers itself with the rpcbind service.
|
||||
The
|
||||
.Fa dispatch
|
||||
function
|
||||
is called when there is a remote procedure call
|
||||
for the given
|
||||
.Fa prognum
|
||||
@ -299,7 +317,7 @@ This routine returns
|
||||
.Dv NULL
|
||||
if it fails, and an error message is logged.
|
||||
The users may specify the size of the send and receive buffers
|
||||
with the parameters
|
||||
with the arguments
|
||||
.Fa sendsz
|
||||
and
|
||||
.Fa recvsz ;
|
||||
|
@ -55,7 +55,7 @@ Called by a service dispatch routine that refuses to perform
|
||||
a remote procedure call due to an authentication error.
|
||||
.It Fn svcerr_decode
|
||||
Called by a service dispatch routine that cannot successfully
|
||||
decode the remote parameters
|
||||
decode the remote arguments
|
||||
(see
|
||||
.Fn svc_getargs
|
||||
in
|
||||
@ -70,7 +70,9 @@ Service implementors usually do not need this routine.
|
||||
.It Fn svcerr_progvers
|
||||
Called when the desired version of a program is not registered with the
|
||||
RPC package.
|
||||
The
|
||||
.Fa low_vers
|
||||
argument
|
||||
is the lowest version number,
|
||||
and
|
||||
.Fa high_vers
|
||||
@ -84,7 +86,7 @@ it may call this routine.
|
||||
.It Fn svcerr_weakauth
|
||||
Called by a service dispatch routine that refuses to perform
|
||||
a remote procedure call due to insufficient (but correct)
|
||||
authentication parameters.
|
||||
authentication arguments.
|
||||
The routine calls
|
||||
.Fn svcerr_auth "xprt" "AUTH_TOOWEAK" .
|
||||
.El
|
||||
|
@ -65,11 +65,11 @@ version
|
||||
and procedure
|
||||
.Fa procnum ,
|
||||
.Fa procname
|
||||
is called with a pointer to its parameter(s);
|
||||
is called with a pointer to its argument(s);
|
||||
.Fa procname
|
||||
should return a pointer to its static result(s);
|
||||
.Fa inproc
|
||||
is the XDR function used to decode the parameters while
|
||||
is the XDR function used to decode the arguments while
|
||||
.Fa outproc
|
||||
is the XDR function used to encode the results.
|
||||
Procedures are registered on all available transports of the class
|
||||
@ -135,7 +135,7 @@ When needed to process an RPC credential of type
|
||||
.Fa cred_flavor ,
|
||||
the
|
||||
.Fa handler
|
||||
procedure will be called with two parameters,
|
||||
procedure will be called with two arguments,
|
||||
.Fa "struct svc_req *rqst"
|
||||
and
|
||||
.Fa "struct rpc_msg *msg" ,
|
||||
|
@ -64,7 +64,9 @@ and speaks the transport protocol associated with
|
||||
.Fa netconf .
|
||||
The address found is returned in
|
||||
.Fa svcaddr .
|
||||
The
|
||||
.Fa svcaddr
|
||||
argument
|
||||
should be preallocated.
|
||||
This routine returns
|
||||
.Dv TRUE
|
||||
@ -111,8 +113,9 @@ call on your behalf to a procedure on that host.
|
||||
The
|
||||
.Fn netconfig
|
||||
structure should correspond to a connectionless transport.
|
||||
The parameter
|
||||
The
|
||||
.Fa svcaddr
|
||||
argument
|
||||
will be modified to the server's address if the procedure succeeds
|
||||
(see
|
||||
.Fn rpc_call
|
||||
@ -120,7 +123,7 @@ and
|
||||
.Fn clnt_call
|
||||
in
|
||||
.Xr rpc_clnt_calls 3
|
||||
for the definitions of other parameters).
|
||||
for the definitions of other arguments).
|
||||
.Pp
|
||||
This procedure should normally be used for a
|
||||
.Dq ping
|
||||
|
@ -34,7 +34,7 @@ Normally, the
|
||||
protocol is used when consulting the Time Server.
|
||||
The
|
||||
.Fa timeout
|
||||
parameter specifies how long the
|
||||
argument specifies how long the
|
||||
routine should wait before giving
|
||||
up when waiting for a reply.
|
||||
If
|
||||
|
@ -88,7 +88,9 @@ is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
.Fa Stream
|
||||
The
|
||||
.Fa stream
|
||||
argument
|
||||
is not an open stream, or, in the case of
|
||||
.Fn fflush ,
|
||||
not a stream open for writing.
|
||||
|
@ -137,8 +137,7 @@ The
|
||||
.Fn fdopen
|
||||
function associates a stream with the existing file descriptor,
|
||||
.Fa fildes .
|
||||
The
|
||||
.Fa mode
|
||||
The mode
|
||||
of the stream must be compatible with the mode of the file descriptor.
|
||||
When the stream is closed via
|
||||
.Xr fclose 3 ,
|
||||
@ -186,7 +185,8 @@ is set to indicate the error.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa mode
|
||||
provided to
|
||||
argument
|
||||
to
|
||||
.Fn fopen ,
|
||||
.Fn fdopen ,
|
||||
or
|
||||
|
@ -85,7 +85,7 @@ on error.
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa stream
|
||||
supplied
|
||||
argument
|
||||
is not a writable stream.
|
||||
.El
|
||||
.Pp
|
||||
|
@ -193,7 +193,7 @@ is set to indicate the error.
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa stream
|
||||
specified
|
||||
argument
|
||||
is not a seekable stream.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
|
@ -94,7 +94,7 @@ function
|
||||
may be used to alter the buffering behavior of a stream.
|
||||
The
|
||||
.Fa mode
|
||||
parameter must be one of the following three macros:
|
||||
argument must be one of the following three macros:
|
||||
.Bl -tag -width _IOFBF -offset indent
|
||||
.It Dv _IONBF
|
||||
unbuffered
|
||||
@ -106,7 +106,7 @@ fully buffered
|
||||
.Pp
|
||||
The
|
||||
.Fa size
|
||||
parameter may be given as zero
|
||||
argument may be given as zero
|
||||
to obtain deferred optimal-size buffer allocation as usual.
|
||||
If it is not zero,
|
||||
then except for unbuffered files, the
|
||||
|
@ -37,7 +37,9 @@ and
|
||||
functions walk linearly through an array and compare each element with
|
||||
the one to be sought using a supplied comparison function.
|
||||
.Pp
|
||||
The
|
||||
.Fa key
|
||||
argument
|
||||
points to an element that matches the one that is searched.
|
||||
The array's address in memory is denoted by the
|
||||
.Fa base
|
||||
|
@ -97,7 +97,9 @@ walks the binary search tree rooted in
|
||||
and calls the function
|
||||
.Fa action
|
||||
on each node.
|
||||
.Fa Action
|
||||
The
|
||||
.Fa action
|
||||
function
|
||||
is called with three arguments: a pointer to the current node,
|
||||
a value from the enum
|
||||
.Sy "typedef enum { preorder, postorder, endorder, leaf } VISIT;"
|
||||
|
@ -130,7 +130,7 @@ Note that it does
|
||||
terminate
|
||||
.Va chararray
|
||||
because the length of the source string is greater than or equal
|
||||
to the length parameter.
|
||||
to the length argument.
|
||||
.Pp
|
||||
The following copies as many characters from
|
||||
.Va input
|
||||
|
@ -79,16 +79,17 @@ remains open.
|
||||
.Pp
|
||||
The argument
|
||||
.Fa addr
|
||||
is a result parameter that is filled-in with
|
||||
is a result argument that is filled-in with
|
||||
the address of the connecting entity,
|
||||
as known to the communications layer.
|
||||
The exact format of the
|
||||
.Fa addr
|
||||
parameter is determined by the domain in which the communication
|
||||
argument is determined by the domain in which the communication
|
||||
is occurring.
|
||||
The
|
||||
.Fa addrlen
|
||||
is a value-result parameter; it should initially contain the
|
||||
argument
|
||||
is a value-result argument; it should initially contain the
|
||||
amount of space pointed to by
|
||||
.Fa addr ;
|
||||
on return it will contain the actual length (in bytes) of the
|
||||
@ -145,7 +146,7 @@ has not been called on the socket descriptor.
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa addr
|
||||
parameter is not in a writable part of the
|
||||
argument is not in a writable part of the
|
||||
user address space.
|
||||
.It Bq Er EWOULDBLOCK
|
||||
The socket is marked non-blocking and no connections
|
||||
|
@ -122,7 +122,9 @@ Permission bits of the file mode do not permit the requested
|
||||
access, or search permission is denied on a component of the
|
||||
path prefix.
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa path
|
||||
argument
|
||||
points outside the process's allocated address space.
|
||||
.It Bq Er EIO
|
||||
An I/O error occurred while reading from or writing to the file system.
|
||||
|
@ -103,7 +103,9 @@ Too many symbolic links were encountered in translating the pathname.
|
||||
.It Bq Er EROFS
|
||||
The named file resides on a read-only file system.
|
||||
.It Bq Er EFAULT
|
||||
.Fa File
|
||||
The
|
||||
.Fa file
|
||||
argument
|
||||
points outside the process's allocated address space.
|
||||
.It Bq Er EIO
|
||||
An I/O error occurred while reading from or writing to the file system.
|
||||
|
@ -78,7 +78,9 @@ An error return from
|
||||
indicates:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa fildes
|
||||
argument
|
||||
is an invalid file descriptor.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
|
@ -67,7 +67,9 @@ The
|
||||
system call will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa iocb
|
||||
argument
|
||||
does not reference an outstanding asynchronous I/O request.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
|
@ -59,6 +59,7 @@ of the calling process minus
|
||||
.Pp
|
||||
The
|
||||
.Fa iocb->aio_lio_opcode
|
||||
argument
|
||||
is ignored by the
|
||||
.Fn aio_read
|
||||
system call.
|
||||
@ -137,7 +138,9 @@ returned in
|
||||
.Pp
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa iocb->aio_fildes
|
||||
argument
|
||||
is invalid.
|
||||
.It Bq Er EINVAL
|
||||
The offset
|
||||
@ -169,7 +172,9 @@ system call is either one of the error returns from the
|
||||
system call, or one of:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa iocb->aio_fildes
|
||||
argument
|
||||
is invalid for reading.
|
||||
.It Bq Er ECANCELED
|
||||
The request was explicitly cancelled via a call to
|
||||
|
@ -71,7 +71,9 @@ The
|
||||
system call will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa iocb
|
||||
argument
|
||||
does not reference an outstanding asynchronous I/O request.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
|
@ -45,7 +45,9 @@ delivered, or the
|
||||
.Fa timeout
|
||||
has passed.
|
||||
.Pp
|
||||
The
|
||||
.Fa iocbs
|
||||
argument
|
||||
is an array of
|
||||
.Fa niocb
|
||||
pointers to asynchronous I/O requests. Array members containing
|
||||
@ -77,7 +79,9 @@ the
|
||||
.Fa timeout
|
||||
expired before any I/O requests completed.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa iocbs
|
||||
argument
|
||||
contains more than
|
||||
.Dv AIO_LISTIO_MAX
|
||||
asynchronous I/O requests, or at least one of the requests is not
|
||||
|
@ -139,7 +139,9 @@ returned in
|
||||
.Pp
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa iocb->aio_fildes
|
||||
argument
|
||||
is invalid, or is not opened for writing.
|
||||
.It Bq Er EINVAL
|
||||
The offset
|
||||
@ -163,7 +165,9 @@ system call is either one of the error returns from the
|
||||
system call, or one of:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa iocb->aio_fildes
|
||||
argument
|
||||
is invalid for writing.
|
||||
.It Bq Er ECANCELED
|
||||
The request was explicitly canceled via a call to
|
||||
|
@ -82,10 +82,14 @@ system call will fail if:
|
||||
Kernel resources to complete the request are
|
||||
temporarily unavailable.
|
||||
.It Bq Er EBADF
|
||||
.Fa S
|
||||
The
|
||||
.Fa s
|
||||
argument
|
||||
is not a valid descriptor.
|
||||
.It Bq Er ENOTSOCK
|
||||
.Fa S
|
||||
The
|
||||
.Fa s
|
||||
argument
|
||||
is not a socket.
|
||||
.It Bq Er EADDRNOTAVAIL
|
||||
The specified address is not available from the local machine.
|
||||
@ -97,7 +101,7 @@ has inadequate permission to access it.
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa addr
|
||||
parameter is not in a valid part of the user
|
||||
argument is not in a valid part of the user
|
||||
address space.
|
||||
.El
|
||||
.Pp
|
||||
|
@ -94,7 +94,9 @@ Too many symbolic links were encountered in translating the pathname.
|
||||
Search permission is denied for any component of
|
||||
the path name.
|
||||
.It Bq Er EFAULT
|
||||
.Fa Path
|
||||
The
|
||||
.Fa path
|
||||
argument
|
||||
points outside the process's allocated address space.
|
||||
.It Bq Er EIO
|
||||
An I/O error occurred while reading from or writing to the file system.
|
||||
|
@ -142,7 +142,9 @@ the effective user ID is not the super-user.
|
||||
.It Bq Er EROFS
|
||||
The named file resides on a read-only file system.
|
||||
.It Bq Er EFAULT
|
||||
.Fa Path
|
||||
The
|
||||
.Fa path
|
||||
argument
|
||||
points outside the process's allocated address space.
|
||||
.It Bq Er EIO
|
||||
An
|
||||
@ -159,7 +161,9 @@ system call will fail if:
|
||||
.It Bq Er EBADF
|
||||
The descriptor is not valid.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa fd
|
||||
argument
|
||||
refers to a socket, not to a file.
|
||||
.It Bq Er EPERM
|
||||
The effective user ID does not match the owner of the file and
|
||||
|
@ -181,7 +181,9 @@ the effective user ID is not the super-user.
|
||||
.It Bq Er EROFS
|
||||
The named file resides on a read-only file system.
|
||||
.It Bq Er EFAULT
|
||||
.Fa Path
|
||||
The
|
||||
.Fa path
|
||||
argument
|
||||
points outside the process's allocated address space.
|
||||
.It Bq Er EIO
|
||||
An I/O error occurred while reading from or writing to the file system.
|
||||
@ -196,7 +198,9 @@ system call will fail if:
|
||||
.It Bq Er EBADF
|
||||
The descriptor is not valid.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa fd
|
||||
argument
|
||||
refers to a socket, not to a file.
|
||||
.It Bq Er EROFS
|
||||
The file resides on a read-only file system.
|
||||
|
@ -122,7 +122,9 @@ The effective user ID is not the super-user.
|
||||
.It Bq Er EROFS
|
||||
The named file resides on a read-only file system.
|
||||
.It Bq Er EFAULT
|
||||
.Fa Path
|
||||
The
|
||||
.Fa path
|
||||
argument
|
||||
points outside the process's allocated address space.
|
||||
.It Bq Er EIO
|
||||
An I/O error occurred while reading from or writing to the file system.
|
||||
@ -133,10 +135,14 @@ The
|
||||
system call will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa fd
|
||||
argument
|
||||
does not refer to a valid descriptor.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa fd
|
||||
argument
|
||||
refers to a socket, not a file.
|
||||
.It Bq Er EPERM
|
||||
The effective user ID is not the super-user.
|
||||
|
@ -45,7 +45,9 @@
|
||||
.Ft int
|
||||
.Fn chroot "const char *dirname"
|
||||
.Sh DESCRIPTION
|
||||
.Fa Dirname
|
||||
The
|
||||
.Fa dirname
|
||||
argument
|
||||
is the address of the pathname of a directory, terminated by an ASCII NUL.
|
||||
The
|
||||
.Fn chroot
|
||||
@ -120,7 +122,9 @@ Search permission is denied for any component of the path name.
|
||||
.It Bq Er ELOOP
|
||||
Too many symbolic links were encountered in translating the pathname.
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa dirname
|
||||
argument
|
||||
points outside the process's allocated address space.
|
||||
.It Bq Er EIO
|
||||
An I/O error occurred while reading from or writing to the file system.
|
||||
|
@ -60,7 +60,9 @@ allow the calling process to retrieve or set the value used by a clock
|
||||
which is specifed by
|
||||
.Fa clock_id .
|
||||
.Pp
|
||||
The
|
||||
.Fa clock_id
|
||||
argument
|
||||
can be one of three values: CLOCK_REALTIME for time that increments as
|
||||
a wall clock should, CLOCK_VIRTUAL for time that increments only when
|
||||
the CPU is running in user mode on behalf of the calling process, or
|
||||
@ -103,6 +105,7 @@ The following error codes may be set in
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa clock_id
|
||||
argument
|
||||
was not a valid value.
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
|
@ -109,7 +109,9 @@ The
|
||||
system call will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
.Fa D
|
||||
The
|
||||
.Fa d
|
||||
argument
|
||||
is not an active descriptor.
|
||||
.It Bq Er EINTR
|
||||
An interrupt was received.
|
||||
|
@ -46,8 +46,9 @@
|
||||
.Ft int
|
||||
.Fn connect "int s" "const struct sockaddr *name" "socklen_t namelen"
|
||||
.Sh DESCRIPTION
|
||||
The parameter
|
||||
The
|
||||
.Fa s
|
||||
argument
|
||||
is a socket.
|
||||
If it is of type
|
||||
.Dv SOCK_DGRAM ,
|
||||
@ -63,7 +64,7 @@ The other socket is specified by
|
||||
which is an address in the communications space of the socket.
|
||||
Each communications space interprets the
|
||||
.Fa name
|
||||
parameter in its own way.
|
||||
argument in its own way.
|
||||
Generally, stream sockets may successfully
|
||||
.Fn connect
|
||||
only once; datagram sockets may use
|
||||
@ -79,10 +80,14 @@ The
|
||||
system call fails if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
The
|
||||
.Fa s
|
||||
argument
|
||||
is not a valid descriptor.
|
||||
.It Bq Er ENOTSOCK
|
||||
The
|
||||
.Fa s
|
||||
argument
|
||||
is a descriptor for a file, not a socket.
|
||||
.It Bq Er EADDRNOTAVAIL
|
||||
The specified address is not available on this machine.
|
||||
@ -101,7 +106,7 @@ The address is already in use.
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa name
|
||||
parameter specifies an area outside
|
||||
argument specifies an area outside
|
||||
the process address space.
|
||||
.It Bq Er EINPROGRESS
|
||||
The socket is non-blocking
|
||||
|
@ -130,9 +130,11 @@ and
|
||||
system calls fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EBADF
|
||||
.Fa Oldd
|
||||
The
|
||||
.Fa oldd
|
||||
or
|
||||
.Fa newd
|
||||
argument
|
||||
is not a valid active descriptor
|
||||
.It Bq Er EMFILE
|
||||
Too many descriptors are active.
|
||||
|
@ -258,10 +258,12 @@ MIB variable
|
||||
The new process file is not as long as indicated by
|
||||
the size values in its header.
|
||||
.It Bq Er EFAULT
|
||||
.Fa Path ,
|
||||
The
|
||||
.Fa path ,
|
||||
.Fa argv ,
|
||||
or
|
||||
.Fa envp
|
||||
arguments
|
||||
point
|
||||
to an illegal address.
|
||||
.It Bq Er EIO
|
||||
|
@ -178,13 +178,16 @@ Additionally, the file system implementing the call may return any
|
||||
other errors it desires.
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EFAULT
|
||||
.Fa attrnamespace ,
|
||||
.Fa attrname ,
|
||||
The
|
||||
.Fa attrnamespace
|
||||
and
|
||||
.Fa attrname
|
||||
arguments,
|
||||
or the memory range defined by
|
||||
.Fa data
|
||||
and
|
||||
.Fa nbytes
|
||||
points outside the process's allocated address space.
|
||||
point outside the process's allocated address space.
|
||||
.It Bq Er ENAMETOOLONG
|
||||
The attribute name was longer than
|
||||
.Dv EXTATTR_MAXNAMELEN .
|
||||
|
@ -409,7 +409,9 @@ or the type is an exclusive lock and some portion of the
|
||||
segment of a file to be locked is already shared-locked or
|
||||
exclusive-locked by another process.
|
||||
.It Bq Er EBADF
|
||||
.Fa \&Fd
|
||||
The
|
||||
.Fa fd
|
||||
argument
|
||||
is not a valid open file descriptor.
|
||||
.Pp
|
||||
The argument
|
||||
@ -452,7 +454,9 @@ is
|
||||
.Dv F_SETLKW ,
|
||||
and the system call was interrupted by a signal.
|
||||
.It Bq Er EINVAL
|
||||
.Fa Cmd
|
||||
The
|
||||
.Fa cmd
|
||||
argument
|
||||
is
|
||||
.Dv F_DUPFD
|
||||
and
|
||||
@ -513,14 +517,18 @@ and an
|
||||
.Fa off_t
|
||||
calculation overflowed.
|
||||
.It Bq Er EPERM
|
||||
.Fa Cmd
|
||||
The
|
||||
.Fa cmd
|
||||
argument
|
||||
is
|
||||
.Dv F_SETOWN
|
||||
and
|
||||
the process ID or process group given as an argument is in a
|
||||
different session than the caller.
|
||||
.It Bq Er ESRCH
|
||||
.Fa Cmd
|
||||
The
|
||||
.Fa cmd
|
||||
argument
|
||||
is
|
||||
.Dv F_SETOWN
|
||||
and
|
||||
|
@ -69,7 +69,8 @@ for reading and/or writing as specified by the argument
|
||||
and returns the file descriptor to the calling process.
|
||||
The
|
||||
.Fa flags
|
||||
are specified by
|
||||
argument
|
||||
is specified by
|
||||
.Em or Ns 'ing
|
||||
together the flags used for the
|
||||
.Xr open 2
|
||||
|
@ -57,7 +57,7 @@ lock on the file associated with the file descriptor
|
||||
.Fa fd .
|
||||
A lock is applied by specifying an
|
||||
.Fa operation
|
||||
parameter that is one of
|
||||
argument that is one of
|
||||
.Dv LOCK_SH
|
||||
or
|
||||
.Dv LOCK_EX
|
||||
|
@ -114,7 +114,9 @@ MIB variable
|
||||
.Dv KERN_MAXPROCPERUID .
|
||||
.It Bq Er EAGAIN
|
||||
The user is not the super user, and
|
||||
the soft resource limit corresponding to the resource parameter
|
||||
the soft resource limit corresponding to the
|
||||
.Fa resource
|
||||
argument
|
||||
.Dv RLIMIT_NPROC
|
||||
would be exceeded (see
|
||||
.Xr getrlimit 2 ) .
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user