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
____longjmp_chk.c
alphasort64.c
arch-fork.h m68k: Convert fork.c to arch-fork.h 2014-05-30 18:44:55 +02:00
brk.c
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
configure.ac
dl-librecon.h
dl-static.c
fcntl.c
fxstat.c
fxstatat.c
getdents64.c
getegid.c
geteuid.c
getgid.c
getgroups.c
getmsg.c
getpagesize.c
getresgid.c
getresuid.c
getrlimit64.c
getsysstats.c
getuid.c
glob64.c
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
init-first.c
kernel-features.h Reduce kernel-features.h duplication. 2014-05-14 00:45:19 +00:00
ldconfig.h
ldsodefs.h
libc-m68k-vdso.c
localplt.data m68k: Consolidate nptl/ subdirectories under linux/... 2014-06-23 09:24:18 -07:00
lockf64.c
lxstat.c
m68k-helpers.S
m68k-vdso.c
Makefile
mmap64.c
mmap.S
mremap.S
msgctl.c
oldgetrlimit64.c
pt-vfork.c m68k: Consolidate NPTL/non versions of vfork 2014-06-14 21:37:34 +02:00
putmsg.c
readdir64_r.c
readdir64.c
register-dump.h
scandir64.c
semctl.c
semtimedop.S
setegid.c
seteuid.c
setfsgid.c
setfsuid.c
setgid.c
setgroups.c
setregid.c
setresgid.c
setresuid.c
setreuid.c
setuid.c
shmctl.c
sigcontextinfo.h
socket.S
syscall.S
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
sysdep.S
Versions
versionsort64.c
vfork.S Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
xstat.c