summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_generic.c
AgeCommit message (Expand)AuthorFilesLines
2020-03-20poll(2), ppoll(2), pselect(2), select(2): tsleep(9) -> tsleep_nsec(9)cheloha1-9/+15
2020-02-14Push the KERNEL_LOCK() insidge pgsigio() and selwakeup().mpi1-2/+15
2020-02-01Make writes to the f_flag field of `struct file' MP-safe using atomicanton1-5/+5
2020-01-16Introduce wakeup_proc() a function to un-SSTOP/SSLEEP a thread.mpi1-9/+3
2020-01-08Unify handling of ioctls FIOSETOWN/SIOCSPGRP/TIOCSPGRP andvisa1-25/+1
2019-10-03poll(2), ppoll(2), select(2), pselect(2): always set P_SELECT before tsleepcheloha1-9/+5
2019-06-22push the KERNEL_LOCK deeper on read(2) and write(2)semarie1-2/+5
2019-06-21Make resource limit access MP-safe. So far, the copy-on-write sharingvisa1-2/+2
2019-01-21select(2), pselect(2), poll(2), ppoll(2): Support full timeout range.cheloha1-63/+58
2018-08-20Reorder checks in the read/write(2) family of syscalls to prepare makingmpi1-152/+162
2018-07-14Don't pass an uninitialised size value to free(9). Pointer argument isjsg1-2/+2
2018-07-10Move socket & pipe specific logic in their ioctl handler.mpi1-17/+5
2018-05-08Protect per-file counters and document which lock is used to protectmpi1-1/+5
2018-04-27Move FREF() inside fd_getfile().mpi1-10/+1
2018-04-09Call FREF() right after fd_getfile_mode() in sys_ioctl().mpi1-16/+16
2018-01-02Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.guenther1-1/+2
2017-06-26Assert that the corresponding socket is locked when manipulating socketmpi1-2/+2
2017-01-24Rename pfind(9) into tfind(9) to reflect that it deals with threads.mpi1-3/+3
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirguenther1-9/+9
2016-07-05remove some casts that aren't necessary.tedu1-6/+6
2016-06-07ktrace support for pollfd[] arraysderaadt1-3/+7
2015-12-05remove stale lint annotationstedu1-5/+1
2015-11-01refactor pledge_*_check and pledge_fail functionssemarie1-2/+2
2015-10-18move SS_DNS socket check from kern_plegde.c to sys_generic.csemarie1-4/+11
2015-10-11pledge_ioctl_check() will do the killing if neccessary; if it returns,deraadt1-2/+2
2015-10-09another stray )deraadt1-2/+2
2015-10-09shortcircuit TIOCGETA to directly return ENOTTY for non-ttys. It couldderaadt1-2/+3
2015-10-09Rename tame() to pledge(). This fairly interface has evolved to be morederaadt1-4/+4
2015-09-11Convert _TM_ flags to TAME_ flags, collapsing the entire mappingderaadt1-2/+2
2015-09-11Only include <sys/tame.h> in the .c files that need itguenther1-1/+2
2015-08-22Move to tame(int flags, char *paths[]) API/ABI.deraadt1-2/+1
2015-07-28Add ktracing of structs iovec, msghdr, and cmsghdr for {,p}{read,write}v(),guenther1-1/+9
2015-07-19tame(2) is a subsystem which restricts programs into a "reduced featurederaadt1-4/+10
2015-05-10Set POLLHUP even if no valid events were specified as per POSIX.millert1-3/+5
2015-04-30Indroduce fd_getfile_mode() and use it were fd_getfile() is directlympi1-19/+6
2015-02-12Remove useless extern definitions of nselcoll and selwait.millert1-2/+1
2014-12-10convert bcopy to memcpy. ok millerttedu1-3/+3
2014-11-03pass size argument to free()deraadt1-8/+8
2014-10-13use mallocarray to get the array of pollfd structs.dlg1-5/+9
2014-07-13trim some caststedu1-2/+2
2014-07-13use mallocarray where arguments are multipled. ok deraadttedu1-2/+2
2014-07-12Refactor out dosigsuspend() functionmatthew1-11/+5
2014-07-12add a size argument to free. will be used soon, but for now default to 0.tedu1-8/+8
2014-07-08Repair compilability after the recent uvmexp changes, especially formiod1-1/+3
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt1-3/+1
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoguenther1-2/+2
2014-01-21bzero -> memsettedu1-3/+3
2013-09-14Correct the handling of I/O of >=2^32 bytes and the ktracing there ofguenther1-4/+3
2013-09-14Snapshots for all archs have been built, so remove the T32 codeguenther1-140/+1
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther1-1/+140