diff options
author | guenther <guenther@openbsd.org> | 2017-02-11 19:51:06 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2017-02-11 19:51:06 +0000 |
commit | 65014aebf91a57834a8398456ecc3535a02b36e8 (patch) | |
tree | 88a76e7799ac343a0e5d4718526e10f22f424680 /sys/sys/filedesc.h | |
parent | Move parse_warning() into parse.c to prepare to replace errwarn.c (diff) | |
download | wireguard-openbsd-65014aebf91a57834a8398456ecc3535a02b36e8.tar.xz wireguard-openbsd-65014aebf91a57834a8398456ecc3535a02b36e8.zip |
Add a flags argument to falloc() that lets it optionally set the
close-on-exec flag on the newly allocated fd. Make falloc()'s
return arguments non-optional: assert that they're not NULL.
ok mpi@ millert@
Diffstat (limited to 'sys/sys/filedesc.h')
-rw-r--r-- | sys/sys/filedesc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h index 3c9b6b88aaf..8fd0dc38efc 100644 --- a/sys/sys/filedesc.h +++ b/sys/sys/filedesc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: filedesc.h,v 1.33 2017/01/25 06:15:50 mpi Exp $ */ +/* $OpenBSD: filedesc.h,v 1.34 2017/02/11 19:51:06 guenther Exp $ */ /* $NetBSD: filedesc.h,v 1.14 1996/04/09 20:55:28 cgd Exp $ */ /* @@ -125,7 +125,7 @@ void filedesc_init(void); int dupfdopen(struct proc *, int, int); int fdalloc(struct proc *p, int want, int *result); void fdexpand(struct proc *); -int falloc(struct proc *p, struct file **resultfp, int *resultfd); +int falloc(struct proc *_p, int _flags, struct file **_rfp, int *_rfd); struct filedesc *fdinit(void); struct filedesc *fdshare(struct process *); struct filedesc *fdcopy(struct process *); |