X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=cmds.h;h=88b04d19fc6e6b5fd63a69d87ec16d97eb898f47;hb=9e83a47a9d9bd9a8020a80393e1f0e03bb34efe7;hp=b7735ff23f51f4a58a07bbc87bff7b62de1db5f7;hpb=4b83f8e50792b459dfd8a6ffe470c2fccb524e7b;p=betaftpd diff --git a/cmds.h b/cmds.h index b7735ff..88b04d1 100644 --- a/cmds.h +++ b/cmds.h @@ -108,13 +108,22 @@ int prepare_for_listing(struct conn * const c, char ** const ptr, void do_listing(struct conn * const c, struct list_options * const lo); int get_num_files(struct conn * const c, const char * const pathname, struct list_options * const lo); -void list_core(struct conn * const c, const char * const pathname, - struct list_options * const lo +int list_core(struct conn * const c, const char * const pathname, + char * const disp_pathname, struct list_options * const lo #if HAVE_MMAP - , const int size + , const int size, int pos #endif ); char classify(const mode_t mode); void do_store(struct conn * const c, int append); char *do_pwd(struct conn * const c, char * const retbuf, const char * const dir); +#ifndef HAVE_POLL +/* + * Even on select()-only systems, we use some poll() constants, so + * we'll have to make them up if we don't already have them. These + * are taken from my glibc 2.1 system. + */ +#define POLLIN 0x001 +#define POLLOUT 0x004 +#endif