24 char *ssh_get_progname(
char *);
27 #define setsid() setpgrp(0, getpid()) 31 int setenv(
const char *,
const char *,
int);
35 int setlogin(
const char *);
39 int innetgr(
const char *,
const char *,
const char *,
const char *);
42 #if !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) 46 #if !defined(HAVE_SETEGID) && defined(HAVE_SETRESGID) 50 #if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) && defined(HAVE_SYS_NERR) 51 const char *strerror(
int);
54 #if !defined(HAVE_SETLINEBUF) 55 #define setlinebuf(a) (setvbuf((a), NULL, _IOLBF, 0)) 59 #ifndef HAVE_STRUCT_TIMEVAL 66 int utimes(
char *,
struct timeval *);
70 int truncate (
const char *, off_t);
73 #if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP) 74 #ifndef HAVE_STRUCT_TIMESPEC 80 int nanosleep(
const struct timespec *,
struct timespec *);
84 int usleep(
unsigned int useconds);
87 #ifndef HAVE_TCGETPGRP 91 #ifndef HAVE_TCSENDBREAK 92 int tcsendbreak(
int,
int);
96 int unsetenv(
const char *);
100 typedef void (*mysig_t)(int);
101 mysig_t mysignal(
int sig, mysig_t act);
103 #define signal(a,b) mysignal(a,b) 110 pid_t getpgid(pid_t);
113 #ifndef HAVE_ENDGRENT 114 # define endgrent() do { } while(0) 117 #ifndef HAVE_KRB5_GET_ERROR_MESSAGE 118 # define krb5_get_error_message krb5_get_err_text 121 #ifndef HAVE_KRB5_FREE_ERROR_MESSAGE 122 # define krb5_free_error_message(a,b) do { } while(0) 126 int pledge(
const char *promises,
const char *paths[]);
131 void err(
int,
const char *, ...) __attribute__((format(printf, 2, 3)));
134 void errx(
int,
const char *, ...) __attribute__((format(printf, 2, 3)));
137 void warn(
const char *, ...) __attribute__((format(printf, 1, 2)));