mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 15:20:10 +00:00
Define RUSAGE_THREAD and RUSAGE_LWP.
This commit is contained in:
parent
b5ec5fce74
commit
1ce0612b99
@ -158,8 +158,16 @@ enum __rusage_who
|
|||||||
#define RUSAGE_SELF RUSAGE_SELF
|
#define RUSAGE_SELF RUSAGE_SELF
|
||||||
|
|
||||||
/* All of its terminated child processes. */
|
/* All of its terminated child processes. */
|
||||||
RUSAGE_CHILDREN = -1
|
RUSAGE_CHILDREN = -1,
|
||||||
#define RUSAGE_CHILDREN RUSAGE_CHILDREN
|
#define RUSAGE_CHILDREN RUSAGE_CHILDREN
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* The calling thread. */
|
||||||
|
RUSAGE_THREAD = 1
|
||||||
|
# define RUSAGE_THREAD RUSAGE_THREAD
|
||||||
|
/* Name for the same functionality on Solaris. */
|
||||||
|
# define RUSAGE_LWP RUSAGE_THREAD
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#define __need_timeval
|
#define __need_timeval
|
||||||
|
@ -158,8 +158,16 @@ enum __rusage_who
|
|||||||
#define RUSAGE_SELF RUSAGE_SELF
|
#define RUSAGE_SELF RUSAGE_SELF
|
||||||
|
|
||||||
/* All of its terminated child processes. */
|
/* All of its terminated child processes. */
|
||||||
RUSAGE_CHILDREN = -1
|
RUSAGE_CHILDREN = -1,
|
||||||
#define RUSAGE_CHILDREN RUSAGE_CHILDREN
|
#define RUSAGE_CHILDREN RUSAGE_CHILDREN
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* The calling thread. */
|
||||||
|
RUSAGE_THREAD = 1
|
||||||
|
# define RUSAGE_THREAD RUSAGE_THREAD
|
||||||
|
/* Name for the same functionality on Solaris. */
|
||||||
|
# define RUSAGE_LWP RUSAGE_THREAD
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#define __need_timeval
|
#define __need_timeval
|
||||||
|
@ -174,8 +174,16 @@ enum __rusage_who
|
|||||||
#define RUSAGE_SELF RUSAGE_SELF
|
#define RUSAGE_SELF RUSAGE_SELF
|
||||||
|
|
||||||
/* All of its terminated child processes. */
|
/* All of its terminated child processes. */
|
||||||
RUSAGE_CHILDREN = -1
|
RUSAGE_CHILDREN = -1,
|
||||||
#define RUSAGE_CHILDREN RUSAGE_CHILDREN
|
#define RUSAGE_CHILDREN RUSAGE_CHILDREN
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* The calling thread. */
|
||||||
|
RUSAGE_THREAD = 1
|
||||||
|
# define RUSAGE_THREAD RUSAGE_THREAD
|
||||||
|
/* Name for the same functionality on Solaris. */
|
||||||
|
# define RUSAGE_LWP RUSAGE_THREAD
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#define __need_timeval
|
#define __need_timeval
|
||||||
|
Loading…
Reference in New Issue
Block a user