diff options
author | 2018-06-25 09:36:28 +0000 | |
---|---|---|
committer | 2018-06-25 09:36:28 +0000 | |
commit | 5321a24bf290f81e0e31f783c7ab5c5cd22a4ee3 (patch) | |
tree | 9b4f1bd3863d3e9a722577a05a84082ecbfce815 /sys/sys/filedesc.h | |
parent | Add a regression test for running jot without any arguments. (diff) | |
download | wireguard-openbsd-5321a24bf290f81e0e31f783c7ab5c5cd22a4ee3.tar.xz wireguard-openbsd-5321a24bf290f81e0e31f783c7ab5c5cd22a4ee3.zip |
Introduce fnew(), a function to initialize a `struct file'.
Commiting now to help refactoring of DRI3 and diskmap rewrite.
ok visa@, kettenis@ as part of a larger diff.
Diffstat (limited to 'sys/sys/filedesc.h')
-rw-r--r-- | sys/sys/filedesc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h index f2f22a8ffdd..d92bbd65197 100644 --- a/sys/sys/filedesc.h +++ b/sys/sys/filedesc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: filedesc.h,v 1.39 2018/06/18 09:15:05 mpi Exp $ */ +/* $OpenBSD: filedesc.h,v 1.40 2018/06/25 09:36:28 mpi Exp $ */ /* $NetBSD: filedesc.h,v 1.14 1996/04/09 20:55:28 cgd Exp $ */ /* @@ -120,6 +120,7 @@ void filedesc_init(void); int dupfdopen(struct proc *, int, int); int fdalloc(struct proc *p, int want, int *result); void fdexpand(struct proc *); +struct file *fnew(struct proc *_p); int falloc(struct proc *_p, struct file **_rfp, int *_rfd); struct filedesc *fdinit(void); struct filedesc *fdshare(struct process *); |