summaryrefslogtreecommitdiff
path: root/sys/kern/kern_descrip.c
AgeCommit message (Expand)Author
2018-05-31Use IPL_MPFLOOR for mutexes that can be taken w/ and w/o the KERNEL_LOCK().Martin Pieuchot
2018-05-29`f_mtx' must block interrupts as long as it is taken w/ and w/o theMartin Pieuchot
2018-05-28Returns EBUSY if dup2(2) is called for a LARVAL file.Martin Pieuchot
2018-05-08Change fd_iterfile() to not return imature fps instead of skipping themMartin Pieuchot
2018-05-08Protect per-file counters and document which lock is used to protectMartin Pieuchot
2018-05-02Remove proc from the parameters of vn_lock(). The parameter isVisa Hankala
2018-04-28Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysVisa Hankala
2018-04-27Move FREF() inside fd_getfile().Martin Pieuchot
2018-04-26Rewrite fdcopy() to avoid memcpy()s.Martin Pieuchot
2018-04-25Introduce fd_iterfile() a new helper function to iterate over `filehead'.Martin Pieuchot
2018-04-18Do a FREF()/FRELE() dance after fd_getfile() in sys_fcntl().Martin Pieuchot
2018-04-12Use the current reference instead of incrementing `f_count' manually andMartin Pieuchot
2018-04-12Call FREF(9) earlier instead of incrementing `f_count' directly inMartin Pieuchot
2018-04-11The pledge flag for file descriptors opened from /dev/fd was alwaysAlexander Bluhm
2018-04-09Revert previous, it introduced a bug found the hardway by landry@.Martin Pieuchot
2018-04-09Call finishdup() instead of rerolling it in dupfdopen().Martin Pieuchot
2018-04-06Retain the UF_PLEDGED flag from the original fd during dup(2).Alexander Bluhm
2018-04-03Call FREF() right after fd_getfile() in dodup3().Martin Pieuchot
2018-03-28Call FREF() right after fd_getfile() in sys_flock().Martin Pieuchot
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2017-07-20Initialize a local variable to not leak kernel stack info to userlandMartin Pieuchot
2017-02-11Add a flags argument to falloc() that lets it optionally set thePhilip Guenther
2017-01-24Track a per-fd flag UF_PLEDGED. This indicates the initial open was done by aTheo de Raadt
2017-01-23Allocate all memory chunks, and potentially sleeping, before freeingMartin Pieuchot
2017-01-23Avoid curproc dance in dupfdopen(), by passing a struct proc *Theo de Raadt
2016-09-24move knhash size to event.h, use it for hashfree. from Mathieu -Ted Unangst
2016-09-15all pools have their ipl set via pool_setipl, so fold it into pool_init.David Gwynne
2016-08-25pool_setiplDavid Gwynne
2016-08-23rename nfiles to numfiles to avoid shadowing and stretch out the name.Ted Unangst
2016-05-29Fix sizes passed to free() in fdfree(). This prevents a panic reportedMartin Natano
2016-05-28add sizes to free() calls for descrip tablesTed Unangst
2016-04-25remove systrace remnantsTed Unangst
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano
2016-01-06remove unnecessary casts where the incoming type is void *.Ted Unangst
2015-12-17no need to check null before freeTed Unangst
2015-12-17add size to free. from MathieuTed Unangst
2015-12-05remove stale lint annotationsTed Unangst
2015-11-01refactor pledge_*_check and pledge_fail functionsSebastien Marie
2015-10-28Prevent F_SETOWN, unless a "proc" pledge was made.Theo de Raadt
2015-10-21Setting fcntl(F_SETOWN) for a pipe failed with inappropriate ioctlAlexander Bluhm
2015-10-16Implement real "flock" request and add it to userland programs thatTodd C. Miller
2015-05-17isatty() is used by stdio to determine the buffering mode. Add a F_ISATTYTheo de Raadt
2015-04-30Avoid NULL deref in fd_getfile_mode(); OK deraadt@Todd C. Miller
2015-04-30Indroduce fd_getfile_mode() and use it were fd_getfile() is directlyMartin Pieuchot
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2015-01-19unneccessary cmask variable; ok guentherTheo de Raadt
2014-12-19start retiring the nointr allocator. specify PR_WAITOK as a flag as aTed Unangst
2014-12-16primary change: move uvm_vnode out of vnode, keeping only a pointer.Ted Unangst
2014-08-31Add additional kernel interfaces for setting close-on-exec on fdsPhilip Guenther
2014-07-13use mallocarray where arguments are multipled. ok deraadtTed Unangst