提交 2ed4e9d9 编写于 作者: R Rich Felker

remove parameter names from public headers

inclusion of these names was unintentional and in most cases is a
namespace violation. Daniel Sabogal tracked down and reported these.
上级 4b8f94c2
...@@ -34,7 +34,7 @@ void endgrent(void); ...@@ -34,7 +34,7 @@ void endgrent(void);
void setgrent(void); void setgrent(void);
#ifdef _GNU_SOURCE #ifdef _GNU_SOURCE
struct group *fgetgrent(FILE *stream); struct group *fgetgrent(FILE *);
int putgrent(const struct group *, FILE *); int putgrent(const struct group *, FILE *);
#endif #endif
......
...@@ -24,8 +24,8 @@ struct ifaddrs { ...@@ -24,8 +24,8 @@ struct ifaddrs {
#define ifa_broadaddr ifa_ifu.ifu_broadaddr #define ifa_broadaddr ifa_ifu.ifu_broadaddr
#define ifa_dstaddr ifa_ifu.ifu_dstaddr #define ifa_dstaddr ifa_ifu.ifu_dstaddr
void freeifaddrs(struct ifaddrs *ifp); void freeifaddrs(struct ifaddrs *);
int getifaddrs(struct ifaddrs **ifap); int getifaddrs(struct ifaddrs **);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -39,7 +39,7 @@ void *malloc (size_t); ...@@ -39,7 +39,7 @@ void *malloc (size_t);
void *calloc (size_t, size_t); void *calloc (size_t, size_t);
void *realloc (void *, size_t); void *realloc (void *, size_t);
void free (void *); void free (void *);
void *aligned_alloc(size_t alignment, size_t size); void *aligned_alloc(size_t, size_t);
_Noreturn void abort (void); _Noreturn void abort (void);
int atexit (void (*) (void)); int atexit (void (*) (void));
......
...@@ -13,10 +13,10 @@ extern "C" { ...@@ -13,10 +13,10 @@ extern "C" {
ssize_t getxattr(const char *, const char *, void *, size_t); ssize_t getxattr(const char *, const char *, void *, size_t);
ssize_t lgetxattr(const char *, const char *, void *, size_t); ssize_t lgetxattr(const char *, const char *, void *, size_t);
ssize_t fgetxattr(int filedes, const char *, void *, size_t); ssize_t fgetxattr(int, const char *, void *, size_t);
ssize_t listxattr(const char *, char *, size_t); ssize_t listxattr(const char *, char *, size_t);
ssize_t llistxattr(const char *, char *, size_t); ssize_t llistxattr(const char *, char *, size_t);
ssize_t flistxattr(int filedes, char *, size_t); ssize_t flistxattr(int, char *, size_t);
int setxattr(const char *, const char *, const void *, size_t, int); int setxattr(const char *, const char *, const void *, size_t, int);
int lsetxattr(const char *, const char *, const void *, size_t, int); int lsetxattr(const char *, const char *, const void *, size_t, int);
int fsetxattr(int, const char *, const void *, size_t, int); int fsetxattr(int, const char *, const void *, size_t, int);
......
...@@ -75,7 +75,7 @@ int cnd_timedwait(cnd_t *__restrict, mtx_t *__restrict, const struct timespec *_ ...@@ -75,7 +75,7 @@ int cnd_timedwait(cnd_t *__restrict, mtx_t *__restrict, const struct timespec *_
int cnd_wait(cnd_t *, mtx_t *); int cnd_wait(cnd_t *, mtx_t *);
int tss_create(tss_t *, tss_dtor_t); int tss_create(tss_t *, tss_dtor_t);
void tss_delete(tss_t key); void tss_delete(tss_t);
int tss_set(tss_t, void *); int tss_set(tss_t, void *);
void *tss_get(tss_t); void *tss_get(tss_t);
......
...@@ -53,7 +53,7 @@ int wcscmp (const wchar_t *, const wchar_t *); ...@@ -53,7 +53,7 @@ int wcscmp (const wchar_t *, const wchar_t *);
int wcsncmp (const wchar_t *, const wchar_t *, size_t); int wcsncmp (const wchar_t *, const wchar_t *, size_t);
int wcscoll(const wchar_t *, const wchar_t *); int wcscoll(const wchar_t *, const wchar_t *);
size_t wcsxfrm (wchar_t *__restrict, const wchar_t *__restrict, size_t n); size_t wcsxfrm (wchar_t *__restrict, const wchar_t *__restrict, size_t);
wchar_t *wcschr (const wchar_t *, wchar_t); wchar_t *wcschr (const wchar_t *, wchar_t);
wchar_t *wcsrchr (const wchar_t *, wchar_t); wchar_t *wcsrchr (const wchar_t *, wchar_t);
...@@ -165,7 +165,7 @@ int wcscasecmp_l(const wchar_t *, const wchar_t *, locale_t); ...@@ -165,7 +165,7 @@ int wcscasecmp_l(const wchar_t *, const wchar_t *, locale_t);
int wcsncasecmp(const wchar_t *, const wchar_t *, size_t); int wcsncasecmp(const wchar_t *, const wchar_t *, size_t);
int wcsncasecmp_l(const wchar_t *, const wchar_t *, size_t, locale_t); int wcsncasecmp_l(const wchar_t *, const wchar_t *, size_t, locale_t);
int wcscoll_l(const wchar_t *, const wchar_t *, locale_t); int wcscoll_l(const wchar_t *, const wchar_t *, locale_t);
size_t wcsxfrm_l(wchar_t *__restrict, const wchar_t *__restrict, size_t n, locale_t); size_t wcsxfrm_l(wchar_t *__restrict, const wchar_t *__restrict, size_t, locale_t);
#endif #endif
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册