1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Tue Apr 4 00:48:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* misc/progname.c (program_invocation_name,
 	program_invocation_short_name): Make these initialized data
 	definitions.

	* sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
 	so gcc doesn't optimize out the function entirely.
This commit is contained in:
Roland McGrath
1995-04-04 21:53:15 +00:00
parent c4bf5a3e9a
commit 45b28a8f0b
3 changed files with 16 additions and 2 deletions

View File

@ -21,8 +21,11 @@ Cambridge, MA 02139, USA. */
#include <ansidecl.h>
#include <string.h>
char *program_invocation_name;
char *program_invocation_short_name;
/* These must be initialized data definitions. Common definitions satisfy
references to these variables, but do not cause the whole file to be
linked in, and so omit the set-up function. */
char *program_invocation_name = NULL;
char *program_invocation_short_name = NULL;
static void
DEFUN(set_progname, (argc, argv, envp),