From 7b945eaeae3c6f163bf5610f5926720d3f518890 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 30 Nov 2000 23:29:35 +0000 Subject: 2000-11-30 Roland McGrath * 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. --- sysdeps/mach/hurd/defs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sysdeps/mach') 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 -- cgit v1.2.3