12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include <errno.h>
- #include <unistd.h>
- #include <sysdep.h>
- #include <alloca.h>
- #include <sys/syscall.h>
- extern int __syscall_execve(const char *file,
- char *const *argv,
- char *const *envp);
- extern void __pthread_kill_other_threads_np(void);
- weak_extern(__pthread_kill_other_threads_np)
- int
- __execve(const char *file, char *const argv[], char *const envp[])
- {
-
- if (__pthread_kill_other_threads_np)
- __pthread_kill_other_threads_np();
- return INLINE_SYSCALL(execve, 3, file, argv, envp);
- }
- weak_alias(__execve, execve)
|