From d0a8b14169c6f01dadd07f6b4e14cc335a62f234 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 16 Jan 2010 19:18:38 +0100 Subject: futimens: add missing local prototype Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/futimens.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/futimens.c b/libc/sysdeps/linux/common/futimens.c index 32b21395b..0eaf26a4c 100644 --- a/libc/sysdeps/linux/common/futimens.c +++ b/libc/sysdeps/linux/common/futimens.c @@ -21,6 +21,7 @@ extern int utimensat (int __fd, __const char *__path, int __flags) __THROW; libc_hidden_proto(utimensat) +int futimens (int __fd, __const struct timespec __times[2]) __THROW; int futimens (int fd, __const struct timespec ts[2]) { return utimensat(fd, 0, ts, 0); -- cgit v1.2.3 From 8a2d6677c3d485e5cbc19a6a550ead83990f2b5d Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 22 Jan 2010 13:57:32 +0100 Subject: silence warning about implicit decl of sysctl ... and reinstate comment explaining the gory details Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/sysctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/sysctl.c b/libc/sysdeps/linux/common/sysctl.c index f65a3eaa2..dde00be46 100644 --- a/libc/sysdeps/linux/common/sysctl.c +++ b/libc/sysdeps/linux/common/sysctl.c @@ -10,6 +10,7 @@ #include #if defined __NR__sysctl && (defined __USE_GNU || defined __USE_BSD) +/* psm: including sys/sysctl.h would depend on kernel headers */ struct __sysctl_args { int *name; int nlen; @@ -19,7 +20,8 @@ struct __sysctl_args { size_t newlen; unsigned long __unused[4]; }; - +extern int sysctl (int *__name, int __nlen, void *__oldval, + size_t *__oldlenp, void *__newval, size_t __newlen) __THROW; int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, void *newval, size_t newlen) { -- cgit v1.2.3