summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Various updates and corrections to SYNOPSIS, ERRORS, and STANDARDSguenther2014-09-095-32/+23
| | | | Mention that unlinkat() serves the role of rmdirat().
* Don't point to <sys/signal.h> for SIG_*; they're told to use <signal.h>guenther2014-09-091-4/+3
| | | | and don't need anything beyond that
* tweak previous;jmc2014-09-091-2/+2
|
* Don't need to mention names on .Rv line hereguenther2014-09-092-4/+4
|
* Various updates and corrections to SYNOPSIS, ERRORS, and STANDARDSguenther2014-09-092-17/+33
| | | | Mention that unlinkat() serves the role of rmdirat().
* Various updates and corrections to SYNOPSIS, ERRORS, and STANDARDSguenther2014-09-094-58/+101
| | | | Mention send(MSG_EOR)
* We have no protocols which require explicit confirmationguenther2014-09-091-25/+2
|
* Document that 4.4BSD changed the semantics but that others have restoredguenther2014-09-071-3/+14
| | | | | | the original ones ok jmc@
* Sync readlink(2) with IEEE Std 1003.1-2008.doug2014-09-011-4/+4
| | | | discussion, help and ok guenther@
* tweaks;jmc2014-08-311-8/+8
|
* Declare and document getthrid()guenther2014-08-312-2/+82
| | | | indirectly prodded by krw@
* Add additional kernel interfaces for setting close-on-exec on fdsguenther2014-08-318-39/+203
| | | | | | | when creating them: pipe2(), dup3(), accept4(), MSG_CMSG_CLOEXEC, SOCK_CLOEXEC. Includes SOCK_NONBLOCK support. ok matthew@
* POSIX/FreeBSD/NetBSD/Linux/etc agree -- blk[size|cnt]_t is the bomb.krw2014-08-221-3/+3
| | | | | | | | | | | | So add the types blksize_t (a.k.a. int32_t) and blkcnt_t (a.k.a. int64_t). Use blkcnt_t in stat.h since the base type (int64_t) does not change. blksize_t in stat.h will follow after the tree is audited for signed issues, since the base type will change from u_int32_t to a POSIX compliant int32_t. Guidance and feedback from guenther@ ok millert@
* Fixed typo in "distinct".tobias2014-08-161-3/+3
| | | | ok jmc@
* fixed overrid(d)en typotobias2014-08-141-2/+2
| | | | millert@ and jmc@ agree that "overriden" is wrong
* AF_IMPLINK and AF_BLUETOOTH are goneguenther2014-08-101-9/+3
|
* Add pthread_sigmask() and raise() to the list of async signal safematthew2014-07-211-1/+3
| | | | | | functions, per POSIX Issue 7 ok deraadt
* Fix typo: s/lstate/lstat/matthew2014-07-211-3/+3
|
* Document that abort() is async signal safe now that it doesn't flushmatthew2014-07-191-6/+5
| | | | | | | | | | stdio buffers While here replace "SUSv[67]" with "POSIX Issue [67]" and update signal(3) to mention that pselect() and ppoll() are async signal safe like sigaction(2) already does. ok guenther
* Oops, getentropy() is an "extension interface", not a "base interface"matthew2014-07-181-2/+2
| | | | | Also, update the async signal safe list in signal(3) too (reminded by deraadt)
* Document that getentropy() is async signal safe.matthew2014-07-181-2/+3
| | | | Pointed out by Jean-Philippe Ouellet
* As discussed with beck, tweak the wording for getentropy slightly soderaadt2014-07-181-5/+4
| | | | | that a certain kind of people don't go bonkers over "what is entropy". it is what it is, input to PRNG's.
* one .Fn argument per function argumentschwarze2014-07-131-8/+8
|
* yes indeed, it returns void *. from Jean-Philippe Ouellet, i also hadderaadt2014-07-131-3/+3
| | | | this lurking in a tree
* tweak previous;jmc2014-07-121-4/+3
|
* document sendsyslog(2); ok guenther tedu matthewderaadt2014-07-122-4/+61
|
* better document perils of setuid getenv and xr with issetugidtedu2014-07-111-3/+4
| | | | ok deraadt
* Add MAP_ANONYMOUS as a synonym for MAP_ANON, per POSIX proposalmatthew2014-07-101-5/+8
| | | | ok miod
* posix_madvise() should return the errno value on error, not -1guenther2014-07-102-6/+14
| | | | ok tedu@ jmc@
* prototype for _thread_sys_madvisetedu2014-07-101-1/+3
|
* Various small typographic fixes for mman.h manual pages:matthew2014-07-0210-114/+66
| | | | | | | | | | | | Use .Fn instead of .Nm as appropriate Use .In for include lines Use .Rv -std where possible Use .Xr to refer to functions from other manual pages Remove extraneous sys/types.h include More substantive changes to follow. Discussed with schwarze
* Sync description of PROT_* flags between mmap.2 and mprotect.2matthew2014-07-022-8/+11
| | | | ok guenther
* zap unneccessary punctuation;jmc2014-06-271-16/+16
|
* Cleanup ioctl.2 slightly:matthew2014-06-271-7/+7
| | | | | | | | | | - Markup ioctl argument types with Fa - Be clearer that ioctl arguments are pointers to ints. Similar changes to follow for manual pages that describe device-specific ioctl commands. Discussed with jmc and schwarze.
* OpenBSD supports mmap() on block special files too.matthew2014-06-271-3/+5
|
* Split out mmap's compatibility flags into a separate section, so usersmatthew2014-06-271-15/+33
| | | | aren't misled into thinking they're useful on OpenBSD.
* Revise wording to reflect that callers should always specify (exactly)matthew2014-06-271-8/+39
| | | | | one of MAP_PRIVATE or MAP_SHARED, as required by POSIX. However, also caveat that currently OpenBSD doesn't strictly enforce this behavior.
* Document that mmap() confirms to POSIX 2008, except that we generatematthew2014-06-261-2/+17
| | | | | SIGSEGV instead of SIGBUS for page references beyond the end of a mapped object.
* occured -> occurred;jmc2014-06-151-3/+3
|
* Change return value of getentropy() to int 0 for success. Maximumderaadt2014-06-141-9/+27
| | | | | | | | buffersize is enforced strictly, this supplies sufficient entropy payload to act as seed material. Discourage general use of this API, but lock down this function name as the go-to for userland PRNG seeding. Improve documentation. ok miod matthew
* typo; Piotr Sikoraderaadt2014-06-131-3/+2
|
* Add new getentropy() system call. Code and pressure from matthew.deraadt2014-06-132-6/+57
| | | | | | | | I accepted that he's right (again) to seperate this out from heavy sysctl API and this will simply a variety of things. Functionname is not used by anyone in the ports tree, so we guess we can use it. Shocking that no application has a function called this. ok matthew & others who pushed him to start this early on
* Add support for MAP_INHERIT_ZERO.matthew2014-06-131-16/+24
| | | | | | | | This provides a way for a process to designate pages in its address space that should be replaced by fresh, zero-initialized anonymous memory in forked child processes, rather than being copied or shared. ok jmc, kettenis, tedu, deraadt; positive feedback from many more
* Add definitions for Process and (finally!) Threadguenther2014-05-301-9/+28
| | | | | | | Tweak some error descriptions based on that Completely reword ETXTBSY description based on a suggestion from millert@ tweaks and oks jmc@ millert@ sobrado@
* A program is the thing you run; a process is an instance of somethingguenther2014-05-301-4/+4
| | | | | | running ok millert@ sobrado@
* Use .Er for errnosguenther2014-05-291-3/+3
|
* Grammarguenther2014-05-291-3/+3
|
* Fix typo in EPERM description; the function arg is pgrp, not pgid.millert2014-05-241-3/+3
| | | | From Abel Abraham Camarillo Ojeda
* Document that v?dprintf() is just as safe as v?snprintf(). OK espie@millert2014-05-231-2/+6
|
* No really, pid 2 isn't specialguenther2014-05-021-2/+2
|