diff options
author | Roland McGrath <roland@gnu.org> | 2003-06-27 06:21:51 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-06-27 06:21:51 +0000 |
commit | 768a8fcdedbd58048fb85e41535b5fc9e4866a7a (patch) | |
tree | 02ff8e8dca4414de253f0714a80e7c3496590262 /sysdeps/mach/hurd | |
parent | 72541de928619746d4a4b909302807f449fa9309 (diff) | |
download | glibc-768a8fcdedbd58048fb85e41535b5fc9e4866a7a.tar glibc-768a8fcdedbd58048fb85e41535b5fc9e4866a7a.tar.gz glibc-768a8fcdedbd58048fb85e41535b5fc9e4866a7a.tar.bz2 glibc-768a8fcdedbd58048fb85e41535b5fc9e4866a7a.zip |
* sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
* sysdeps/mach/configure: Regenerated.
* sysdeps/mach/hurd/times.c (times_init): Function removed.
(__times): Assume `creation_time' field is available.
* sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
Don't append set-init.
* sysdeps/mach/hurd/set-init.c: File removed.
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r-- | sysdeps/mach/hurd/Makefile | 1 | ||||
-rw-r--r-- | sysdeps/mach/hurd/set-init.c | 23 | ||||
-rw-r--r-- | sysdeps/mach/hurd/times.c | 20 |
3 files changed, 2 insertions, 42 deletions
diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile index c86e220c2f..5f3da04b47 100644 --- a/sysdeps/mach/hurd/Makefile +++ b/sysdeps/mach/hurd/Makefile @@ -190,7 +190,6 @@ endif ifeq ($(subdir),csu) -sysdep_routines += set-init extra-objs += static-start.o # We need special startup code for statically linked binaries. diff --git a/sysdeps/mach/hurd/set-init.c b/sysdeps/mach/hurd/set-init.c deleted file mode 100644 index f89a4697ac..0000000000 --- a/sysdeps/mach/hurd/set-init.c +++ /dev/null @@ -1,23 +0,0 @@ -/* Copyright (C) 1991, 1992, 1994, 1995, 1997 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -#include <stdlib.h> -#include <set-hooks.h> - -DEFINE_HOOK_RUNNER (__libc_subinit, __libc_init, - (int argc, char **argv, char **envp), (argc, argv, envp)) diff --git a/sysdeps/mach/hurd/times.c b/sysdeps/mach/hurd/times.c index 4d537cad68..542f23dc76 100644 --- a/sysdeps/mach/hurd/times.c +++ b/sysdeps/mach/hurd/times.c @@ -1,5 +1,5 @@ /* Return CPU and real time used by process and its children. Hurd version. - Copyright (C) 2001,02 Free Software Foundation, Inc. + Copyright (C) 2001,2002,2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -33,17 +33,6 @@ clock_from_time_value (const time_value_t *t) return t->seconds * 1000000 + t->microseconds; } -#if NO_CREATION_TIME -static time_value_t startup_time; -static void times_init (void) __attribute__ ((unused)); -static void -times_init (void) -{ - __gettimeofday ((struct timeval *) &startup_time, NULL); -} -text_set_element (__libc_subinit, times_init); -#endif - /* Store the CPU time used by this process and all its dead children (and their dead children) in BUFFER. Return the elapsed real time, or (clock_t) -1 for errors. @@ -80,12 +69,7 @@ __times (struct tms *tms) if (__gettimeofday ((struct timeval *) &now, NULL) < 0) return -1; -#if NO_CREATION_TIME -# define our_creation_time startup_time -#else -# define our_creation_time bi.creation_time -#endif return (clock_from_time_value (&now) - - clock_from_time_value (&our_creation_time)); + - clock_from_time_value (&bi.creation_time)); } weak_alias (__times, times) |