diff options
author | Thomas Bushnell, BSG <thomas@gnu.org> | 1996-09-06 00:08:55 +0000 |
---|---|---|
committer | Thomas Bushnell, BSG <thomas@gnu.org> | 1996-09-06 00:08:55 +0000 |
commit | acf51e02617b9b8da57b0ee982f96080ee954a38 (patch) | |
tree | a656620596b189465593e06b89fb31478dbcf2f3 /sysdeps/mach/hurd/i386 | |
parent | 57ba7bb47152ed3e50805db2bca137cb866a9a71 (diff) | |
download | glibc-acf51e02617b9b8da57b0ee982f96080ee954a38.tar glibc-acf51e02617b9b8da57b0ee982f96080ee954a38.tar.gz glibc-acf51e02617b9b8da57b0ee982f96080ee954a38.tar.bz2 glibc-acf51e02617b9b8da57b0ee982f96080ee954a38.zip |
*** empty log message ***cvs/libc-960906
Thu Sep 5 13:18:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* sysdeps/mach/hurd/i386/init-first.c (__libc_argc, __libc_argv):
New variables.
(init1): Initialize them.
* hurd/hurdinit.c (_hurd_setproc): Now that happens to be
available, pass __libc_argv in call to __proc_set_arg_locations.
* gmon/gmon.c (write_hist): Call __profile_frequency instead of
hertz.
(hertz): Delete function.
* gmon/Makefile (routines): Add `prof-freq'.
* sysdeps/generic/prof-freq.c: New file.
* sysdeps/mach/hurd/prof-freq.c: New (stubby) file.
* sysdeps/mach/hurd/profil.c (profile_tick): New variable.
(update_waiter): Store frequency in profile_tick.
(__profile_frequency): New function.
* sysdeps/mach/hurd/sendto.c (sendto): Use prototype definition
syntax.
* Rules (generated): Restore reference to $(generated).
* mach/Machrules (mig.uh, mig.__h): Don't include $(user-MIGFLAGS)
here.
* malloc/free.c (free): __lib_malloc_lock -> __libc_malloc_lock.
* malloc/free.c: Provide extern decl of __libc_malloc_lock.
* malloc/realloc.c: Likewise.
* malloc/malloc-find.c: Likewise.
* malloc/malloc-size.c: Likewise.
* malloc/malloc-walk.c: Likewise.
* malloc/memalign.c: Likewise.
* mach/Machrules (mig.uh, mig.__h): Include $(user-MIGFLAGS) and
Diffstat (limited to 'sysdeps/mach/hurd/i386')
-rw-r--r-- | sysdeps/mach/hurd/i386/init-first.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c index d095580cfd..5203b4c146 100644 --- a/sysdeps/mach/hurd/i386/init-first.c +++ b/sysdeps/mach/hurd/i386/init-first.c @@ -31,15 +31,16 @@ extern void __libc_global_ctors (void); int __libc_multiple_libcs = 1; +int __libc_argc; +char **__libc_argv; + void *(*_cthread_init_routine) (void); /* Returns new SP to use. */ void (*_cthread_exit_routine) (int status) __attribute__ ((__noreturn__)); - /* Things that want to be run before _hurd_init or much anything else. Importantly, these are called before anything tries to use malloc. */ DEFINE_HOOK (_hurd_preinit_hook, (void)); - static void init1 (int argc, char *arg0, ...) { @@ -47,6 +48,8 @@ init1 (int argc, char *arg0, ...) char **envp = &argv[argc + 1]; struct hurd_startup_data *d; + __libc_argc = argc; + __libc_argv = argv; __environ = envp; while (*envp) ++envp; |