comparison dbutil.h @ 482:7ad49f34a122

- Add run_shell_command() function to run a "sh -c" command, handling lots of the work that exechild did (and can be shared by client -J option)
author Matt Johnston <matt@ucc.asn.au>
date Mon, 15 Sep 2008 14:04:55 +0000
parents 357a2e2e9bcc
children b956d6151600
comparison
equal deleted inserted replaced
481:357a2e2e9bcc 482:7ad49f34a122
49 unsigned char * getaddrstring(struct sockaddr_storage* addr, int withport); 49 unsigned char * getaddrstring(struct sockaddr_storage* addr, int withport);
50 int dropbear_listen(const char* address, const char* port, 50 int dropbear_listen(const char* address, const char* port,
51 int *socks, unsigned int sockcount, char **errstring, int *maxfd); 51 int *socks, unsigned int sockcount, char **errstring, int *maxfd);
52 int spawn_command(void(*exec_fn)(void *user_data), void *exec_data, 52 int spawn_command(void(*exec_fn)(void *user_data), void *exec_data,
53 int *writefd, int *readfd, int *errfd, pid_t *pid); 53 int *writefd, int *readfd, int *errfd, pid_t *pid);
54 void run_shell_command(const char* cmd, unsigned int maxfd, char* usershell);
54 int connect_remote(const char* remotehost, const char* remoteport, 55 int connect_remote(const char* remotehost, const char* remoteport,
55 int nonblocking, char ** errstring); 56 int nonblocking, char ** errstring);
56 char* getaddrhostname(struct sockaddr_storage * addr); 57 char* getaddrhostname(struct sockaddr_storage * addr);
57 int buf_readfile(buffer* buf, const char* filename); 58 int buf_readfile(buffer* buf, const char* filename);
58 int buf_getline(buffer * line, FILE * authfile); 59 int buf_getline(buffer * line, FILE * authfile);