glibc/sysdeps
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
..
aarch64 Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00
alpha Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00
arm Remove unused frame.h header, sigcontextinfo.h macros. 2018-03-22 16:40:51 +00:00
generic hurd: Fix calling __pthread_initialize_minimal in shared case 2018-03-25 00:59:18 +01:00
gnu Fix errno values 2018-03-20 03:10:57 +01:00
hppa Remove unused frame.h header, sigcontextinfo.h macros. 2018-03-22 16:40:51 +00:00
i386 Fix i386 memmove issue (bug 22644). 2018-03-23 16:19:45 +01:00
ia64 Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00
ieee754 Add narrowing subtract functions. 2018-03-20 00:34:52 +00:00
init_array sysdeps/init_array: Add PREINIT_FUNCTION to crti.S 2018-01-29 10:22:26 -08:00
m68k Revert m68k __ieee754_sqrt change 2018-03-16 14:25:41 +00:00
mach hurd: Regenerate errno.h header 2018-03-25 20:17:35 +00:00
microblaze hurd: add gscope support 2018-03-11 13:06:33 +01:00
mips Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00
nios2 Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00
nptl Refactor Linux ARCH_FORK implementation 2018-03-07 17:39:40 -03:00
posix Add missing start-of-file descriptive comment. 2018-03-06 09:21:04 +01:00
powerpc Remove powerpc, sparc fdim inlines (bug 22987). 2018-03-20 18:35:50 +00:00
pthread hurd: fix timer_routines.c build 2018-02-27 01:15:39 +01:00
riscv Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00
s390 Remove all target specific __ieee754_sqrt(f/l) inlines 2018-03-15 19:21:36 +00:00
sh Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00
sparc Remove powerpc, sparc fdim inlines (bug 22987). 2018-03-20 18:35:50 +00:00
tile Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00
unix Unify umount function implementations (bug 16552). 2018-03-26 21:18:28 +00:00
wordsize-32 Use libc_hidden_* for strtoumax (bug 15105). 2018-02-28 14:16:21 +00:00
wordsize-64 Use libc_hidden_* for strtoumax (bug 15105). 2018-02-28 14:16:21 +00:00
x86 Remove sysdeps/x86/fpu/bits/mathinline.h __finite inline. 2018-03-16 18:36:53 +00:00
x86_64 Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00