This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

alpha plt reduction, redux


I wound up taking Roland's advice and just marking the existing
internal functions hidden.  This works everywhere without extra
fiddling.

I think it would be a good goal to clean up the entire compiler
such that one single mechanism gets used for these naming bits.
I don't have the energy to do that though.


r~


        * include/sys/resource.h (__getrusage): Mark hidden.
        * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
        * include/sys/wait.h (__wait4): Likewise.

Index: include/sys/resource.h
===================================================================
RCS file: /cvs/glibc/libc/include/sys/resource.h,v
retrieving revision 1.6
diff -c -p -d -u -r1.6 resource.h
--- include/sys/resource.h	4 Aug 2002 03:50:09 -0000	1.6
+++ include/sys/resource.h	30 Jun 2003 23:10:54 -0000
@@ -7,7 +7,8 @@ libc_hidden_proto (setpriority)
 /* Now define the internal interfaces.  */
 extern int __getrlimit (enum __rlimit_resource __resource,
 			struct rlimit *__rlimits);
-extern int __getrusage (enum __rusage_who __who, struct rusage *__usage);
+extern int __getrusage (enum __rusage_who __who, struct rusage *__usage)
+	attribute_hidden;
 
 extern int __setrlimit (enum __rlimit_resource __resource,
 			const struct rlimit *__rlimits);
Index: include/sys/time.h
===================================================================
RCS file: /cvs/glibc/libc/include/sys/time.h,v
retrieving revision 1.10
diff -c -p -d -u -r1.10 time.h
--- include/sys/time.h	14 Apr 2002 09:26:09 -0000	1.10
+++ include/sys/time.h	30 Jun 2003 23:10:54 -0000
@@ -5,17 +5,21 @@
 extern int __gettimeofday (struct timeval *__tv,
 			   struct timezone *__tz);
 extern int __gettimeofday_internal (struct timeval *__tv,
-				    struct timezone *__tz) attribute_hidden;
+				    struct timezone *__tz)
+	attribute_hidden;
 extern int __settimeofday (__const struct timeval *__tv,
-			   __const struct timezone *__tz);
+			   __const struct timezone *__tz)
+	attribute_hidden;
 extern int __adjtime (__const struct timeval *__delta,
 		      struct timeval *__olddelta);
 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);
-extern int __utimes (__const char *__file, const struct timeval __tvp[2]);
+			struct itimerval *__restrict __old)
+	attribute_hidden;
+extern int __utimes (__const char *__file, const struct timeval __tvp[2])
+	attribute_hidden;
 
 #ifndef NOT_IN_libc
 # define __gettimeofday(tv, tz) INTUSE(__gettimeofday) (tv, tz)
Index: include/sys/wait.h
===================================================================
RCS file: /cvs/glibc/libc/include/sys/wait.h,v
retrieving revision 1.9
diff -c -p -d -u -r1.9 wait.h
--- include/sys/wait.h	9 Oct 2002 09:09:33 -0000	1.9
+++ include/sys/wait.h	30 Jun 2003 23:10:54 -0000
@@ -13,5 +13,6 @@ extern __pid_t __wait (__WAIT_STATUS __s
 extern __pid_t __wait3 (__WAIT_STATUS __stat_loc,
 			int __options, struct rusage * __usage);
 extern __pid_t __wait4 (__pid_t __pid, __WAIT_STATUS __stat_loc,
-			int __options, struct rusage *__usage);
+			int __options, struct rusage *__usage)
+			attribute_hidden;
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]