summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* typo in kern.maxlocksperuidotto2018-03-051-3/+3
|
* various tweaks, in part to try and clean up the amount of verticaljmc2018-03-041-361/+351
| | | | | | whitespace in this page; ok deraadt
* improve lining up of tabs inside .Fd macros for terminal output;schwarze2018-02-271-3/+3
| | | | from <Edgar at Pettijohn dash web dot com> on tech@
* macro fix;jmc2018-02-111-2/+3
|
* Document how MAP_STACK will be used. All stacks must be mmap'd withderaadt2018-02-112-5/+20
| | | | | | | | | this attribute. The kernel does so for main-process stacks at execve() time, pthread stack functions do so for new stacks, and stacks provided to sigaltstack() and other user-provided stacks will need to be allocated in that way. Not required yet, but paving the way. Work done with stefan
* zap trailing whitespace;jmc2018-02-101-2/+2
|
* add support for binary sysctl payloads by handling them as hexflorian2018-02-101-2/+8
| | | | | | | | | | | | | | | | strings. this was part of a demo showing how to implement the kernel side of sysctl(3) for setting Semantically Opaque Interface Identifier key material (for RFC 7217), but it seems to be the most straightforward path toward integrating soiikey handling and rc. Originally written by dlg, who commited it some time ago on my request. I then backed it out again, now it's time to put it back in. ok florian@ sthen@ naddy@ tb@ Man page bits tweaked & OK jmc
* tweak previous;jmc2018-01-131-5/+6
|
* introduce a filter called EVFILT_DEVICE that can be used to notifyrobert2018-01-131-2/+15
| | | | | | | listeners of device state changes. currently only supports NOTE_CHANGE that will be used by drm(4) ok kettenis@
* Adjust references for sysctl(3) to sysctl(2)deraadt2018-01-126-20/+20
|
* sysctl(3) can now be renamed to sysctl(2)deraadt2018-01-122-3/+2260
|
* TIOCUCNTL is now allowed by promise "tty".mpi2018-01-081-4/+5
| | | | Reminded by jmc@
* let's not try to document the number of items in a list...jmc2017-12-181-3/+3
|
* Add the CLOCK_BOOTTIME clockid for use with clock_gettime(2)cheloha2017-12-181-3/+16
| | | | | | | | | | | | | | | | | and put it to use in userspace in lieu of the kern.boottime sysctl. Its absolute value is the time that has elapsed since the system booted, i.e., the system uptime. Use in top(1), w(1), and snmpd(8) eliminates a race with settimeofday(2), adjtime(2), etc. inherent to deriving the system uptime via the kern.boottime sysctl. Product of a great deal of discussion/revision with jca@, tb@, and guenther@. ok tb@ jca@ guenther@ dlg@ mlarkin@ tom@
* Consistently use .Va for "errno";schwarze2017-12-121-3/+3
| | | | | patch from Jan Stary <hans at stare dot cz>; "I think it makes sense to speak about errno as a variable (.Va)" jca@.
* space required between macro arg and punctuation;jmc2017-12-121-2/+2
|
* pledge()'s 2nd argument becomes char *execpromises, which becomes thederaadt2017-12-122-44/+48
| | | | | | | | | | pledge for a new execve image immediately upon start. Also introduces "error" which makes violations return -1 ENOSYS instead of killing the program ("error" may not be handed to a setuid/setgid program, which may be missing/ignoring syscall return values and would continue with inconsistant state) Discussion with many florian has used this to improve the strictness of a daemon
* clang doesn't propagate attributes like "asm labels" and "visibility(hidden)"guenther2017-11-291-2/+2
| | | | | | | | | to builtins like mem{set,cpy,move} and __stack_smash_handler. So, when building with clang, instead mark those as protected visibility to get rid of the PLT relocations. We can't take the address of them then, but that's ok: it's a build-time error not a run-time error. ok kettenis@
* Delete fktrace(2). The consequences of it were not thought throughguenther2017-11-282-40/+7
| | | | | | sufficiently and at least one horrific security hole was the result. ok deraadt@ beck@
* consistently use .Vt for variable types and use ".Fa path" where appropriate;schwarze2017-10-281-16/+18
| | | | one of the bugs reported by <ilya dot kaliman at gmail dot com> via jmc@
* Removed duplicated line.tobias2017-10-221-3/+2
| | | | ok jmc@
* Document fktrace(2) more completely, including separation of errors.guenther2017-10-081-19/+69
| | | | | | Add a few errors that were previously undocumented. ok jmc@
* Add fktrace to the NAME sectionguenther2017-10-071-3/+4
| | | | ok jmc@
* Document that connect(2) and sendto(2) may return with errnobluhm2017-10-052-5/+7
| | | | | EADDRNOTAVAIL if local address is not available. OK deraadt@ millert@
* Document how ioctl(2) LIOCSFD on /dev/klog registers a socket pairbluhm2017-09-271-2/+19
| | | | | to receive sendsyslog(2) messages. discussed with martijn@; OK jmc@ deraadt@
* sendsyslog should take a const char * everywhere.espie2017-09-251-3/+3
| | | | okay bluhm@, deraadt@
* tweak previous: remove trailing blank and improve a wording;schwarze2017-09-211-4/+4
| | | | requested by jmc@
* Properly document the typical write(2) loop,schwarze2017-09-201-16/+18
| | | | | | and delete misleading parts from the CAVEATS; issue reported by <ScottCheloha at gmail dot com> on bugs@; OK espie@ millert@
* Add additional errno values required by POSIX.jsg2017-09-051-2/+10
| | | | ok jca@ kettenis@ deraadt@
* Move mutex, condvar, and thread-specific data routes, pthread_once, andguenther2017-09-051-1/+1
| | | | | | | | pthread_exit from libpthread to libc, along with low-level bits to support them. Major bump to both libc and libpthread. Requested by libressl team. Ports testing by naddy@ ok kettenis@
* add fktrace to libctedu2017-08-132-5/+14
|
* Instead of hardcoding a partial dependency list for the syscall stub objects,guenther2017-08-121-28/+26
| | | | calculate them as done for other objects
* Accessing a mmap(2)ed file behind its end should result in a SIGBUSbluhm2017-07-201-3/+3
| | | | | | according to POSIX. Bring regression test and kernel in line for amd64 and i386. Other architectures have to follow. OK deraadt@ kettenis@
* Both syslog(3) and syslogd(8) truncate the message at 8192 bytes.bluhm2017-07-181-2/+7
| | | | | Do the same in sendsyslog(2) and document the behavior. reported by Ilja Van Sprundel; OK millert@ deraadt@
* replace Fifos with FIFOs.dlg2017-07-101-3/+3
| | | | ok jmc@ visa@
* fix cross references to self; found with mandoc -Tlintschwarze2017-07-051-3/+3
|
* request -> promises; from scott chelohajmc2017-06-111-3/+3
|
* Add an acct(5) flag for pledge violations. Then lastcomm(1) showsbluhm2017-06-071-2/+12
| | | | | | | when something went wrong. This allows to monitor whether the system is under attack and that the attack has been prevented by OpenBSD pledge(2). OK deraadt@ millert@ jmc@
* Add support for EV_RECEIPT and EV_DISPATCH flagsmikeb2017-05-311-2/+17
| | | | | From FreeBSD via Jan Schreiber <jes at posteo ! de>, thanks! OK tedu, bluhm
* install futex(2), ok mpisthen2017-05-311-2/+2
|
* getrlimit is now allowed by "stdio"deraadt2017-05-301-2/+3
|
* sort SEE ALSO;jmc2017-05-291-2/+2
|
* It is distasteful to have manual pages which don't refer to realderaadt2017-05-294-12/+18
| | | | | | | function calls, but instead a "class" of functions like "sigsetops". Rename to sigaddset", and while at it improve documentation in sigprocmask(2) to point to it. ok tedu
* Move info about group handling via a negative pid into the listmillert2017-05-061-9/+9
| | | | with the other pid-specific details.
* Document what happens when sending a signal to the calling process.millert2017-05-051-3/+20
| | | | OK jmc@
* Mention that the signal mask does not affect what signals aremillert2017-05-051-3/+18
| | | | | discarded by the kernel. Document that at least one pending signal will be delivered before sigprocmask() returns.
* Document that wait3/waitpid can receive SIGCHILD when wpid doesmillert2017-05-011-3/+26
| | | | | | | not exist or is not a child of the calling process. Document what happens when SIGCHLD is ignored or SA_NOCLDWAIT is set in sa_flags (this part from FreeBSD). OK guenther@
* Add futex(2) shim, bump minor.mpi2017-04-301-1/+2
| | | | Inputs from guenther@, ok kettenis@, visa@
* Reference the "Futexes Are Tricky" paper.mpi2017-04-281-1/+7
| | | | With schwarze@
* errant space;jmc2017-04-281-2/+2
|