mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
* sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
Wed Mar 20 09:42:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
|
Wed Mar 20 09:42:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
|
||||||
|
|
||||||
* elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
|
* elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
|
||||||
lt_executable, then lt_library.
|
lt_executable, then lt_library.
|
||||||
* elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
|
* elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Convert between signal names and numbers.
|
/* Convert between signal names and numbers.
|
||||||
Copyright (C) 1990, 1992, 1993, 1995 Free Software Foundation, Inc.
|
Copyright (C) 1990, 1992, 1993, 1995, 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -23,6 +23,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#include <sys/types.h> /* Some systems need this for <signal.h>. */
|
#include <sys/types.h> /* Some systems need this for <signal.h>. */
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_STRING_H
|
||||||
|
#include <string.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Some systems declare `sys_siglist in <unistd.h>; if
|
/* Some systems declare `sys_siglist in <unistd.h>; if
|
||||||
configure defined SYS_SIGLIST_DECLARED, it may expect
|
configure defined SYS_SIGLIST_DECLARED, it may expect
|
||||||
to find the declaration there. */
|
to find the declaration there. */
|
||||||
@ -239,7 +243,7 @@ sig_abbrev (number)
|
|||||||
|
|
||||||
if (sig_table_nelts == 0)
|
if (sig_table_nelts == 0)
|
||||||
signame_init ();
|
signame_init ();
|
||||||
|
|
||||||
for (i = 0; i < sig_table_nelts; i++)
|
for (i = 0; i < sig_table_nelts; i++)
|
||||||
if (sig_table[i].number == number)
|
if (sig_table[i].number == number)
|
||||||
return (char *)sig_table[i].abbrev;
|
return (char *)sig_table[i].abbrev;
|
||||||
@ -293,10 +297,10 @@ strsignal (signal)
|
|||||||
int signal;
|
int signal;
|
||||||
{
|
{
|
||||||
static char buf[] = "Signal 12345678901234567890";
|
static char buf[] = "Signal 12345678901234567890";
|
||||||
|
|
||||||
if (signal > 0 || signal < NSIG)
|
if (signal > 0 || signal < NSIG)
|
||||||
return (char *) sys_siglist[signal];
|
return (char *) sys_siglist[signal];
|
||||||
|
|
||||||
sprintf (buf, "Signal %d", signal);
|
sprintf (buf, "Signal %d", signal);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Definitions of flag bits for `waitpid' et al.
|
/* Definitions of flag bits for `waitpid' et al. Hurd version.
|
||||||
Copyright (C) 1992 Free Software Foundation, Inc.
|
Copyright (C) 1992, 1996 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -24,5 +24,8 @@ Cambridge, MA 02139, USA. */
|
|||||||
/* Bits in the third argument to `waitpid'. */
|
/* Bits in the third argument to `waitpid'. */
|
||||||
#define WNOHANG 1 /* Don't block waiting. */
|
#define WNOHANG 1 /* Don't block waiting. */
|
||||||
#define WUNTRACED 2 /* Report status of stopped children. */
|
#define WUNTRACED 2 /* Report status of stopped children. */
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
#define WNOREAP 4 /* Don't remove record of child reported. */
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* waitflags.h */
|
#endif /* waitflags.h */
|
||||||
|
Reference in New Issue
Block a user