* sysdeps/arm/init-first.c: Likewise.
* sysdeps/generic/init-first.c: Likewise.
* sysdeps/i386/init-first.c: Likewise.
* sysdeps/sh/init-first.c: Likewise.
only if USE_NONOPTION_FLAGS is defined.
* sysdeps/mach/hurd/mips/init-first.c: Likewise.
* sysdeps/unix/sysv/linux/init-first.c: Likewise.
+ * sysdeps/arm/init-first.c: Likewise.
+ * sysdeps/generic/init-first.c: Likewise.
+ * sysdeps/i386/init-first.c: Likewise.
+ * sysdeps/sh/init-first.c: Likewise.
2001-08-11 Andreas Jaeger <aj@suse.de>
/* Initialization code run first thing by the ELF startup code. For ARM.
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 2001 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
#include <unistd.h>
extern void __libc_init (int, char **, char **);
+#ifdef USE_NONOPTION_FLAGS
extern void __getopt_clean_environment (char **);
+#endif
extern void __libc_global_ctors (void);
int __libc_multiple_libcs = 1;
__environ = envp;
__libc_init (argc, argv, envp);
+#ifdef USE_NONOPTION_FLAGS
/* This is a hack to make the special getopt in GNU libc working. */
__getopt_clean_environment (envp);
+#endif
}
#ifdef SHARED
/* Initialization code run first thing by the ELF startup code. Stub version.
- Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1997, 1998, 2001 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
int __libc_multiple_libcs = 1;
extern void __libc_init (int, char **, char **);
+#ifdef USE_NONOPTION_FLAGS
extern void __getopt_clean_environment (char **);
+#endif
#ifdef SHARED
void
__environ = envp;
__libc_init (argc, argv, envp);
+#ifdef USE_NONOPTION_FLAGS
/* This is a hack to make the special getopt in GNU libc working. */
__getopt_clean_environment (envp);
+#endif
}
/* Initialization code run first thing by the ELF startup code. For i386/Unix.
- Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 2000, 2001 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
#include <unistd.h>
extern void __libc_init (int, char **, char **);
+#ifdef USE_NONOPTION_FLAGS
extern void __getopt_clean_environment (char **);
+#endif
extern void __libc_global_ctors (void);
int __libc_multiple_libcs = 1;
__environ = envp;
__libc_init (argc, argv, envp);
+#ifdef USE_NONOPTION_FLAGS
/* This is a hack to make the special getopt in GNU libc working. */
__getopt_clean_environment (envp);
+#endif
}
#ifdef SHARED
extern void __mach_init (void);
extern void __libc_init (int, char **, char **);
+#ifdef USE_NONOPTION_FLAGS
extern void __getopt_clean_environment (char **);
+#endif
extern void __libc_global_ctors (void);
unsigned int __hurd_threadvar_max;
__libc_init (argc, argv, envp);
+#ifdef USE_NONOPTION_FLAGS
/* This is a hack to make the special getopt in GNU libc working. */
__getopt_clean_environment (envp);
+#endif
#ifdef SHARED
__libc_global_ctors ();
/* Initialization code run first thing by the ELF startup code. For Mips/Hurd.
- Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 2000, 2001 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
extern void __mach_init (void);
extern void __libc_init (int, char **, char **);
+#ifdef USE_NONOPTION_FLAGS
extern void __getopt_clean_environment (char **);
+#endif
extern void __libc_global_ctors (void);
unsigned int __hurd_threadvar_max;
__libc_init (argc, argv, __environ);
+#ifdef USE_NONOPTION_FLAGS
/* This is a hack to make the special getopt in GNU libc working. */
__getopt_clean_environment (envp);
+#endif
#ifdef SHARED
__libc_global_ctors ();
/* Initialization code run first thing by the ELF startup code. For SH.
- Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1995,1996,1997,1998,2000,2001 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
#include <unistd.h>
extern void __libc_init (int, char **, char **);
+#ifdef USE_NONOPTION_FLAGS
extern void __getopt_clean_environment (char **);
+#endif
extern void __libc_global_ctors (void);
int __libc_multiple_libcs = 1;
__environ = envp;
__libc_init (argc, argv, envp);
+#ifdef USE_NONOPTION_FLAGS
/* This is a hack to make the special getopt in GNU libc working. */
__getopt_clean_environment (envp);
+#endif
}
#ifdef SHARED
static void
init (int argc, char **argv, char **envp)
{
+#ifdef USE_NONOPTION_FLAGS
extern void __getopt_clean_environment (char **);
+#endif
/* The next variable is only here to work around a bug in gcc <= 2.7.2.2.
If the address would be taken inside the expression the optimizer
would try to be too smart and throws it away. Grrr. */
__libc_init (argc, argv, envp);
+#ifdef USE_NONOPTION_FLAGS
/* This is a hack to make the special getopt in GNU libc working. */
__getopt_clean_environment (envp);
+#endif
#ifdef SHARED
__libc_global_ctors ();