mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* posix/sys/wait.h: Handle definitions duplicated in stdlib.h correctly. * stdlib/stdlib.h: Handle definition of wait macros correctly.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
2000-02-24 Ulrich Drepper <drepper@redhat.com>
|
2000-02-24 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* posix/sys/wait.h: Handle definitions duplicated in stdlib.h
|
||||||
|
correctly.
|
||||||
|
* stdlib/stdlib.h: Handle definition of wait macros correctly.
|
||||||
|
|
||||||
* posix/sys/wait.h: Add missing #endif.
|
* posix/sys/wait.h: Add missing #endif.
|
||||||
|
|
||||||
* stdlib/stdlib.h (setstate): Don't mark argument as const (yet).
|
* stdlib/stdlib.h (setstate): Don't mark argument as const (yet).
|
||||||
|
@ -34,6 +34,8 @@ typedef __pid_t pid_t;
|
|||||||
# define __pid_t_defined
|
# define __pid_t_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* These macros could also be defined int <stdlib.h>. */
|
||||||
|
#ifndef _STDLIB_H
|
||||||
/* This will define the `W*' macros for the flag
|
/* This will define the `W*' macros for the flag
|
||||||
bits to `waitpid', `wait3', and `wait4'. */
|
bits to `waitpid', `wait3', and `wait4'. */
|
||||||
# include <bits/waitflags.h>
|
# include <bits/waitflags.h>
|
||||||
@ -80,15 +82,13 @@ typedef union
|
|||||||
/* This will define all the `__W*' macros. */
|
/* This will define all the `__W*' macros. */
|
||||||
# include <bits/waitstatus.h>
|
# include <bits/waitstatus.h>
|
||||||
|
|
||||||
/* These macros could also be defined int <stdlib.h>. */
|
|
||||||
#ifndef WEXITSTATUS
|
|
||||||
# define WEXITSTATUS(status) __WEXITSTATUS(__WAIT_INT(status))
|
# define WEXITSTATUS(status) __WEXITSTATUS(__WAIT_INT(status))
|
||||||
# define WTERMSIG(status) __WTERMSIG(__WAIT_INT(status))
|
# define WTERMSIG(status) __WTERMSIG(__WAIT_INT(status))
|
||||||
# define WSTOPSIG(status) __WSTOPSIG(__WAIT_INT(status))
|
# define WSTOPSIG(status) __WSTOPSIG(__WAIT_INT(status))
|
||||||
# define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status))
|
# define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status))
|
||||||
# define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status))
|
# define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status))
|
||||||
# define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status))
|
# define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status))
|
||||||
#endif
|
#endif /* <stdlib.h> not included. */
|
||||||
|
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
# define WCOREFLAG __WCOREFLAG
|
# define WCOREFLAG __WCOREFLAG
|
||||||
|
@ -37,12 +37,11 @@ __BEGIN_DECLS
|
|||||||
#ifndef __need_malloc_and_calloc
|
#ifndef __need_malloc_and_calloc
|
||||||
#define _STDLIB_H 1
|
#define _STDLIB_H 1
|
||||||
|
|
||||||
#ifdef __USE_XOPEN
|
#if defined __USE_XOPEN && !defined _SYS_WAIT_H
|
||||||
/* XPG requires a few symbols from <sys/wait.h> being defined. */
|
/* XPG requires a few symbols from <sys/wait.h> being defined. */
|
||||||
# include <bits/waitflags.h>
|
# include <bits/waitflags.h>
|
||||||
# include <bits/waitstatus.h>
|
# include <bits/waitstatus.h>
|
||||||
|
|
||||||
# ifndef WEXITSTATUS
|
|
||||||
# ifdef __USE_BSD
|
# ifdef __USE_BSD
|
||||||
|
|
||||||
/* Lots of hair to allow traditional BSD use of `union wait'
|
/* Lots of hair to allow traditional BSD use of `union wait'
|
||||||
@ -89,8 +88,7 @@ typedef union
|
|||||||
# define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status))
|
# define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status))
|
||||||
# define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status))
|
# define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status))
|
||||||
# define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status))
|
# define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status))
|
||||||
# endif
|
#endif /* X/Open and <sys/wait.h> not included. */
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Returned by `div'. */
|
/* Returned by `div'. */
|
||||||
typedef struct
|
typedef struct
|
||||||
|
Reference in New Issue
Block a user