diff options
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -180,7 +180,8 @@ struct client { int code; const char *meta; int fd, pfd; - DIR *dir; + struct dirent **dir; + int dirlen, diroff; /* big enough to store STATUS + SPACE + META + CRLF */ char sbuf[1029]; @@ -285,6 +286,12 @@ int vhost_disable_log(struct vhost*, const char*); void mark_nonblock(int); void loop(struct tls*, int, int, struct imsgbuf*); +/* dirs.c */ +int scandir_fd(int, struct dirent***, int(*)(const struct dirent*), + int(*)(const struct dirent**, const struct dirent**)); +int select_non_dot(const struct dirent*); +int select_non_dotdot(const struct dirent*); + /* ex.c */ int send_string(int, const char*); int recv_string(int, char**); |