public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/syscall-refactor] Header fixes
@ 2020-06-29 21:46 Adhemerval Zanella
0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2020-06-29 21:46 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7e94d0a914298482f6ce0efa914f079340fa5125
commit 7e94d0a914298482f6ce0efa914f079340fa5125
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Fri Jun 12 18:05:39 2020 -0300
Header fixes
Diff:
---
include/sys/resource.h | 3 +--
include/sys/time.h | 7 +++----
sysdeps/mach/hurd/setitimer.c | 1 +
sysdeps/unix/sysv/linux/include/sys/sysinfo.h | 3 ++-
sysdeps/unix/sysv/linux/setitimer.c | 1 +
5 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/include/sys/resource.h b/include/sys/resource.h
index 64925f257c..5213bc0b86 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -128,8 +128,7 @@ libc_hidden_proto (__getrlimit64);
extern int __getrlimit (enum __rlimit_resource __resource,
struct rlimit *__rlimits);
libc_hidden_proto (__getrlimit)
-extern int __getrusage (enum __rusage_who __who, struct rusage *__usage)
- attribute_hidden;
+extern int __getrusage (enum __rusage_who __who, struct rusage *__usage);
extern int __setrlimit (enum __rlimit_resource __resource,
const struct rlimit *__rlimits);
diff --git a/include/sys/time.h b/include/sys/time.h
index 567e4b7562..4dec0e928e 100644
--- a/include/sys/time.h
+++ b/include/sys/time.h
@@ -39,10 +39,9 @@ extern int __getitimer (enum __itimer_which __which,
struct itimerval *__value);
extern int __setitimer (enum __itimer_which __which,
const struct itimerval *__restrict __new,
- struct itimerval *__restrict __old)
- attribute_hidden;
-extern int __utimes (const char *__file, const struct timeval __tvp[2])
- attribute_hidden;
+ struct itimerval *__restrict __old);
+libc_hidden_proto (__setitimer)
+extern int __utimes (const char *__file, const struct timeval __tvp[2]);
extern int __futimes (int fd, const struct timeval tvp[2]) attribute_hidden;
# endif
diff --git a/sysdeps/mach/hurd/setitimer.c b/sysdeps/mach/hurd/setitimer.c
index b16f4ddd5d..c2dfc8cc63 100644
--- a/sysdeps/mach/hurd/setitimer.c
+++ b/sysdeps/mach/hurd/setitimer.c
@@ -357,6 +357,7 @@ __setitimer (enum __itimer_which which, const struct itimerval *new,
__spin_lock (&_hurd_itimer_lock);
return setitimer_locked (new, old, crit, 0);
}
+libc_hidden_def (__setitimer)
\f
static void
fork_itimer (void)
diff --git a/sysdeps/unix/sysv/linux/include/sys/sysinfo.h b/sysdeps/unix/sysv/linux/include/sys/sysinfo.h
index 3b41fe41e6..101bd4f652 100644
--- a/sysdeps/unix/sysv/linux/include/sys/sysinfo.h
+++ b/sysdeps/unix/sysv/linux/include/sys/sysinfo.h
@@ -23,7 +23,8 @@
# ifndef _ISOMAC
-extern __typeof (sysinfo) __sysinfo __THROW attribute_hidden;
+extern __typeof (sysinfo) __sysinfo __THROW;
+libc_hidden_proto (__sysinfo);
# endif /* _ISOMAC */
#endif /* sys/sysinfo.h */
diff --git a/sysdeps/unix/sysv/linux/setitimer.c b/sysdeps/unix/sysv/linux/setitimer.c
index 3dc652f933..4afc8cb4fa 100644
--- a/sysdeps/unix/sysv/linux/setitimer.c
+++ b/sysdeps/unix/sysv/linux/setitimer.c
@@ -87,4 +87,5 @@ __setitimer (__itimer_which_t which,
return ret;
}
#endif
+libc_hidden_def (__setitimer)
weak_alias (__setitimer, setitimer)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-29 21:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 21:46 [glibc/azanella/syscall-refactor] Header fixes Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).