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

* sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.

* sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
	* sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
	* sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
	GLIBC_2.6.
This commit is contained in:
Ulrich Drepper
2007-04-26 04:50:57 +00:00
parent 46d51e9bd3
commit ec08f13dad
6 changed files with 100 additions and 1 deletions

View File

@ -77,6 +77,9 @@ extern int clone (int (*__fn) (void *__arg), void *__child_stack,
/* Unshare the specified resources. */
extern int unshare (int __flags) __THROW;
/* Get index of currently used CPU. */
extern int sched_getcpu (void) __THROW;
#endif
__END_DECLS