glibc/include/sys
Samuel Thibault 7ae60af75b hurd: Factorize at/non-at functions
Non-at functions can be implemented by just calling the corresponding at
function with AT_FDCWD and zero at_flags.

In the linkat case, the at behavior is different (O_NOLINK), so this introduces
__linkat_common to pass O_NOLINK as appropriate.

lstat functions can also be implemented with fstatat by adding
__fstatat64_common which takes a flags parameter in addition to the at_flags
parameter,

In the end this factorizes chmod, chown, link, lstat64, mkdir, readlink,
rename, stat64, symlink, unlink, utimes.

This also makes __lstat, __lxstat64, __stat and __xstat64 directly use
__fstatat64_common instead of __lstat64 or __stat64.
2022-09-17 19:58:30 +00:00
..
auxv.h misc: Add internal __getauxval2 function 2020-10-27 16:34:37 +01:00
bitypes.h
cdefs.h _Static_assert needs two arguments for compatibility with GCC before 9 2021-09-10 13:18:36 +02:00
dir.h
epoll.h Linux: Add epoll_pwait2 (BZ #27359) 2022-01-17 14:34:54 -03:00
errno.h
fcntl.h
file.h Installed header hygiene (BZ#20366): Test of installed headers. 2016-09-23 08:43:56 -04:00
gmon.h Remove __bb_init_func and __bb_exit_func [BZ #21974] 2017-08-20 06:39:31 -07:00
gmon_out.h
ioctl.h Hide internal __ioctl function [BZ #18822] 2017-10-01 15:59:06 -07:00
ipc.h
mman.h Hide internal __mremap function [BZ #18822] 2017-10-01 16:02:04 -07:00
msg.h sysv: linux: Add 64-bit time_t variant for msgctl 2020-07-09 12:05:40 -03:00
param.h
poll.h y2038: linux: Provide __ppoll64 implementation 2019-11-11 14:41:43 +01:00
prctl.h Add a C wrapper for prctl [BZ #25896] 2020-04-30 10:42:43 -07:00
profil.h Installed header hygiene (BZ#20366): Test of installed headers. 2016-09-23 08:43:56 -04:00
queue.h
random.h hurd: Fix local PLT 2019-12-13 11:11:54 +01:00
resource.h setrlimit/getrlimit: Use __nonnull to avoid null pointer 2021-02-10 08:36:17 -03:00
select.h linux: Only use 64-bit syscall if required for select 2021-06-22 12:09:52 -03:00
sem.h sysv: linux: Add 64-bit time_t variant for semctl 2020-07-09 12:05:35 -03:00
sendfile.h hurd: avoid PLT ref between sendfile and sendfile64 2018-06-16 00:44:57 +02:00
shm.h sysv: linux: Add 64-bit time_t variant for shmctl 2020-07-09 12:05:47 -03:00
signal.h
single_threaded.h misc: Optimize internal usage of __libc_single_threaded 2022-06-24 17:45:58 -03:00
socket.h Linux: Only generate 64 bit timestamps for 64 bit time_t recvmsg/recvmmsg 2022-01-28 18:18:27 -03:00
stat.h hurd: Factorize at/non-at functions 2022-09-17 19:58:30 +00:00
statfs.h linux: Consolidate fstatfs implementations 2021-02-11 07:58:31 -03:00
statvfs.h linux: Consolidate statvfs implementations 2021-02-11 08:00:41 -03:00
sysinfo.h misc: Add __get_nprocs_sched 2021-09-27 09:13:06 -03:00
syslog.h ldbl-128ibm-compat: PLT redirects for using ldbl redirects internally 2020-03-25 14:34:23 -05:00
sysmacros.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
termios.h
time.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
timeb.h time: Add 64-bit time_t support for ftime 2020-10-27 09:54:50 -03:00
times.h
ttychars.h Add missing header wrappers under include/ 2019-02-16 08:25:16 +01:00
types.h
uio.h Hide __readv and __writev [BZ #18822] 2017-10-01 15:54:10 -07:00
un.h socket: Add the __sockaddr_un_set function 2022-01-17 10:21:53 +01:00
unistd.h
utsname.h hurd: keep only required PLTs in ld.so 2020-11-11 02:36:22 +01:00
vfs.h Add missing header wrappers under include/ 2019-02-16 08:25:16 +01:00
vlimit.h
wait.h Implement waitpid in terms of wait4 2019-12-19 16:11:09 -03:00
xattr.h