move and deduplicate declarations of __procfdname to make it checkable

syscall.h was chosen as the header to declare it, since its intended
usage is alongside syscalls as a fallback for operations the direct
syscall does not support.
This commit is contained in:
Rich Felker committed 2018-09-12 14:34:27 -04:00
1 parent c221d3e586
commit 6fcd60ddd9
10 files changed
+5 -16

No files matched your search

-2
View File
@@ -4,8 +4,6 @@
#include <fcntl.h>
#include "syscall.h"
void __procfdname(char *, unsigned);
int fexecve(int fd, char *const argv[], char *const envp[])
{
int r = __syscall(SYS_execveat, fd, "", argv, envp, AT_EMPTY_PATH);