glibc/sysdeps/unix/sysv/linux/sh
Joseph Myers 48eb7a94e2 Move some chown / lchown / fchown definitions to syscalls.list (bug 14138).
Continuing the move of syscall definitions to syscalls.list, where the
removal of support for old kernel versions has made this possible,
this patch moves various definitions of chown, lchown and fchown.

In most cases the need for special syscalls.list entries (rather than
existing generic ones) is because these architectures use chown32,
lchown32 and fchown32 as syscall names.  Some architectures also have
symbol versioning compatibility for older versions of chown having
been equivalent to lchown.

The aliases specified for s390-32 had the effect of exporting
__chown@@GLIBC_2.1 (but not __chown@GLIBC_2.0) despite it not being
listed in Versions files.  (I'm not sure why versioned_symbol but not
compat_symbol were effective like that to create such __chown exports
in the absence of Versions entries.)  The natural way to preserve that
versioned export of __chown seems to be to add it in a Versions file,
so I did so.  (Maybe actually it should be a compat symbol,
__chown@GLIBC_2.1, unless there's a good reason for that export, but
this patch doesn't change anything there.)

Tested for x86.

	[BZ #14138]
	* sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
	* sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
	* sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
	* sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
	* sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
	* sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
	__chown.
	* sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
	(lchown): Likewise.
	(fchown): Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
	Likewise.
	(lchown): Likewise.
	(fchown): Likewise.
	* sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
	(lchown): Likewise.
	(fchown): Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
	Likewise.
	(lchown): Likewise.
	(fchown): Likewise.
2014-10-24 12:59:23 +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
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
fcntl.c
fxstat.c
fxstatat.c
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
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
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
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 Move some chown / lchown / fchown definitions to syscalls.list (bug 14138). 2014-10-24 12:59:23 +00: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
vfork.S SH: Consolidate NPTL/non versions of vfork 2014-06-02 14:29:19 -07:00
xstat.c