aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/close.2
Commit message (Collapse)AuthorAgeFilesLines
* libsys: relocate implementations and manpagesBrooks Davis2024-02-051-141/+0
| | | | | | | | | Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths to allow libc to find them in their new home. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* lib: Remove ancient SCCS tags.Warner Losh2023-11-271-2/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Mark all the system calls that were in 1st Edition Unix as such in theWarner Losh2017-12-011-2/+2
| | | | | | | | | | HISTORY section. Note: Any system calls that were added prior to v7, but after v1 weren't changed. Obtained from: http://www.tuhs.org/cgi-bin/utree.pl?file=V1/man/man2 Notes: svn path=/head/; revision=326435
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Consistently reference file descriptors as "fd". 55 other manpagesBryan Drewery2013-09-121-3/+3
| | | | | | | | | | | used "fd", while these used "d" and "filedes". MFC after: 1 week Approved by: gjb Approved by: re (delphij) Notes: svn path=/head/; revision=255486
* Clarify the implementation-defined behaviour in case of close(2)Konstantin Belousov2012-01-221-1/+5
| | | | | | | | | returning error. MFC after: 1 week Notes: svn path=/head/; revision=230460
* Add a new 'void closefrom(int lowfd)' system call. When called, it closesJohn Baldwin2009-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 Notes: svn path=/head/; revision=194262
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Grammar.Ruslan Ermilov2006-12-041-1/+1
| | | | | | | OK'ed by: sam Notes: svn path=/head/; revision=164887
* document recent change to return ECONNRESET for tcp socketsSam Leffler2006-12-041-1/+4
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=164883
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131504
* Document ENOSPC.Tom Rhodes2003-06-131-0/+2
| | | | | | | | PR: 52612 Submitted by: Marc Olzheim <marcolz@ilse.nl> Notes: svn path=/head/; revision=116323
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-1/+3
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-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. Notes: svn path=/head/; revision=108028
* The .Fn function.Giorgos Keramidas2002-07-151-2/+3
| | | | Notes: svn path=/head/; revision=100144
* Correct a call to fcntl(F_SETFD) to use `FD_CLOEXEC' instead of `1'.Chris Costello2002-07-031-1/+1
| | | | Notes: svn path=/head/; revision=99335
* Remove the internal implementation details of wrapping syscalls,Ruslan Ermilov2001-10-261-21/+0
| | | | | | | | | which do not match the reality anyway. Approved by: deischen, bde Notes: svn path=/head/; revision=85555
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.Yaroslav Tykhiy2001-08-091-4/+1
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=81352
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* Replace .Va, .Ar and .Nm with .Fa or .Va where necessary, examples:Chris Costello2000-06-231-2/+2
| | | | | | | | | ``.Ar errno'' -> ``.Va errno'' ``.Nm ops'' -> ``.Fa ops'' ``.Va fd'' -> ``.Fa fd'' Notes: svn path=/head/; revision=61988
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Note the effect of close(2) on fcntl(2) record locks.Guy Helmer1999-05-041-1/+9
| | | | | | | PR: docs/3522 Notes: svn path=/head/; revision=46424
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Sort cross references.Wolfram Schneider1997-01-201-3/+3
| | | | Notes: svn path=/head/; revision=21907
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* upgrade STANDARDS from POSIX 1003.1-88 to 1003.1-90 using .St macroWolfram Schneider1996-12-021-4/+5
| | | | | | | | | use ``is expected to conform to'' phrase, not ``conforms to'' Pointed out by: Bruce->NIST-PCTS Notes: svn path=/head/; revision=20097
* function appeared in Version 7 AT&T UNIXWolfram Schneider1996-08-291-0/+6
| | | | | | | Obtained from: ftp://netlib.att.com/netlib/att/cs/v7man/man2 Notes: svn path=/head/; revision=17906
* Added missing section numbers to a bunch of .Xr macros, orMike Pritchard1996-03-271-1/+1
| | | | | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems. Notes: svn path=/head/; revision=14855
* Reviewed by: julian and (hsu?)Julian Elischer1996-01-221-0/+22
| | | | | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations Notes: svn path=/head/; revision=13545
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+120
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573