Document F_MAXFD, F_CLOSEM

This commit is contained in:
christos 2004-01-05 00:34:34 +00:00
parent 43c0378045
commit 8a293ad181
1 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: fcntl.2,v 1.29 2003/08/07 16:43:57 agc Exp $ .\" $NetBSD: fcntl.2,v 1.30 2004/01/05 00:34:34 christos Exp $
.\" .\"
.\" Copyright (c) 1983, 1993 .\" Copyright (c) 1983, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\" .\"
.\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94 .\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94
.\" .\"
.Dd May 5, 2001 .Dd January 4, 2004
.Dt FCNTL 2 .Dt FCNTL 2
.Os .Os
.Sh NAME .Sh NAME
@ -137,6 +137,11 @@ is interpreted as a process ID.
The argument The argument
.Fa arg .Fa arg
is interpreted as an int. is interpreted as an int.
.It Dv F_CLOSEM
Close all file descriptors greater than or equal to
.Ar fd .
.It Dv F_MAXFD
Return the maximum file descriptor number currently open by the process.
.El .El
.Pp .Pp
The flags for the The flags for the
@ -370,6 +375,8 @@ Value of flag (only the low-order bit is defined).
Value of flags. Value of flags.
.It Dv F_GETOWN .It Dv F_GETOWN
Value of file descriptor owner. Value of file descriptor owner.
.It Dv F_MAXFD
Value of the highest file descriptor open by the process.
.It other .It other
Value other than -1. Value other than -1.
.El .El