Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / linux / check_execveat.c
blobad6107fb106bc4856e15ff8ef68c688c070b7b09
1 #include <sys/syscall.h>
2 #include <errno.h>
3 #include <unistd.h>
4 #include <stddef.h>
6 int main(int argc, char **argv)
8 int has_execveat = 0;
9 #if defined(__NR_execveat)
10 errno = 0;
11 syscall(__NR_execveat, 0, NULL, 0, 0, 0);
12 has_execveat = (errno != ENOSYS);
13 #else
14 has_execveat = 0;
15 #endif
17 return has_execveat ? 0 : 1;