Split exec.c into exec.c and exec_pty.c

This commit is contained in:
Todd C. Miller
2010-06-07 18:06:22 -04:00
parent d417d4e4e8
commit 6717c59d77
5 changed files with 1694 additions and 1108 deletions

View File

@@ -160,6 +160,17 @@ void zero_bytes(volatile void *, size_t);
/* exec.c */
int sudo_execve(struct command_details *details, char *argv[], char *envp[],
struct command_status *cstat);
int my_execve(const char *path, char *const argv[], char *const envp[]);
/* exec_pty.c */
int fork_pty(struct command_details *details, char *argv[], char *envp[],
int sv[], int rbac_enabled, int *maxfd);
int perform_io(fd_set *fdsr, fd_set *fdsw, struct command_status *cstat);
int suspend_parent(int signo);
void fd_set_iobs(fd_set *fdsr, fd_set *fdsw);
void pty_close(struct command_status *cstat);
void pty_setup(uid_t uid);
void terminate_child(pid_t pid, int use_pgrp);
/* term.c */
int term_cbreak(int);
@@ -178,7 +189,7 @@ int atobool(const char *str);
int parse_args(int argc, char **argv, int *nargc, char ***nargv,
char ***settingsp, char ***env_addp);
/* pty.c */
/* get_pty.c */
int get_pty(int *master, int *slave, char *name, size_t namesz, uid_t uid);
/* ttysize.c */