22 char *ssh_get_progname(
char *);
25 #define setsid() setpgrp(0, getpid()) 29 int setenv(
const char *,
const char *,
int);
33 int setlogin(
const char *);
37 int innetgr(
const char *,
const char *,
const char *,
const char *);
40 #if !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) 44 #if !defined(HAVE_SETEGID) && defined(HAVE_SETRESGID) 48 #if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) && defined(HAVE_SYS_NERR) 49 const char *strerror(
int);
52 #if !defined(HAVE_SETLINEBUF) 53 #define setlinebuf(a) (setvbuf((a), NULL, _IOLBF, 0)) 57 #ifndef HAVE_STRUCT_TIMEVAL 64 int utimes(
char *,
struct timeval *);
68 int truncate (
const char *, off_t);
71 #if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP) 72 #ifndef HAVE_STRUCT_TIMESPEC 78 int nanosleep(
const struct timespec *,
struct timespec *);
82 int usleep(
unsigned int useconds);
85 #ifndef HAVE_TCGETPGRP 89 #ifndef HAVE_TCSENDBREAK 90 int tcsendbreak(
int,
int);
94 int unsetenv(
const char *);
98 typedef void (*mysig_t)(int);
99 mysig_t mysignal(
int sig, mysig_t act);
101 #define signal(a,b) mysignal(a,b) 108 pid_t getpgid(pid_t);
111 #ifndef HAVE_ENDGRENT 112 # define endgrent() do { } while(0) 115 #ifndef HAVE_KRB5_GET_ERROR_MESSAGE 116 # define krb5_get_error_message krb5_get_err_text 119 #ifndef HAVE_KRB5_FREE_ERROR_MESSAGE 120 # define krb5_free_error_message(a,b) do { } while(0) 124 int pledge(
const char *promises,
const char *paths[]);
129 void err(
int,
const char *, ...) __attribute__((format(printf, 2, 3)));
132 void errx(
int,
const char *, ...) __attribute__((format(printf, 2, 3)));
135 void warn(
const char *, ...) __attribute__((format(printf, 1, 2)));
139 long long llabs(
long long);