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
This commit is contained in:
Mariusz Zaborski
2019-04-06 09:34:26 +00:00
parent 44b0f624ae
commit a1304030b8
15 changed files with 170 additions and 41 deletions
+1
View File
@@ -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