aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-04-25 12:06:54 +0000
committerOmar Polo <op@omarpolo.com>2021-04-25 12:06:54 +0000
commit11c986679a15e976e5fdde5e439a18be4acac0de (patch)
tree3ab47e41d110196f11cadbafc2912e98e1590e6c /gmid.h
parentbb4be662f1405805421361bb608b0defc6882cd2 (diff)
sort the auto index alphabetically
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gmid.h b/gmid.h
index cacae39..6f4223e 100644
--- a/gmid.h
+++ b/gmid.h
@@ -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**);