diff options
author | Roland McGrath <roland@gnu.org> | 2000-11-30 23:29:35 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-11-30 23:29:35 +0000 |
commit | 7b945eaeae3c6f163bf5610f5926720d3f518890 (patch) | |
tree | 374fb517a780cf9cacff0d7a7d968d8f40a2256d | |
parent | af327a9062a1e177f6e7c6b54f5e0907a376b2aa (diff) | |
download | glibc-7b945eaeae3c6f163bf5610f5926720d3f518890.tar glibc-7b945eaeae3c6f163bf5610f5926720d3f518890.tar.gz glibc-7b945eaeae3c6f163bf5610f5926720d3f518890.tar.bz2 glibc-7b945eaeae3c6f163bf5610f5926720d3f518890.zip |
2000-11-30 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
rather than _hurd_fd_subinit, so it happens after it's safe to use
libc facilities like malloc.
-rw-r--r-- | sysdeps/mach/hurd/defs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/defs.c b/sysdeps/mach/hurd/defs.c index 5953c45159..f60e50b9cb 100644 --- a/sysdeps/mach/hurd/defs.c +++ b/sysdeps/mach/hurd/defs.c @@ -1,5 +1,5 @@ /* Definitions of global stdio data structures. - Copyright (C) 1991, 92, 93, 94, 95, 1997 Free Software Foundation, Inc. + Copyright (C) 1991,92,93,94,95,97,2000 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 @@ -66,7 +66,10 @@ init_stdio (void) (void) &init_stdio; /* Avoid "defined but not used" warning. */ } -text_set_element (_hurd_fd_subinit, init_stdio); +/* This initializer will be run along with other vanilla libc initializers + in a normal Posixoid environment. The earlier Hurd-speciifc initializer + phases cannot use normal facilities like malloc (which stdio uses). */ +text_set_element (__libc_subinit, init_stdio); /* This function MUST be in this file! This is because we want _cleanup to go into the __libc_atexit set |