glibc/sysdeps/unix/sysv/linux/generic
Adhemerval Zanella 720480934a linux: Consolidate brk implementation
It removes all the arch-specific assembly implementation.  The
outliers are alpha, where its kernel ABI explict return -ENOMEM
in case of failure; and i686, where it can't use
"call *%gs:SYSINFO_OFFSET" during statup in static PIE.

Also some ABIs exports an additional ___brk_addr symbol and to
handle it an internal HAVE_INTERNAL_BRK_ADDR_SYMBOL is added.

Checked on x86_64-linux-gnu, i686-linux-gnu, adn with builsd for
the affected ABIs.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2020-12-10 17:42:37 -03:00
..
bits linux: Move the struct stat{64} to struct_stat.h 2020-10-09 17:02:06 -03:00
wordsize-32 Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
____longjmp_chk.c linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
chmod.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
chown.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
dl-origin.c linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
dup2.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
epoll_create.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
inotify_init.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
kernel_stat.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lchown.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
link.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
Makefile sysdeps/stat: Handle 64-bit ino_t types on 32-bit hosts 2019-10-23 12:43:31 -07:00
mkdir.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pipe.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
readlink.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
README linux-generic: add a README 2015-03-19 13:33:01 -04:00
rmdir.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
stat-check.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
symlink.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
syscalls.list Consolidate Linux sendto implementation 2017-03-09 15:22:06 +01:00
sysdep.h Linux: Clean up pread64/pwrite64 system call names 2020-03-03 12:14:40 +01:00
unlink.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
xstatver.h Remove mknod wrapper functions, move them to symbols 2020-10-09 17:02:06 -03:00

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.