version 1.1.1.4, 2013/07/22 10:46:13
|
version 1.1.1.5, 2014/06/15 16:12:55
|
Line 18
|
Line 18
|
#define _SUDO_EXEC_H |
#define _SUDO_EXEC_H |
|
|
/* |
/* |
|
* Older systems may not support MSG_WAITALL but it shouldn't really be needed. |
|
*/ |
|
#ifndef MSG_WAITALL |
|
# define MSG_WAITALL 0 |
|
#endif |
|
|
|
/* |
* Special values to indicate whether continuing in foreground or background. |
* Special values to indicate whether continuing in foreground or background. |
*/ |
*/ |
#define SIGCONT_FG -2 |
#define SIGCONT_FG -2 |
Line 45
|
Line 52
|
*/ |
*/ |
|
|
/* exec.c */ |
/* exec.c */ |
int sudo_execve(const char *path, char *const argv[], char *const envp[], int noexec); | struct sudo_event_base; |
| int sudo_execve(const char *path, char *const argv[], char *const envp[], bool noexec); |
extern volatile pid_t cmnd_pid; |
extern volatile pid_t cmnd_pid; |
|
|
/* exec_pty.c */ |
/* exec_pty.c */ |
struct command_details; |
struct command_details; |
struct command_status; |
struct command_status; |
int fork_pty(struct command_details *details, int sv[], int *maxfd, sigset_t *omask); | int fork_pty(struct command_details *details, int sv[], sigset_t *omask); |
int perform_io(fd_set *fdsr, fd_set *fdsw, struct command_status *cstat); | |
int suspend_parent(int signo); |
int suspend_parent(int signo); |
void exec_cmnd(struct command_details *details, struct command_status *cstat, |
void exec_cmnd(struct command_details *details, struct command_status *cstat, |
int *errfd); | int errfd); |
void fd_set_iobs(fd_set *fdsr, fd_set *fdsw); | void add_io_events(struct sudo_event_base *evbase); |
#ifdef SA_SIGINFO |
#ifdef SA_SIGINFO |
void handler(int s, siginfo_t *info, void *context); |
void handler(int s, siginfo_t *info, void *context); |
#else |
#else |