glibc/sysdeps/unix/sysv/linux/s390
Joseph Myers f7b425175c Support and use mixed compat/non-compat aliases in syscalls.list.
This patch enables syscalls.list entries to specify both compat and
non-compat symbol versions for the same syscall definition, making use
of this for setrlimit / chown / lchown where the inability to specify
such aliases showed up in the course of work on bug 14138.

The change to make-syscalls.sh is minimal: adding a SHARED conditional
on the compat_symbol calls.  It remains the case that if a compat
symbol version is specified, the syscall is only built for the shared
library at all if an explicit symbol version is given for a non-compat
symbol (so it's necessary to specify "lchown@@GLIBC_2.0
chown@GLIBC_2.0" rather than just "lchown chown@GLIBC_2.0").  It also
remains the case, as already commented in make-syscalls.sh, that no
SHLIB_COMPAT conditionals are generated, so there would be problems if
the same syscalls.list file, with compat symbols, were used for both
configurations that should have those symbols and configurations for
which they should be conditioned out with SHLIB_COMPAT.

Tested for x86.

	* sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
	compat_symbol calls on [SHARED].
	* sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
	* sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
	Remove.
	(setrlimit): Add setrlimit@GLIBC_2.0 alias.
	* sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
	(oldsetrlimit): Remove.
	(setrlimit): Add setrlimit@GLIBC_2.0 alias.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
	(lchown): New syscall entry.
	(oldsetrlimit): Remove.
	(setrlimit): Add setrlimit@GLIBC_2.0 alias.
	* sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
	(oldsetrlimit): Remove.
	(setrlimit): Add setrlimit@GLIBC_2.0 alias.
2014-10-06 22:58:59 +00:00
..
bits S390: Fix namespace violation in struct stat (BZ #16714). 2014-03-24 16:59:01 +01:00
fpu Implement accurate fma. 2010-10-13 22:27:03 -04:00
s390-32 Support and use mixed compat/non-compat aliases in syscalls.list. 2014-10-06 22:58:59 +00:00
s390-64 Remove shlib-versions entries redundant with DEFAULT entries. 2014-09-26 17:34:22 +00:00
sys S/390: Revert the jmp_buf/ucontext_t ABI change. 2014-07-31 20:04:54 +02:00
arch-fork.h S390: Convert fork.c to arch-fork.h 2014-06-13 16:26:38 -07:00
brk.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
configure Move architecture cases out of sysdeps/unix/sysv/linux/configure.ac. 2014-06-24 20:53:03 +00:00
configure.ac Move architecture cases out of sysdeps/unix/sysv/linux/configure.ac. 2014-06-24 20:53:03 +00:00
dl-cache.h Update. 2003-06-25 08:19:44 +00:00
dl-procinfo.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
elision-conf.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
elision-conf.h Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
elision-lock.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
elision-timed.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
elision-trylock.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
elision-unlock.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
force-elision.h Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
gettimeofday.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
init-first.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
jmp-unwind.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
kernel-features.h [PATCH 6/6] Split s390 out of main Linux kernel-features.h. 2014-07-17 17:55:44 +00:00
ldconfig.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ldd-rewrite.sed Fix for bi-arch support. 2002-03-11 11:01:07 +00:00
libanl.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
localplt.data S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
longjmp_chk.c S/390: Revert the jmp_buf/ucontext_t ABI change. 2014-07-31 20:04:54 +02:00
lowlevellock.h Get rid of lll_robust_dead. 2014-07-10 11:21:54 -07:00
Makefile Clean up gnu/lib-names.h generation (bug 14171). 2014-09-26 17:33:04 +00:00
nldbl-abi.h * math/divtc3.c: New file. 2006-02-01 03:02:06 +00:00
opensock.c * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers): 2007-11-23 15:19:41 +00:00
pt-longjmp.c S/390: Revert the jmp_buf/ucontext_t ABI change. 2014-07-31 20:04:54 +02:00
pt-vfork.S S390: Consolidate NPTL/non versions of vfork 2014-06-26 09:30:52 -07:00
pthread_mutex_cond_lock.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
pthread_mutex_lock.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
pthread_mutex_timedlock.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
pthread_mutex_trylock.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
pthread_once.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
readelflib.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
rt-sysdep.S Update. 2004-04-18 02:37:56 +00:00
sa_len.c Clean up __libc_sa_len helper. 2013-08-27 10:34:16 -07:00
semtimedop.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigcontextinfo.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
system.c Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
ucontext_i.sym S/390: Revert the jmp_buf/ucontext_t ABI change. 2014-07-31 20:04:54 +02:00
Versions Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00