summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/close.2
Commit message (Collapse)AuthorAgeFilesLines
* Consistently reference file descriptors as "fd". 55 other manpagesbdrewery2013-09-121-3/+3
| | | | | | | | used "fd", while these used "d" and "filedes". MFC after: 1 week Approved by: gjb Approved by: re (delphij)
* Clarify the implementation-defined behaviour in case of close(2)kib2012-01-221-1/+5
| | | | | | returning error. MFC after: 1 week
* Add a new 'void closefrom(int lowfd)' system call. When called, it closesjhb2009-06-151-0/+1
| | | | | | | | | | | | | | | | | | | | any open file descriptors >= 'lowfd'. It is largely identical to the same function on other operating systems such as Solaris, DFly, NetBSD, and OpenBSD. One difference from other *BSD is that this closefrom() does not fail with any errors. In practice, while the manpages for NetBSD and OpenBSD claim that they return EINTR, they ignore internal errors from close() and never return EINTR. DFly does return EINTR, but for the common use case (closing fd's prior to execve()), the caller really wants all fd's closed and returning EINTR just forces callers to call closefrom() in a loop until it stops failing. Note that this implementation of closefrom(2) does not make any effort to resolve userland races with open(2) in other threads. As such, it is not multithread safe. Submitted by: rwatson (initial version) Reviewed by: rwatson MFC after: 2 weeks
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Grammar.ru2006-12-041-1/+1
| | | | OK'ed by: sam
* document recent change to return ECONNRESET for tcp socketssam2006-12-041-1/+4
| | | | MFC after: 1 month
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Document ENOSPC.trhodes2003-06-131-0/+2
| | | | | PR: 52612 Submitted by: Marc Olzheim <marcolz@ilse.nl>
* mdoc(7) police: "The .Fa argument.".ru2002-12-191-1/+3
|
* mdoc(7) police: Tidy up the syscall language.ru2002-12-181-6/+6
| | | | | | | | | | Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe.
* The .Fn function.keramida2002-07-151-2/+3
|
* Correct a call to fcntl(F_SETFD) to use `FD_CLOEXEC' instead of `1'.chris2002-07-031-1/+1
|
* Remove the internal implementation details of wrapping syscalls,ru2001-10-261-21/+0
| | | | | | which do not match the reality anyway. Approved by: deischen, bde
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-1/+1
|
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.yar2001-08-091-4/+1
| | | | Reviewed by: ru
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
* Replace .Va, .Ar and .Nm with .Fa or .Va where necessary, examples:chris2000-06-231-2/+2
| | | | | | ``.Ar errno'' -> ``.Va errno'' ``.Nm ops'' -> ``.Fa ops'' ``.Va fd'' -> ``.Fa fd''
* Introduce ".Lb" macro to libc manpages.phantom2000-04-211-0/+2
| | | | More libraries manpages updates following.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Note the effect of close(2) on fcntl(2) record locks.ghelmer1999-05-041-1/+9
| | | | PR: docs/3522
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Sort cross references.wosch1997-01-201-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* upgrade STANDARDS from POSIX 1003.1-88 to 1003.1-90 using .St macrowosch1996-12-021-4/+5
| | | | | | use ``is expected to conform to'' phrase, not ``conforms to'' Pointed out by: Bruce->NIST-PCTS
* function appeared in Version 7 AT&T UNIXwosch1996-08-291-0/+6
| | | | Obtained from: ftp://netlib.att.com/netlib/att/cs/v7man/man2
* Added missing section numbers to a bunch of .Xr macros, ormpp1996-03-271-1/+1
| | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems.
* Reviewed by: julian and (hsu?)julian1996-01-221-0/+22
| | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+120
OpenPOWER on IntegriCloud