glibc/sysdeps/unix/sysv/linux/generic
Adhemerval Zanella 7fe1e1d60a Consolidate rename Linux implementation
This patch consolidates the Linux rename implementation on
sysdeps/unix/sysv/linux/rename.c.  Current code try to use
__NR_rename if is defined and apply the same strategy for
__NR_renameat and __NR_renameat2.

Check on x86_64 and aarch64.

	* sysdeps/unix/sysv/linux/rename.c: New file.
	* sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
2016-12-14 15:31:24 -02:00
..
bits Consolidate Linux setrlimit and getrlimit implementation 2016-11-17 15:54:22 -02:00
wordsize-32 Use XSTAT_IS_XSTAT64 in generic xstat functions 2016-11-29 08:06:47 -08:00
Makefile Move tilegx, tilepro, and linux-generic from ports to libc. 2014-02-10 11:04:39 -05:00
README linux-generic: add a README 2015-03-19 13:33:01 -04:00
____longjmp_chk.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
brk.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
chmod.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
chown.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
creat.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
dl-origin.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
dup2.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
epoll_create.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
epoll_wait.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
futimesat.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getdents.c Move tilegx, tilepro, and linux-generic from ports to libc. 2014-02-10 11:04:39 -05:00
getdents64.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
inotify_init.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
kernel_stat.h Allow [f]statfs64 to alias [f]statfs 2016-11-22 09:59:12 -08:00
lchown.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
link.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lxstat.c Always define XSTAT_IS_XSTAT64 2016-11-21 08:23:12 -08:00
mkdir.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
open.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
open64.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
pause.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
pipe.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
poll.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
readlink.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
readlink_chk.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
recv.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
rmdir.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
select.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
send.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
symlink.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
syscalls.list Adjust kernel-features.h defaults for recvmsg and sendmsg 2016-05-25 17:27:57 -03:00
sysctl.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sysdep.h Consolidate lseek/lseek64/llseek implementations 2016-11-08 16:04:33 -02:00
umount.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
unlink.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ustat.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
utimes.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
xmknod.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
xstat.c Always define XSTAT_IS_XSTAT64 2016-11-21 08:23:12 -08:00

README

This hierarchy supports Linux systems using the new
asm-generic/unistd.h, which removes many familiar old syscalls.  For
example, to implement open(), newer Linux architectures require glibc
to invoke the __NR_openat syscall with AT_FDCWD.  This hierarchy
provides all those implementations.

It also provides support for 32-bit platforms using the 64-bit kernel
syscall APIs, as the 32-bit ones are no longer provided.  Note that
newer ILP32 environments (x32 or AArch64:ILP32, for example) are
converting to use more 64-bit types in kernel syscalls, so that aspect
of this support is in more flux as of this writing.