summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2019-04-06 09:34:26 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2019-04-06 09:34:26 +0000
commita1304030b815cf1c7dbc934cbd994d8f333eb9cd (patch)
treea2167ee95d958b53b6c38b68b6965f8ae217db41 /include
parent44b0f624aee0d43179bf3874c70e03b6ae49a4db (diff)
downloadsrc-test2-a1304030b815cf1c7dbc934cbd994d8f333eb9cd.tar.gz
src-test2-a1304030b815cf1c7dbc934cbd994d8f333eb9cd.zip
Introduce funlinkat syscall that always us to check if we are removing
the file associated with the given file descriptor. Reviewed by: kib, asomers Reviewed by: cem, jilles, brooks (they reviewed previous version) Discussed with: pjd, and many others Differential Revision: https://reviews.freebsd.org/D14567
Notes
Notes: svn path=/head/; revision=345982
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 835a6dffc471..091ff16f4f92 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -585,6 +585,7 @@ off_t __syscall(quad_t, ...);
int undelete(const char *);
int unwhiteout(const char *);
void *valloc(size_t); /* obsoleted by malloc() */
+int funlinkat(int, const char *, int, int);
#ifndef _OPTRESET_DECLARED
#define _OPTRESET_DECLARED