summaryrefslogtreecommitdiff
path: root/sys/kern/sys_generic.c
AgeCommit message (Expand)Author
2021-12-11Clarify usage of __EV_POLL and __EV_SELECTVisa Hankala
2021-12-08Fix select(2) exceptfds handling of FIFOs and pipesVisa Hankala
2021-11-30Prevent select(2) from blocking if registering found pending events.Visa Hankala
2021-11-22Revert poll(2) back to the original implementationVisa Hankala
2021-11-22Translate POLLNVAL in ppollcollect()Visa Hankala
2021-11-16Use nowake when poll/select has empty fd setVisa Hankala
2021-11-12Keep knotes between poll/select systems callsVisa Hankala
2021-10-29poll needs similar treatment as select recently gained in order to notAnton Lindqvist
2021-10-24Implement poll(2), select(2), ppoll(2) & pselect(2) on top of kqueue.Martin Pieuchot
2021-10-15Revert "Implement select(2) and pselect(2) on top of kqueue."Martin Pieuchot
2021-10-14Implement select(2) and pselect(2) on top of kqueue.Martin Pieuchot
2021-01-08Revert "Implement select(2) and pselect(2) on top of kqueue."Visa Hankala
2020-12-26Simplify parameters of pselregister().Visa Hankala
2020-12-22Implement select(2) and pselect(2) on top of kqueue.Martin Pieuchot
2020-10-02expose timeval/timespec from system calls into ktrace, before determiningTheo de Raadt
2020-03-20poll(2), ppoll(2), pselect(2), select(2): tsleep(9) -> tsleep_nsec(9)cheloha
2020-02-14Push the KERNEL_LOCK() insidge pgsigio() and selwakeup().Martin Pieuchot
2020-02-01Make writes to the f_flag field of `struct file' MP-safe using atomicanton
2020-01-16Introduce wakeup_proc() a function to un-SSTOP/SSLEEP a thread.Martin Pieuchot
2020-01-08Unify handling of ioctls FIOSETOWN/SIOCSPGRP/TIOCSPGRP andVisa Hankala
2019-10-03poll(2), ppoll(2), select(2), pselect(2): always set P_SELECT before tsleepcheloha
2019-06-22push the KERNEL_LOCK deeper on read(2) and write(2)Sebastien Marie
2019-06-21Make resource limit access MP-safe. So far, the copy-on-write sharingVisa Hankala
2019-01-21select(2), pselect(2), poll(2), ppoll(2): Support full timeout range.cheloha
2018-08-20Reorder checks in the read/write(2) family of syscalls to prepare makingMartin Pieuchot
2018-07-14Don't pass an uninitialised size value to free(9). Pointer argument isJonathan Gray
2018-07-10Move socket & pipe specific logic in their ioctl handler.Martin Pieuchot
2018-05-08Protect per-file counters and document which lock is used to protectMartin Pieuchot
2018-04-27Move FREF() inside fd_getfile().Martin Pieuchot
2018-04-09Call FREF() right after fd_getfile_mode() in sys_ioctl().Martin Pieuchot
2018-01-02Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.Philip Guenther
2017-06-26Assert that the corresponding socket is locked when manipulating socketMartin Pieuchot
2017-01-24Rename pfind(9) into tfind(9) to reflect that it deals with threads.Martin Pieuchot
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirPhilip Guenther
2016-07-05remove some casts that aren't necessary.Ted Unangst
2016-06-07ktrace support for pollfd[] arraysTheo de Raadt
2015-12-05remove stale lint annotationsTed Unangst
2015-11-01refactor pledge_*_check and pledge_fail functionsSebastien Marie
2015-10-18move SS_DNS socket check from kern_plegde.c to sys_generic.cSebastien Marie
2015-10-11pledge_ioctl_check() will do the killing if neccessary; if it returns,Theo de Raadt
2015-10-09another stray )Theo de Raadt
2015-10-09shortcircuit TIOCGETA to directly return ENOTTY for non-ttys. It couldTheo de Raadt
2015-10-09Rename tame() to pledge(). This fairly interface has evolved to be moreTheo de Raadt
2015-09-11Convert _TM_ flags to TAME_ flags, collapsing the entire mappingTheo de Raadt
2015-09-11Only include <sys/tame.h> in the .c files that need itPhilip Guenther
2015-08-22Move to tame(int flags, char *paths[]) API/ABI.Theo de Raadt
2015-07-28Add ktracing of structs iovec, msghdr, and cmsghdr for {,p}{read,write}v(),Philip Guenther
2015-07-19tame(2) is a subsystem which restricts programs into a "reduced featureTheo de Raadt
2015-05-10Set POLLHUP even if no valid events were specified as per POSIX.Todd C. Miller
2015-04-30Indroduce fd_getfile_mode() and use it were fd_getfile() is directlyMartin Pieuchot