comparison dbutil.h @ 1022:4121ca987e6a

connect_remote() is now always non-blocking
author Matt Johnston <matt@ucc.asn.au>
date Sat, 14 Feb 2015 09:56:11 +0800
parents 24135c8e1d46
children a00303a7d247 deed0571cacc
comparison
equal deleted inserted replaced
1021:24135c8e1d46 1022:4121ca987e6a
81 int *writefd, int *readfd, int *errfd, pid_t *pid); 81 int *writefd, int *readfd, int *errfd, pid_t *pid);
82 void run_shell_command(const char* cmd, unsigned int maxfd, char* usershell); 82 void run_shell_command(const char* cmd, unsigned int maxfd, char* usershell);
83 #ifdef ENABLE_CONNECT_UNIX 83 #ifdef ENABLE_CONNECT_UNIX
84 int connect_unix(const char* addr); 84 int connect_unix(const char* addr);
85 #endif 85 #endif
86 int connect_remote(const char* remotehost, const char* remoteport, 86 int connect_remote(const char* remotehost, const char* remoteport, char ** errstring);
87 int nonblocking, char ** errstring);
88 int buf_readfile(buffer* buf, const char* filename); 87 int buf_readfile(buffer* buf, const char* filename);
89 int buf_getline(buffer * line, FILE * authfile); 88 int buf_getline(buffer * line, FILE * authfile);
90 89
91 void m_close(int fd); 90 void m_close(int fd);
92 void * m_malloc(size_t size); 91 void * m_malloc(size_t size);