diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2013-04-14 17:08:34 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2013-04-14 17:08:34 +0000 |
commit | db8f33fd3282a72600a6732bd6472314b91e49eb (patch) | |
tree | 2db21f81359000be9aa1f9886e4e21bf05d233bf /sys/sys/filedesc.h | |
parent | fb69d3e351a9ca8dd13785ac3a1dfb3a08c855b0 (diff) | |
download | src-db8f33fd3282a72600a6732bd6472314b91e49eb.tar.gz src-db8f33fd3282a72600a6732bd6472314b91e49eb.zip |
Add fdallocn function and use it when passing fds over unix socket.
This gets rid of "unp_externalize fdalloc failed" panic.
Reviewed by: pjd
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=249480
Diffstat (limited to 'sys/sys/filedesc.h')
-rw-r--r-- | sys/sys/filedesc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h index d9fe0e0d8b46..1e51a9cfad45 100644 --- a/sys/sys/filedesc.h +++ b/sys/sys/filedesc.h @@ -150,6 +150,7 @@ int falloc_noinstall(struct thread *td, struct file **resultfp); int finstall(struct thread *td, struct file *fp, int *resultfp, int flags, struct filecaps *fcaps); int fdalloc(struct thread *td, int minfd, int *result); +int fdallocn(struct thread *td, int minfd, int *fds, int n); int fdavail(struct thread *td, int n); int fdcheckstd(struct thread *td); void fdclose(struct filedesc *fdp, struct file *fp, int idx, struct thread *td); |