#define _FTPD_H 1
/*
- * This is the port you want BetaFTPD to listen on. The standard
- * FTP port is 21 -- if you really want to use BetaFTPD as your
- * primary FTP server, change FTP_PORT.
+ * This is the port you want BetaFTPD to listen on.
*/
#if WANT_NONROOT
#define FTP_PORT 12121
char username[17];
uid_t uid;
+ gid_t gid;
+
char root_dir[256];
char curr_dir[256];
void clear_bad_fds(int * const server_sock);
#endif
+#if HAVE_BSD_SENDFILE || HAVE_LINUX_SENDFILE
+int mysendfile(int sock, int fd, off_t *offset, size_t count);
+#endif
+
#if WANT_MESSAGE
void dump_file(struct conn * const c, const int num, const char * const filename);
void list_readmes(struct conn * const c);