summaryrefslogtreecommitdiff
path: root/sys/kern/sys_generic.c
AgeCommit message (Expand)Author
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
2015-02-12Remove useless extern definitions of nselcoll and selwait.Todd C. Miller
2014-12-10convert bcopy to memcpy. ok millertTed Unangst
2014-11-03pass size argument to free()Theo de Raadt
2014-10-13use mallocarray to get the array of pollfd structs.David Gwynne
2014-07-13trim some castsTed Unangst
2014-07-13use mallocarray where arguments are multipled. ok deraadtTed Unangst
2014-07-12Refactor out dosigsuspend() functionMatthew Dempsky
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-07-08Repair compilability after the recent uvmexp changes, especially forMiod Vallat
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoPhilip Guenther