diff options
author | Omar Polo <op@omarpolo.com> | 2021-04-25 12:06:54 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-04-25 12:06:54 +0000 |
commit | 11c986679a15e976e5fdde5e439a18be4acac0de (patch) | |
tree | 3ab47e41d110196f11cadbafc2912e98e1590e6c /gmid.h | |
parent | bb4be662f1405805421361bb608b0defc6882cd2 (diff) |
sort the auto index alphabetically
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**); |