From 6fcd60ddd903df13402704fe6026cb1f8e780fd7 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 6 Sep 2018 13:39:08 -0400 Subject: 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. --- src/internal/procfdname.c | 2 ++ src/internal/syscall.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/internal') diff --git a/src/internal/procfdname.c b/src/internal/procfdname.c index 697e0bdc..fd7306ab 100644 --- a/src/internal/procfdname.c +++ b/src/internal/procfdname.c @@ -1,3 +1,5 @@ +#include "syscall.h" + void __procfdname(char *buf, unsigned fd) { unsigned i, j; diff --git a/src/internal/syscall.h b/src/internal/syscall.h index c12a46cd..5737f3a2 100644 --- a/src/internal/syscall.h +++ b/src/internal/syscall.h @@ -244,4 +244,6 @@ hidden long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...), #define __sys_open_cp(...) __SYSCALL_DISP(__sys_open_cp,,__VA_ARGS__) #define sys_open_cp(...) __syscall_ret(__sys_open_cp(__VA_ARGS__)) +void __procfdname(char [static 15+3*sizeof(int)], unsigned); + #endif -- cgit v1.2.1