mirror of git://sourceware.org/git/glibc.git
Hide internal __chmod and __mkdir functions to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/sys/stat.h (__chmod): Add libc_hidden_proto. (__mkdir): Likewise. * io/chmod.c (__chmod): Add libc_hidden_def. * io/mkdir.c (__mkdir): Likewise. * sysdeps/mach/hurd/chmod.c (__chmod): Likewise. * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise. * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise. * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise. |
||
|---|---|---|
| .. | ||
| bits | ||
| wordsize-32 | ||
| Makefile | ||
| README | ||
| ____longjmp_chk.c | ||
| brk.c | ||
| chmod.c | ||
| chown.c | ||
| dl-origin.c | ||
| dup2.c | ||
| epoll_create.c | ||
| futimesat.c | ||
| getdents.c | ||
| getdents64.c | ||
| inotify_init.c | ||
| kernel_stat.h | ||
| lchown.c | ||
| link.c | ||
| lxstat.c | ||
| mkdir.c | ||
| pipe.c | ||
| readlink.c | ||
| readlink_chk.c | ||
| rmdir.c | ||
| symlink.c | ||
| syscalls.list | ||
| sysctl.c | ||
| sysdep.h | ||
| umount.c | ||
| unlink.c | ||
| ustat.c | ||
| utimes.c | ||
| xmknod.c | ||
| xstat.c | ||
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.