glibc/sysdeps/unix/sysv/linux/powerpc/powerpc64
Joseph Myers 5f45f96ad0 Unify umount function implementations (bug 16552).
Linux kernel architectures have various arrangements for umount
syscalls.  There is a syscall that takes flags, and an older one that
does not.  Newer architectures have only the one taking flags, under
the name umount2 (or under the name umount, in the ia64 case).  Older
architectures may have both, under the names umount2 and umount (or
under the names umount and oldumount, in the alpha case).  glibc then
has several similar implementations of the umount function (no flags)
in terms of either the __umount2 function, or the corresponding
syscall, or in terms of the old syscall under either of its names.

This patch simplifies the implementations in glibc by always using the
__umount2 function to implement the umount function on all systems
using the Linux kernel.  The linux/generic implementation is moved to
sysdeps/unix/sysv/linux (without any changes to code or comments) and
all the other variants are removed.  (This will have the effect of
causing the new syscall to be used in some cases that previously used
the old one, but as discussed for previous changes, such a change to
the underlying syscalls used is OK.)

There remain two variants of how the __umount2 function is
implemented, either in umount2.S, or, for ia64, in syscalls.list.

Tested with build-many-glibcs.py.

	[BZ #16552]
	* sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
	* sysdeps/unix/sysv/linux/umount.c: ... here.
	* sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
	* sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
	* sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
	* sysdeps/unix/sysv/linux/umount.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
2018-03-26 21:18:28 +00:00
..
970
a2
cell
fpu Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
____longjmp_chk.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
brk.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
c++-types.data
clone.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
configure LIBC_SLIBDIR_RTLDDIR: substitute arguments in single quotes 2018-01-25 17:20:28 +01:00
configure.ac
dl-cache.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fcntl.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getcontext.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Implies
jmp_buf-macros.h Add jmp_buf-macros.h 2017-11-09 05:10:03 -08:00
kernel_stat.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ld-le.abilist
ld.abilist
ldsodefs.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libanl-le.abilist
libanl.abilist
libBrokenLocale-le.abilist
libBrokenLocale.abilist
libc-le.abilist copy_file_range: New function to copy file data 2017-12-22 10:55:40 +01:00
libc.abilist copy_file_range: New function to copy file data 2017-12-22 10:55:40 +01:00
libcrypt-le.abilist
libcrypt.abilist
libdl-le.abilist
libdl.abilist
libm-le.abilist Add narrowing subtract functions. 2018-03-20 00:34:52 +00:00
libm.abilist Add narrowing subtract functions. 2018-03-20 00:34:52 +00:00
libnsl-le.abilist
libnsl.abilist
libpthread-le.abilist
libpthread.abilist
libresolv-le.abilist
libresolv.abilist
librt-le.abilist
librt.abilist
libthread_db-le.abilist
libthread_db.abilist
libutil-le.abilist
libutil.abilist
localplt.data ld.so: Introduce struct dl_exception 2017-08-10 16:54:57 +02:00
makecontext.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
setcontext.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
shlib-versions
swapcontext.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
timer_create.c
timer_delete.c
timer_getoverr.c
timer_gettime.c
timer_settime.c
ucontext_i.sym
Versions
vfork.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00