summaryrefslogtreecommitdiff
path: root/sys/kern/sys_generic.c
AgeCommit message (Expand)Author
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
2014-01-21bzero -> memsetTed Unangst
2013-09-14Correct the handling of I/O of >=2^32 bytes and the ktracing there ofPhilip Guenther
2013-09-14Snapshots for all archs have been built, so remove the T32 codePhilip Guenther
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
2013-06-01always implement stub utrace syscall, but keep the body #ifdef KTRACETed Unangst
2013-05-19select(-1, ...) should fail with EINVAL.Philip Guenther
2013-04-29Extend P_SIGSUSPEND handling in userret() to properly restore theMatthew Dempsky
2012-07-09Print the fd_set used by select in kdump.Claudio Jeker
2012-07-09Compare the size of the static fd_mask against the number of bytes neededClaudio Jeker
2012-04-22Add struct proc * argument to FRELE() and FILE_SET_MATURE() inPhilip Guenthe
2012-03-19Add tracing and dumping of "pointer to struct" syscall arguments forPhilip Guenthe
2012-02-15Hold struct filedesc's fd_lock when writing to the fd_ofiles, fd_ofileflags,Philip Guenthe
2011-11-06Document a non-obvious reason why something can't overflow.Philip Guenthe
2010-12-19Since we have an ioctl that uses a struct with an off_t member as itsMark Kettenis
2010-08-18delete some rogue spaces and tabs. no binary change.Marco Peereboom
2010-07-26Correct the links between threads, processes, pgrps, and sessions,Philip Guenthe