glibc/sysdeps/unix/sysv/linux/m68k
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 Complete _BSD_SOURCE / _SVID_source followup cleanup. 2014-02-21 21:45:26 +00:00
coldfire Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
m680x0 Support and use mixed compat/non-compat aliases in syscalls.list. 2014-10-06 22:58:59 +00:00
sys Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
____longjmp_chk.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
alphasort64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
arch-fork.h m68k: Convert fork.c to arch-fork.h 2014-05-30 18:44:55 +02:00
brk.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
c++-types.data m68k: Consolidate nptl/ subdirectories under linux/... 2014-06-23 09:24:18 -07:00
clone.S m68k: Consolidate NPTL/non versions of clone 2014-06-14 21:37:49 +02:00
configure Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
configure.ac Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
dl-librecon.h Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
dl-static.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
fcntl.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
fxstat.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
fxstatat.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getdents64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getegid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
geteuid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getgid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getgroups.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getmsg.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getpagesize.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getresgid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getresuid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getrlimit64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getsysstats.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getuid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
glob64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
init-first.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
kernel-features.h Reduce kernel-features.h duplication. 2014-05-14 00:45:19 +00:00
ldconfig.h Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
ldsodefs.h Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
libc-m68k-vdso.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
localplt.data m68k: Consolidate nptl/ subdirectories under linux/... 2014-06-23 09:24:18 -07:00
lockf64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
lxstat.c Whitespace fixes 2014-02-10 20:24:03 +01:00
m68k-helpers.S Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
m68k-vdso.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
Makefile Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
mmap64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
mmap.S Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
mremap.S Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
msgctl.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
oldgetrlimit64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
pt-vfork.c m68k: Consolidate NPTL/non versions of vfork 2014-06-14 21:37:34 +02:00
putmsg.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
readdir64_r.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
readdir64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
register-dump.h Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
scandir64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
semctl.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
semtimedop.S Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setegid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
seteuid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setfsgid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setfsuid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setgid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setgroups.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setregid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setresgid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setresuid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setreuid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
setuid.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
shmctl.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
sigcontextinfo.h Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
socket.S Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
syscall.S Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
syscalls.list Move some chown / lchown / fchown definitions to syscalls.list (bug 14138). 2014-10-06 22:30:54 +00:00
sysdep-cancel.h m68k: Consolidate nptl/ subdirectories under linux/... 2014-06-23 09:24:18 -07:00
sysdep.h Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
sysdep.S Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
Versions Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
versionsort64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
vfork.S Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
xstat.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00