summaryrefslogtreecommitdiff
path: root/sys/kern/kern_descrip.c
AgeCommit message (Expand)Author
2019-06-26Return EINVAL, not EBADF for fcntl(fd, F_GETLK) of a non-vnode.Todd C. Miller
2019-06-25Return EINVAL not EBADF when trying to lock a non-vnode.Todd C. Miller
2019-06-21Make resource limit access MP-safe. So far, the copy-on-write sharingVisa Hankala
2019-05-13dup2(n,n) would rlimit check before handling the n==n shortcut,Theo de Raadt
2018-11-05trace struct flock; ok visa@anton
2018-08-24Remove all knotes from a file descriptor before closing the file inVisa Hankala
2018-08-21Use explicit fd indexing to access fd_ofiles, to clarify the code.Visa Hankala
2018-08-20Make fnew() return a new file with only one reference. This makesVisa Hankala
2018-08-19Remove a stale/obvious comment.Visa Hankala
2018-08-10Update fd_freefile when filtering/closing kqueue descriptors in fdcopy().Joel Sing
2018-07-10Move socket & pipe specific logic in their ioctl handler.Martin Pieuchot
2018-07-07Fix an argument type error that happens when translating fcntl(F_SETOWN)Visa Hankala
2018-07-02Update the file reference count field `f_count' using atomic operationsVisa Hankala
2018-07-02Assert that fdp is locked in fdalloc().Visa Hankala
2018-07-01Lock the file descriptor table when accessing the `fd_ofileflags' array.Visa Hankala
2018-06-27Raise file_pool's IPL to prevent deadlocks with the newly unlockedVisa Hankala
2018-06-26Remove a duplicate fd_used() call. The new file descriptor passedVisa Hankala
2018-06-25Implement DRI3/prime support. This allows graphics buffers to be passedMark Kettenis
2018-06-25Introduce fnew(), a function to initialize a `struct file'.Martin Pieuchot
2018-06-24Use atomic operations for updating `numfiles'. This makes the file countVisa Hankala
2018-06-20Unlock sendmsg(2) and sendto(2).Martin Pieuchot
2018-06-18Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-06-17Move kqueue related fields from struct filedesc to struct kqueue. Solves a panicanton
2018-06-05Revert introduction of fdinsert(), a sanitify check triggers whenMartin Pieuchot
2018-06-02Add an assert that makes explicit that finishdup() should receiveVisa Hankala
2018-06-02Put file descriptors on shared data structures when they are completelyMartin Pieuchot
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