glibc/sysdeps/nacl
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
_exit.c PLT avoidance for _exit in rtld. 2015-07-09 15:25:47 -07:00
access.c
backtrace.c
brk.c
chdir.c
check_fds.c
chmod.c
clock_getres.c
clock_gettime.c
clock.c
close.c
configure
configure.ac
createthread.c NaCl: Set tid field to a unique value. 2015-05-20 14:52:05 -07:00
dl-fileid.h Factor file identity rules out of generic rtld code. 2015-07-14 13:15:26 -07:00
dl-map-segments.h NaCl: Use allocate_code_data after dyncode_create 2015-11-20 16:16:35 -08:00
dl-osinfo.h
dl-sysdep-open.h NaCl: Use open_resource API for shared objects 2015-11-10 19:44:48 -08:00
dl-sysdep.c NaCl: Use open_resource API for shared objects 2015-11-10 19:44:48 -08:00
dl-sysdep.h
dl-unmap-segments.h
dl-writev.h
dup2.c
dup.c
entry.h
errnos.awk
euidaccess.c NaCl: Fix symbol names for euidaccess. 2015-04-29 14:43:41 -07:00
exit-thread.h Add and use new glibc-internal futex API. 2015-07-10 13:47:09 +02:00
fchdir.c
fchmod.c
fdatasync.c
fdopendir.c NaCl: Make fdopendir skip fcntl check. 2015-05-13 12:50:25 -07:00
fork.c
fsync.c
ftruncate64.c
ftruncate.c
futex-internal.h Add and use new glibc-internal futex API. 2015-07-10 13:47:09 +02:00
fxstat64.c
fxstat.c
getcwd.c
getdents64.c
getdents.c
getdtsz.c NaCl: Fix missing getdtablesize symbol. 2015-07-23 15:54:21 -07:00
gethostname.c NaCl: Implement gethostname. 2015-05-08 13:06:41 -07:00
getpagesize.c
getpid.c
getsysstats.c
gettimeofday.c
glob64.c
glob.c Make sysdeps/posix bring in login subdir. 2015-07-23 17:04:22 -07:00
ifaddrs.c
Implies
init-first.c
iofdopen.c
irt.sed
isatty.c
kernel-features.h
ld.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
ldsodefs.h
libanl.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
libBrokenLocale.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
libc-start.c
libcrypt.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
libdl.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
libm.abilist Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
libpthread.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
libresolv.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
librt.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
libutil.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
link.c
lll_timedlock_wait.c NaCl: Fix thinko in last change. 2015-05-26 16:11:46 -07:00
lll_timedwait_tid.c Clean up BUSY_WAIT_NOP and atomic_delay. 2015-06-30 15:57:15 +02:00
lowlevellock-futex.h NaCl: Fix lll_futex_timed_wait timeout calculation. 2015-05-28 15:35:45 -07:00
lowlevellock.h Clean up BUSY_WAIT_NOP and atomic_delay. 2015-06-30 15:57:15 +02:00
lseek64.c
lseek.c
lxstat64.c
lxstat.c
Makefile NaCl: Do not install <sys/mtio.h>. 2015-09-11 14:16:18 -07:00
mkdir.c
mmap64.c
mmap.c
mprotect.c
munmap.c
nacl_interface_ext_supply.c NaCl: Implement nacl_interface_ext_supply entry point. 2015-06-03 13:51:11 -07:00
nacl_interface_query.c
nacl-after-link.sh
nacl-interface-list.h NaCl: Use open_resource API for shared objects 2015-11-10 19:44:48 -08:00
nacl-interface-table.c
nacl-interfaces.c NaCl: Implement nacl_interface_ext_supply entry point. 2015-06-03 13:51:11 -07:00
nacl-interfaces.h NaCl: Implement nacl_interface_ext_supply entry point. 2015-06-03 13:51:11 -07:00
nacl-interfaces.mk.in
nacl-test-wrapper.sh NaCl: Fix elf_loader file name in nacl-test-wrapper.sh 2015-05-06 12:55:58 -07:00
nanosleep.c
open64.c
open.c NaCl: Use only nacl_irt_dev_filename, never nacl_irt_filename. 2015-07-21 15:48:56 -07:00
preconfigure
profil.c
pthread_condattr_setclock.c NaCl: Make pthread_condattr_setclock reject CLOCK_MONOTONIC. 2015-07-10 14:18:14 -07:00
pthread-pids.h NaCl: Make thread exit wake pthread_join. 2015-05-28 15:37:31 -07:00
read.c
readdir64_r.c
readdir64.c
readdir_r.c
readdir.c
readlink.c
rename.c
rmdir.c
sched_yield.c
shlib-versions
sigaction.c
sprofil.c
start.c NaCl: Call __nacl_main in preference to main. 2015-08-25 13:37:07 -07:00
Subdirs
symlink.c
tls.h
truncate64.c
truncate.c
uname-values.h NaCl: Provide non-default values for uname. 2015-05-12 10:54:47 -07:00
unlink.c
utimes.c
Versions NaCl: Implement nacl_interface_ext_supply entry point. 2015-06-03 13:51:11 -07:00
write.c
xstat64.c
xstat.c NaCl: Use only nacl_irt_dev_filename, never nacl_irt_filename. 2015-07-21 15:48:56 -07:00
xstatconv.c
xstatconv.h