summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* dup2(n,n) would rlimit check before handling the n==n shortcut,deraadt2019-05-131-6/+6
* trace struct flock; ok visa@anton2018-11-051-1/+9
* Remove all knotes from a file descriptor before closing the file invisa2018-08-241-1/+2
* Use explicit fd indexing to access fd_ofiles, to clarify the code.visa2018-08-211-7/+6
* Make fnew() return a new file with only one reference. This makesvisa2018-08-201-3/+2
* Remove a stale/obvious comment.visa2018-08-191-7/+1
* Update fd_freefile when filtering/closing kqueue descriptors in fdcopy().jsing2018-08-101-2/+5
* Move socket & pipe specific logic in their ioctl handler.mpi2018-07-101-24/+4
* Fix an argument type error that happens when translating fcntl(F_SETOWN)visa2018-07-071-8/+9
* Update the file reference count field `f_count' using atomic operationsvisa2018-07-021-31/+63
* Assert that fdp is locked in fdalloc().visa2018-07-021-1/+3
* Lock the file descriptor table when accessing the `fd_ofileflags' array.visa2018-07-011-1/+3
* Raise file_pool's IPL to prevent deadlocks with the newly unlockedvisa2018-06-271-2/+2
* Remove a duplicate fd_used() call. The new file descriptor passedvisa2018-06-261-2/+3
* Implement DRI3/prime support. This allows graphics buffers to be passedkettenis2018-06-251-2/+6
* Introduce fnew(), a function to initialize a `struct file'.mpi2018-06-251-12/+31
* Use atomic operations for updating `numfiles'. This makes the file countvisa2018-06-241-5/+6
* Unlock sendmsg(2) and sendto(2).mpi2018-06-201-18/+42
* Put file descriptors on shared data structures when they are completelympi2018-06-181-46/+50
* Move kqueue related fields from struct filedesc to struct kqueue. Solves a panicanton2018-06-171-8/+3
* Revert introduction of fdinsert(), a sanitify check triggers whenmpi2018-06-051-48/+38
* Add an assert that makes explicit that finishdup() should receivevisa2018-06-021-1/+3
* Put file descriptors on shared data structures when they are completelympi2018-06-021-38/+46
* Use IPL_MPFLOOR for mutexes that can be taken w/ and w/o the KERNEL_LOCK().mpi2018-05-311-2/+2
* `f_mtx' must block interrupts as long as it is taken w/ and w/o thempi2018-05-291-2/+6
* Returns EBUSY if dup2(2) is called for a LARVAL file.mpi2018-05-281-6/+7
* Change fd_iterfile() to not return imature fps instead of skipping themmpi2018-05-081-2/+2
* Protect per-file counters and document which lock is used to protectmpi2018-05-081-1/+2
* Remove proc from the parameters of vn_lock(). The parameter isvisa2018-05-021-2/+2
* Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysvisa2018-04-281-2/+2
* Move FREF() inside fd_getfile().mpi2018-04-271-12/+12
* Rewrite fdcopy() to avoid memcpy()s.mpi2018-04-261-52/+38
* Introduce fd_iterfile() a new helper function to iterate over `filehead'.mpi2018-04-251-1/+23
* Do a FREF()/FRELE() dance after fd_getfile() in sys_fcntl().mpi2018-04-181-3/+8
* Use the current reference instead of incrementing `f_count' manually andmpi2018-04-121-5/+4
* Call FREF(9) earlier instead of incrementing `f_count' directly inmpi2018-04-121-4/+8
* The pledge flag for file descriptors opened from /dev/fd was alwaysbluhm2018-04-111-3/+1
* Revert previous, it introduced a bug found the hardway by landry@.mpi2018-04-091-16/+12
* Call finishdup() instead of rerolling it in dupfdopen().mpi2018-04-091-12/+16
* Retain the UF_PLEDGED flag from the original fd during dup(2).bluhm2018-04-061-2/+2
* Call FREF() right after fd_getfile() in dodup3().mpi2018-04-031-3/+6
* Call FREF() right after fd_getfile() in sys_flock().mpi2018-03-281-3/+5
* Remove almost unused `flags' argument of suser().mpi2018-02-191-2/+2
* Initialize a local variable to not leak kernel stack info to userlandmpi2017-07-201-1/+2
* Add a flags argument to falloc() that lets it optionally set theguenther2017-02-111-6/+8
* Track a per-fd flag UF_PLEDGED. This indicates the initial open was done by aderaadt2017-01-241-3/+10
* Allocate all memory chunks, and potentially sleeping, before freeingmpi2017-01-231-6/+11
* Avoid curproc dance in dupfdopen(), by passing a struct proc *deraadt2017-01-231-7/+9
* move knhash size to event.h, use it for hashfree. from Mathieu -tedu2016-09-241-2/+2
* all pools have their ipl set via pool_setipl, so fold it into pool_init.dlg2016-09-151-7/+5