aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-01-12 15:13:27 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-01-13 02:27:03 +0000
commit4faa375cdd4e36d3a5b7fc46ee9dd8079a5e26f7 (patch)
treee35ba0188706d6b014336ec1a50a8963623b91d6 /sys/sys
parent7c5a624afae43c44d8e57eb8c5073b9b07f88064 (diff)
downloadsrc-4faa375cdd4e36d3a5b7fc46ee9dd8079a5e26f7.tar.gz
src-4faa375cdd4e36d3a5b7fc46ee9dd8079a5e26f7.zip
fd: provide a dedicated closef variant for unix socket code
This avoids testing for td != NULL.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/filedesc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index ae2232814136..132aa6c1de03 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -224,6 +224,7 @@ void filecaps_move(struct filecaps *src, struct filecaps *dst);
void filecaps_free(struct filecaps *fcaps);
int closef(struct file *fp, struct thread *td);
+void closef_nothread(struct file *fp);
int dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode,
int openerror, int *indxp);
int falloc_caps(struct thread *td, struct file **resultfp, int *resultfd,