glibc/sysdeps/unix/sysv/linux/x86
H.J. Lu 7635a88d32 Add __CPU_MASK_TYPE for __cpu_mask
Since x86-64 and x32 use the same set of sched_XXX system call interface:

[hjl@gnu-6 linux-stable]$ grep sched_
arch/x86/entry/syscalls/syscall_64.tbl
24	common	sched_yield		sys_sched_yield
142	common	sched_setparam		sys_sched_setparam
143	common	sched_getparam		sys_sched_getparam
144	common	sched_setscheduler	sys_sched_setscheduler
145	common	sched_getscheduler	sys_sched_getscheduler
146	common	sched_get_priority_max	sys_sched_get_priority_max
147	common	sched_get_priority_min	sys_sched_get_priority_min
148	common	sched_rr_get_interval	sys_sched_rr_get_interval
203	common	sched_setaffinity	sys_sched_setaffinity
204	common	sched_getaffinity	sys_sched_getaffinity
314	common	sched_setattr		sys_sched_setattr
315	common	sched_getattr		sys_sched_getattr
[hjl@gnu-6 linux-stable]$

__cpu_mask should be unsigned long long, instead of unsigned long, for
x32.  This patch adds __CPU_MASK_TYPE so that each architecture can
define the proper type for __cpu_mask.

	[BZ #19313]
	* bits/typesizes.h (__CPU_MASK_TYPE): New.
	* sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
	* sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
	* sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
	Likewise.
	* sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
	Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
	Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
	Likewise.
	* sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
	* sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
	unsigned long int with __CPU_MASK_TYPE.
2015-12-01 10:25:44 -08:00
..
bits Add __CPU_MASK_TYPE for __cpu_mask 2015-12-01 10:25:44 -08:00
sys Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
elision-conf.c Update x86 elision-conf.c for <cpu-features.h> 2015-08-13 03:41:59 -07:00
elision-conf.h Don't include <cpuid.h> in elision-conf.h 2015-08-13 03:46:26 -07:00
elision-lock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
elision-timed.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
elision-trylock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
elision-unlock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
force-elision.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gettimeofday.c x86: Remove vsyscall usage 2015-06-09 18:10:19 -03:00
hle.h Move remaining files out of nptl/sysdeps/unix/sysv/linux/x86/. 2014-05-14 15:32:18 -07:00
libc-vdso.h Consolidate sched_getcpu 2015-06-09 14:56:21 -03:00
Makefile Add _dl_x86_cpu_features to rtld_global 2015-08-13 03:41:22 -07:00
pthread_mutex_cond_lock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_mutex_lock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_mutex_timedlock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_mutex_trylock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sysconf.c Use x86-64 cacheinfo.c and sysconf.c for x86 2015-08-19 04:27:04 -07:00
time.c x86: Remove vsyscall usage 2015-06-09 18:10:19 -03:00