Split exec.c into exec.c and exec_pty.c
This commit is contained in:
13
src/sudo.h
13
src/sudo.h
@@ -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 */
|
||||
|
Reference in New Issue
Block a user