glibc/sysdeps/unix/sysv/linux
Joseph Myers 90aa3d0945 Make __ASSUME_UTIMES hppa-specific.
This patch makes __ASSUME_UTIMES hppa-specific, removing mentions of
the macro from architecture-independent code and code for other
architectures.  (All other architectures either have the utimes
syscall in all relevant kernel versions, or use the asm-generic
interface so only have utimensat and won't get the utimes syscall.)  A
similar approach is used to that used for futimesat for MicroBlaze: if
the kernel is recent enough that the utimes syscall can be assumed to
be present, use the implementation in terms of the utimes syscall, and
otherwise use the linux/generic implementation in terms of utimensat.

Tested x86_64 that the disassembly of installed shared libraries is
unchanged by the patch.  Not tested for hppa.

	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
	not define.
	* sysdeps/unix/sysv/linux/utimes.c: Do not include
	<kernel-features.h>.
	(__utimes) [__NR_utimes]: Make code unconditional.
	(__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
	* sysdeps/unix/sysv/linux/aarch64/kernel-features.h
	(__ASSUME_UTIMES): Do not undefine.
	* sysdeps/unix/sysv/linux/tile/kernel-features.h
	(__ASSUME_UTIMES): Likewise.
	* sysdeps/unix/sysv/linux/hppa/kernel-features.h
	(__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
	instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
	* sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
2014-12-22 21:42:03 +00:00
..
aarch64 Make __ASSUME_UTIMES hppa-specific. 2014-12-22 21:42:03 +00:00
alpha Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
arm Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
bits Define CLOCK_TAI on Linux (bug 17608) 2014-11-24 17:28:41 +01:00
generic Remove __libc_creat function name. 2014-10-30 19:44:31 +00:00
hppa Make __ASSUME_UTIMES hppa-specific. 2014-12-22 21:42:03 +00:00
i386 Add hidden __tls_get_addr/___tls_get_addr alias 2014-12-21 09:27:11 -08:00
ia64 Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
include/sys Don't use INTUSE with __adjtimex (bug 14132). 2014-10-08 23:19:32 +00:00
m68k Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
microblaze Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
mips Fix MIPS waitid build. 2014-12-10 18:50:07 +00:00
net
netash
netatalk
netax25
neteconet
netinet
netipx
netiucv
netpacket
netrom
netrose
nfs
powerpc Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
s390 Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
scsi
sh sh: Remove custom lowlevellock, barrier, condvar, and rwlock implementations. 2014-12-19 15:20:37 +01:00
sparc Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
sys Fix prototype of eventfd. 2014-09-20 14:05:49 +02:00
tile Make __ASSUME_UTIMES hppa-specific. 2014-12-22 21:42:03 +00:00
wordsize-64 Remove __libc_creat function name. 2014-10-30 19:44:31 +00:00
x86 Properly handle forced elision in pthread_mutex_trylock (bug 16657) 2014-12-11 12:44:27 +01:00
x86_64 Use generic lowlevellock-futex.h in x86_64 lowlevellock.h. 2014-12-19 15:21:12 +01:00
_exit.c
_G_config.h
a.out.h
accept4.c
accept.S
adjtime.c Don't use INTUSE with __adjtimex (bug 14132). 2014-10-08 23:19:32 +00:00
aio_misc.h Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
aio_sigqueue.c
allocrtsig.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
arch-fork.h
bind.S Fix resolver bind, getsockname namespace (bug 17733). 2014-12-22 12:46:27 +00:00
check_native.c
check_pf.c Remove IS_IN_nscd 2014-11-24 11:41:44 +05:30
clock_getcpuclockid.c
clock_getres.c
clock_gettime.c
clock_nanosleep.c
clock_settime.c
clock.c
cmsg_nxthdr.c
configure Remove bitrotten --enable-oldest-abi (bug 6652). 2014-09-16 17:45:03 +00:00
configure.ac Remove bitrotten --enable-oldest-abi (bug 6652). 2014-09-16 17:45:03 +00:00
connect.S
createthread.c NPTL: Move Linux-specific createthread.c to sysdeps. 2014-11-18 11:03:20 -08:00
default-sched.h NPTL: Refactor scheduler setup in pthread_create. 2014-11-20 10:56:20 -08:00
device-nrs.h
dl-brk.c
dl-execstack.c
dl-fxstatat64.c
dl-getcwd.c
dl-librecon.h
dl-openat64.c
dl-opendir.c
dl-origin.c
dl-osinfo.h
dl-sbrk.c
dl-sysdep.c Add missing #include for MIN use in dl-sysdep.c. 2014-07-02 11:10:08 -07:00
dl-sysdep.h
dl-vdso.c
dl-vdso.h
dl-writev.h
epoll_pwait.c
errqueue.h
eventfd_read.c
eventfd_write.c
eventfd.c Fix prototype of eventfd. 2014-09-20 14:05:49 +02:00
exit-thread.h
faccessat.c
fallocate64.c
fallocate.c
fatal-prepare.h
fchmodat.c
fcntl.c
fd_to_filename.h
fexecve.c
fips-private.h
fpathconf.c
fstatfs64.c
fstatvfs64.c
fstatvfs.c
ftime.c
ftruncate64.c
futimens.c
futimes.c
futimesat.c
fxstat64.c
fxstat.c
fxstatat64.c
fxstatat.c
gai_sigqueue.c
getclktck.c
getcwd.c Remove IS_IN_rtld 2014-11-24 11:41:48 +05:30
getdents64.c
getdents.c
getdirentries64.c
getdirentries.c
getdtsz.c
gethostid.c
getipv4sourcefilter.c
getloadavg.c
getlogin_r.c
getlogin.c
getpagesize.c
getpeername.S
getpid.c Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
getpriority.c
getpt.c
getrlimit64.c
getsockname.S Fix resolver bind, getsockname namespace (bug 17733). 2014-12-22 12:46:27 +00:00
getsockopt.S
getsourcefilter.c
getsysstats.c Fix __get_nprocs fgets_unlocked namespace (bug 17582). 2014-11-12 22:39:36 +00:00
grantpt.c
if_index.c Fix resolver if_* namespace (bug 17717). 2014-12-16 18:18:49 +00:00
ifaddrs.c Fix getifaddrs, freeifaddrs namespace (bug 17668). 2014-12-02 23:11:09 +00:00
ifreq.c
Implies
internal_accept4.S
internal_recvmmsg.S
internal_sendmmsg.S
internal_statvfs64.c
internal_statvfs.c
ipc_priv.h
kernel_sigaction.h
kernel_stat.h
kernel_termios.h
kernel-features.h Make __ASSUME_UTIMES hppa-specific. 2014-12-22 21:42:03 +00:00
kernel-posix-cpu-timers.h
kernel-posix-timers.h Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
ldd-rewrite.sed
lddlibc4.c
ldsodefs.h
libc_fatal.c
linux_fsinfo.h
listen.S
llseek.c
local-setxid.h
lowlevellock-futex.h Use generic lowlevellock-futex.h in x86_64 lowlevellock.h. 2014-12-19 15:21:12 +01:00
lseek64.c
lutimes.c
lxstat64.c
lxstat.c
makedev.c
Makefile Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
malloc-sysdep.h
mmap64.c
mq_close.c
mq_getattr.c
mq_notify.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
mq_open.c
mq_receive.c
mq_send.c
mq_unlink.c
msgctl.c
msgget.c
msgrcv.c
msgsnd.c
netlinkaccess.h
nice.c
not-cancel.h Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
nptl-signals.h Split nptl-signals.h out from pthreadP.h 2014-07-31 11:37:48 -07:00
nscd_setup_thread.c
ntp_gettime.c Don't use INTUSE with __adjtimex (bug 14132). 2014-10-08 23:19:32 +00:00
ntp_gettimex.c Don't use INTUSE with __adjtimex (bug 14132). 2014-10-08 23:19:32 +00:00
open64.c
openat64.c
openat.c
opendir.c
opensock.c
pathconf.c
pathconf.h
paths.h
posix_fadvise64.c
posix_fadvise.c
posix_fallocate64.c
posix_fallocate.c
posix_madvise.c
ppoll.c
pread64.c
pread.c
preadv64.c
preadv.c
prlimit.c
prof-freq.c
profil.c
pselect.c Remove __libc_pselect alias. 2014-10-31 21:22:35 +00:00
pt-raise.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
pthread_getaffinity.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
pthread_getcpuclockid.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
pthread_getname.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
pthread_kill.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
pthread_setaffinity.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
pthread_setname.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
pthread_sigmask.c
pthread_sigqueue.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
ptrace.c
ptsname.c
pwrite64.c
pwrite.c
pwritev64.c
pwritev.c
raise.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
readahead.c
readdir64_r.c
readdir64.c
readonly-area.c
reboot.c
recv.S
recvfrom.S
recvmmsg.c Sync recvmmsg prototype with kernel usage. 2014-09-20 13:53:44 +02:00
recvmsg.S
remove.c
sa_len.c
safe-fatal.h Add __safe_fatal and use it in __pthread_unwind forwarder fallback. 2014-07-31 14:00:33 -07:00
sched_getaffinity.c
sched_getcpu.c
sched_setaffinity.c
segfault.c
semctl.c
semget.c
semop.c
semtimedop.c
send.S
sendmmsg.c
sendmsg.S
sendto.S
setegid.c
seteuid.c
setgid.c
setgroups.c
sethostid.c
setipv4sourcefilter.c
setregid.c
setresgid.c
setresuid.c
setreuid.c
setrlimit64.c
setsockopt.S
setsourcefilter.c
setuid.c
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
shm-directory.c NPTL: Refactor named semaphore code to use shm-directory.h 2014-12-12 15:01:30 -08:00
shmat.c
shmctl.c
shmdt.c
shmget.c
shutdown.S
sigaction.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
siglist.h
signal.c
signalfd.c
sigpending.c
sigprocmask.c
sigqueue.c
sigreturn.c
sigset-cvt-mask.h
sigstack.c
sigsuspend.c
sigtimedwait.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
sigwait.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
sigwaitinfo.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
sizes.h
sleep.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
socketcall.h
socketpair.S
speed.c
statfs64.c
statvfs64.c
statvfs.c
sync_file_range.c
syscalls.list Remove __libc_nanosleep function name. 2014-11-01 12:26:09 +00:00
sysconf.c Add missing #include for MIN/MAX users. 2014-07-01 15:01:24 -07:00
sysctl.c
sysctl.mk
syslog.c
system.c
tcdrain.c
tcflow.c
tcflush.c
tcgetattr.c
tcgetpgrp.c
tcsendbrk.c
tcsetattr.c
tcsetpgrp.c
termio.h
testrtsig.h
time.c
timer_create.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
timer_delete.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
timer_getoverr.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
timer_gettime.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
timer_routines.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
timer_settime.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
times.c
timespec_get.c
truncate64.c
tst-clone.c
tst-fanotify.c
tst-getcpu.c
tst-setgetname.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
ttyname_r.c
ttyname.c
ualarm.c
umount2.S
umount.S
unlockpt.c
updwtmp.c
usleep.c
ustat.c
utimensat.c
utimes.c Make __ASSUME_UTIMES hppa-specific. 2014-12-22 21:42:03 +00:00
utmp_file.c
Versions
vfork.c
wait3.c
wait.c
waitid.c
waitpid.c Remove __libc_waitpid function name. 2014-11-07 01:27:16 +00:00
xmknod.c
xmknodat.c
xstat64.c
xstat.c
xstatconv.c
xstatconv.h