summaryrefslogtreecommitdiff
path: root/lib/libc/sys
AgeCommit message (Collapse)Author
2023-07-07select(2), poll(2): Clarify return values.riastradh
2023-07-02getrandom(2): Reduce editorializing tone in man page.riastradh
XXX pullup-10
2023-06-30getrandom(2), getentropy(3): Rework man pages.riastradh
Make supportable promises. Omit needless verbiage. Give caveats with cross-references to entropy(7). Emphasize that security is necessarily relative to system configuration. XXX pullup-10
2023-06-08socket(2): change type flags list back to -taguwe
On second thought, convert the list of type flags back to -tag, but don't make it -compact. This way it's easier to see that it's related to the list above.
2023-06-06socket(2): fix macro invocation in a columnuwe
2023-06-06socket(2): use "provides" consistently in "type" descriptionsuwe
2023-06-06socket(2): use .Bl -column where appropriateuwe
2023-06-06socket(2): Move prose list of socket type summaries into a table.riastradh
2023-06-06socket(2): Tidy up markup a bit.riastradh
Use a tag list, not a literal block with hand-formatted text, for protocols and socket type flags.
2023-03-05Document the error code when O_REGULAR is specified and the lastthorpej
path component is not a regular file.
2023-03-03mremap(2): Note MAP_REMAPDUP bug.riastradh
XXX pullup-10, unless we fix the bug first
2023-03-01mremap(2): Fix example to use MAP_PRIVATE.riastradh
It is a historical accident that MAP_PRIVATE is assumed when neither it nor MAP_SHARED is specified. XXX pullup-9 XXX pullup-10
2023-03-01mmap(2): minor markup tweaksuwe
2022-12-04fcntl(2): Fix wrong markup in a couple of placesuwe
2022-12-04Bump date for the fixed RETURN VALUES in previousuwe
2022-12-04Tweak markup in _lwp_*(2) manual pagesuwe
Use .Rv where possible. Some manual pages claimed that the error "is returned", but RTFS and some quick testing indicate that this is wrong. The commit message from 2003 says that: Note our current implementation mis-matches [man pages] slightly (error codes are stuffed into errno, where they should simply be returned by these calls). This will be addressed shortly. That hasn't happened in the 20 years, so we might as well make the man pages reflect the reality.
2022-12-04lib: Mark up error names in man pages with .Eruwe
2022-12-04flock(2): s/Eq/Er/ typo in the ERRORS sectionuwe
2022-12-04Sections 2 and 3 have RETURN VALUES, not DIAGNOSTICSuwe
2022-11-29socketpair(2): Formatting nitsuwe
2022-11-29document the only supported type protocol, document type flagsjschauma
This uses language taken from OpenBSD's manual page.
2022-10-18avoid unnecessary Ns macrowiz
2022-10-18Note that the exit status may be truncated to the least significant 8 bits.jschauma
2022-10-17add missing 'the'jschauma
2022-10-16Add EINVAL doc from Jan Schaumannchristos
2022-08-01clone(2): document that _GNU_SOURCE must be defined for the prototypeswiz
2022-07-31__quotactl(2): typo.dholland
2022-07-26mincore(2) - use .Rv -stduwe
2022-07-25mincore(2): Clarify units of len argument: bytes, not pages.riastradh
Minor tidying while here: - Use .Fa, not .Ar, for function arguments. - Reduce verbiage of opening sentence.
2022-06-28bind.2: add references to specific protocol familiesrillig
Referring the reader to "the manual entries in section 4" was too unspecific to be useful, as that section contains device drivers as well.
2022-06-28fix references in manual pages to the reference documentationrillig
2022-05-21fix typo in sigaction(2)dholland
2022-03-24fork.2: add _exit(2) xref and spell "ID" consistentlygutteridge
2022-03-16setpgid.2: Mention that both child and parent need to call it.dholland
Absence of this standard info was noticed by riastradh@.
2022-03-13s/hander/handler/ and s/hader/header/ in comments and documentation.andvar
2022-02-13Fix typopgoyette
2021-12-10s/occured/occurred/ in comments, log messages and man pages.andvar
2021-11-19Mention that fchmod conforms to XPG 4.2. Bump date.wiz
2021-11-01Version the sigaction(2) libc wrapper. The new version uses the "siginfo"thorpej
trampoline exclusively, thus relegating "sigcontext"-style handlers (which have not been documented for many years now) to the dustbin of the compat library.
2021-11-01Don't mention the "struct sigaltstack" name of "stack_t".thorpej
2021-10-31Tidy up how __sigaction14_sigtramp.c is added to SRCS.thorpej
2021-10-27- Use the signal trampoline version constants from <sys/signal.h>.thorpej
- Declare the sigtramp externs as as char arrays, not int arrays; not all platforms have fixed-sized 32-bit instructions.
2021-10-26Merge all MD __sigaction14_sigtramp.c copies into one:christos
- sparc and sparc64 were not using version 0 sigcontext when there were no arguments in the signal version. This was probably a bug. - vax is using +1 the version numbers of the other archs. - Only hppa was defining __LIBC12_SOURCE__ so it was getting a working sigcontext before. all the other ports that supported sigcontext had the compat code disabled. [pointed out by thorpej, thanks!] If we want to remove sigcontext support from userland at least now there is less work to do so.
2021-10-23Add support for the EVFILT_EMPTY filter, which is activated when thethorpej
write buffer associated with the file descriptor is empty. This is currently implemented only for sockets, and is intended primarily to provide visibility to applications that all previously written data has been acknowledged by the TCP layer on the receiver. Compatible with the same filter in FreeBSD.
2021-10-20Oops, forgot to note the history of NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE,thorpej
and NOTE_READ.
2021-10-20Overhaul of the EVFILT_VNODE kevent(2) filter:thorpej
- Centralize vnode kevent handling in the VOP_*() wrappers, rather than forcing each individual file system to deal with it (except VOP_RENAME(), because VOP_RENAME() is a mess and we currently have 2 different ways of handling it; at least it's reasonably well-centralized in the "new" way). - Add support for NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, and NOTE_READ, compatible with the same events in FreeBSD. - Track which kevent notifications clients are interested in receiving to avoid doing work for events no one cares about (avoiding, e.g. taking locks and traversing the klist to send a NOTE_WRITE when someone is merely watching for a file to be deleted, for example). In support of the above: - Add support in vnode_if.sh for specifying PRE- and POST-op handlers, to be invoked before and after vop_pre() and vop_post(), respectively. Basic idea from FreeBSD, but implemented differently. - Add support in vnode_if.sh for specifying CONTEXT fields in the vop_*_args structures. These context fields are used to convey information between the file system VOP function and the VOP wrapper, but do not occupy an argument slot in the VOP_*() call itself. These context fields are initialized and subsequently interpreted by PRE- and POST-op handlers. - Version VOP_REMOVE(), uses the a context field for the file system to report back the resulting link count of the target vnode. Return this in tmpfs, udf, nfs, chfs, ext2fs, lfs, and ufs. NetBSD 9.99.92.
2021-10-13Add support for the NOTE_SECONDS, NOTE_MSECONDS, NOTE_USECONDS,thorpej
NOTE_NSECONDS, and NOTE_ABSTIME filter flags to EVFILT_TIMER, API-compatible with the same in FreeBSD.
2021-10-01PR/56424: Clay Mayers: recvfrom() is not a cancelation point as documentedchristos
in pthread_setcanceltype.3
2021-09-23Spell the number of nanoseconds as 10^9. Forgotten in previous.uwe
2021-09-23Minor markup tweaks.uwe