Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef _ASCII_H
+#define _ASCII_H 1
+
int ascii_findlength(const char * const buffer, const int tranlen);
int ascii_downloadfilter(const char * const buffer, char * const outbuffer, const int length);
int ascii_uploadfilter(char * const buffer, const int length);
+
+#endif
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef _CMDS_H
+#define _CMDS_H 1
+
+#include <ftpd.h>
+
/*
* TRAP_ERROR: This is a quick way of doing a test for an error condition.
* if an error occurs (or more precisely, if the value supplied is
#define POLLIN 0x001
#define POLLOUT 0x004
#endif
+
+#endif
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef _FTPD_H
+#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
*/
#define MAX_BLOCK_SIZE 4096
+#if HAVE_PWD_H
+#include <pwd.h>
+#endif
+
+#if HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
+#if HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
#if HAVE_LINUX_SENDFILE && !HAVE_MMAP
#warning sendfile() without mmap() is not supported -- disabling sendfile()
#undef HAVE_LINUX_SENDFILE
void list_readmes(struct conn * const c);
#endif
+#endif
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef _NONROOT_H
+#define _NONROOT_H 1
+
int nr_userinfo(const char * const username, int * const uid,
char * const homedir, char * const rootdir,
const char * const password);
char *nr_get_uname(const uid_t uid);
char *nr_get_gname(const gid_t gid);
+#endif