glibc/sysdeps/unix/sysv/linux/sh
Joseph Myers 68870f1253 Move some setrlimit definitions to syscalls.list (bug 14138).
Bug 14138 is followup cleanup after removal of support for old Linux
kernel versions: moving syscalls to syscalls.list where the only
reason for using C definitions was kernel version conditionals that
are no longer present.

This patch deals with the case of setrlimit
(sysdeps/unix/sysv/linux/i386/setrlimit.c, included by various other
architectures).  Where needed (where there is also a compat symbol for
setrlimit@GLIBC_2.0), new syscalls.list entries are added.  Where not
needed (where there is no such compat symbol and the minimum symbol
version for libc is 2.2 or later), no such entries are added as that
in sysdeps/unix/syscalls.list will suffice.  Thus arm and sh need no
such entries, while m68k and powerpc need entries only in a
subdirectory syscalls.list file rather than for all configurations
that previously used setrlimit.c.

(setrlimit@@GLIBC_2.2 and setrlimit@GLIBC_2.0 are now semantically
identical - the new symbol version was about a change of types from
signed to unsigned and the former compatibility code for dealing with
large unsigned arguments on old kernels is no longer needed or
present, having been removed with support for pre-2.4 kernels.
However, making the two versions into aliases doesn't work at present:
the case of having both default and non-default symbol versions on the
same syscalls.list line results in a compat_symbol call in code built
for static libc, which doesn't compile.  I don't suppose it would be
hard to generate SHARED conditionals from make-syscalls.sh to fix
this, but in any case this patch doesn't make things any worse, as the
functions weren't aliases before the patch either.)

Tested for x86, and ran ABI tests for ARM as an example of an
architecture where the setrlimit.c file was just removed without
adding syscalls.list entries.

	[BZ #14138]
	* sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
	* sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
	* sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
	* sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
	syscall entry for GLIBC_2.2 symbol version.
	* sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
	(setrlimit): Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
	Likewise.
2014-09-23 14:12:50 +00:00
..
bits Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sh3 Adjust SH specific fpu_control.h and ucontext.h files. 2014-01-23 14:22:58 +09:00
sh4 Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
sys Restore ucontext ABI for soft-float sh4. 2014-01-24 12:56:12 +09:00
____longjmp_chk.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
arch-fork.h SH: Convert fork.c to arch-fork.h 2014-05-27 12:58:01 -07:00
brk.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
c++-types.data SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
chown.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
clone.S SH: Consolidate NPTL/non versions of clone 2014-05-28 17:23:19 -07: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
fchown.c
fcntl.c
fxstat.c
fxstatat.c * io/Makefile (routines): Add fstatat, fstatat64, fxstatat, fxstatat64, 2005-11-11 20:02:07 +00:00
getegid.c
geteuid.c
getgid.c Add getgid.c for SH 2013-05-10 20:42:24 +02:00
getgroups.c
getresgid.c
getresuid.c
getrlimit64.c
getuid.c
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
kernel-features.h [PATCH 5/6] Split sh out of main Linux kernel-features.h. 2014-07-17 17:54:43 +00:00
lchown.c
ld.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libanl.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libBrokenLocale.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libc-lowlevellock.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
libc.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libcrypt.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libdl.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libm.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libnsl.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libpthread.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libresolv.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
librt.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libthread_db.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
libutil.abilist SH: Consolidate nptl/ subdirectories under linux/..... 2014-06-23 09:23:12 -07:00
lockf64.c
lowlevel-atomic.h Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
lowlevellock.h Get rid of lll_robust_dead. 2014-07-10 11:21:54 -07:00
lowlevellock.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
lowlevelrobustlock.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
lxstat.c
makecontext.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Makefile SH: ____longjmp_chk for GNU/Linux with sigaltstack support. 2012-06-23 11:56:02 +02:00
msgctl.c
pipe.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pread64.c Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
pread.c Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
profil-counter.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pt-vfork.S SH: Consolidate NPTL/non versions of vfork 2014-06-02 14:29:19 -07:00
pthread_barrier_wait.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_cond_broadcast.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_cond_signal.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_cond_timedwait.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_cond_wait.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_once.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_rwlock_rdlock.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_rwlock_timedrdlock.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_rwlock_timedwrlock.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_rwlock_unlock.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pthread_rwlock_wrlock.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
pwrite64.c Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
pwrite.c Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
sem_post.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
sem_timedwait.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
sem_trywait.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
sem_wait.S Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
semctl.c
setegid.c
seteuid.c
setfsgid.c
setfsuid.c
setgid.c
setgroups.c
setregid.c
setresgid.c
setresuid.c
setreuid.c
setuid.c
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
shmctl.c
sigaltstack-offsets.sym SH: ____longjmp_chk for GNU/Linux with sigaltstack support. 2012-06-23 11:56:02 +02:00
sigcontextinfo.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
smp.h Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
socket.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
syscall.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
syscalls.list SH can do fanotify_mark, too. 2012-06-23 12:34:58 +02:00
sysdep-cancel.h Move SH code out of nptl/ subdirectory. 2014-06-12 09:05:54 -07:00
sysdep.h Remove unnecessary uses of NOT_IN_libc 2014-08-21 10:26:46 +05:30
sysdep.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Versions SH can do fanotify_mark, too. 2012-06-23 12:34:58 +02:00
vfork.S SH: Consolidate NPTL/non versions of vfork 2014-06-02 14:29:19 -07:00
xstat.c