mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Use execveat syscall in fexecve (bug 22134)
By using execveat we no longer depend on /proc. The execveat syscall was introduced in 3.19, except for a few late comers.
This commit is contained in:
@ -102,3 +102,8 @@
|
||||
implementation does not assume the __ASSUME_* and instead use a fallback
|
||||
implementation based on p{read,write}v and returning an error for
|
||||
non supported flags. */
|
||||
|
||||
/* Support for the execveat syscall was added in 3.19. */
|
||||
#if __LINUX_KERNEL_VERSION >= 0x031300
|
||||
# define __ASSUME_EXECVEAT 1
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user