Diff for /embedaddon/sudo/src/sudo_exec.h between versions 1.1.1.3 and 1.1.1.4

version 1.1.1.3, 2012/10/09 09:29:52 version 1.1.1.4, 2013/07/22 10:46:13
Line 1 Line 1
 /*  /*
 * Copyright (c) 2010-2011 Todd C. Miller <Todd.Miller@courtesan.com> * Copyright (c) 2010-2013 Todd C. Miller <Todd.Miller@courtesan.com>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 24 Line 24
 #define SIGCONT_BG      -3  #define SIGCONT_BG      -3
   
 /*  /*
    * Positions in saved_signals[]
    */
   #define SAVED_SIGALRM    0
   #define SAVED_SIGCHLD    1
   #define SAVED_SIGCONT    2
   #define SAVED_SIGHUP     3
   #define SAVED_SIGINT     4
   #define SAVED_SIGPIPE    5
   #define SAVED_SIGQUIT    6
   #define SAVED_SIGTERM    7
   #define SAVED_SIGTSTP    8
   #define SAVED_SIGTTIN    9
   #define SAVED_SIGTTOU   10
   #define SAVED_SIGUSR1   11
   #define SAVED_SIGUSR2   12
   
   /*
  * Symbols shared between exec.c and exec_pty.c   * Symbols shared between exec.c and exec_pty.c
  */   */
   
 /* exec.c */  /* exec.c */
 int sudo_execve(const char *path, char *const argv[], char *const envp[], int noexec);  int sudo_execve(const char *path, char *const argv[], char *const envp[], int noexec);
 int pipe_nonblock(int fds[2]);  
 extern volatile pid_t cmnd_pid;  extern volatile pid_t cmnd_pid;
   
 /* exec_pty.c */  /* exec_pty.c */
Line 38  struct command_status; Line 54  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[], int *maxfd, sigset_t *omask);
 int perform_io(fd_set *fdsr, fd_set *fdsw, struct command_status *cstat);  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,
       int *errfd);
 void fd_set_iobs(fd_set *fdsr, fd_set *fdsw);  void fd_set_iobs(fd_set *fdsr, fd_set *fdsw);
 #ifdef SA_SIGINFO  #ifdef SA_SIGINFO
 void handler(int s, siginfo_t *info, void *context);  void handler(int s, siginfo_t *info, void *context);
Line 47  void handler(int s); Line 65  void handler(int s);
 void pty_close(struct command_status *cstat);  void pty_close(struct command_status *cstat);
 void pty_setup(uid_t uid, const char *tty, const char *utmp_user);  void pty_setup(uid_t uid, const char *tty, const char *utmp_user);
 void terminate_command(pid_t pid, bool use_pgrp);  void terminate_command(pid_t pid, bool use_pgrp);
 extern int signal_pipe[2];  
   
 /* utmp.c */  /* utmp.c */
 bool utmp_login(const char *from_line, const char *to_line, int ttyfd,  bool utmp_login(const char *from_line, const char *to_line, int ttyfd,

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>