From: Torbjorn T. <et...@us...> - 2005-09-18 20:12:31
|
Update of /cvsroot/jungerl/jungerl/lib/ftpd/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25736/include Modified Files: ftpd.hrl Log Message: Split ftpd.hrl into two files. Index: ftpd.hrl =================================================================== RCS file: /cvsroot/jungerl/jungerl/lib/ftpd/include/ftpd.hrl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ftpd.hrl 17 Sep 2005 07:29:22 -0000 1.1 +++ ftpd.hrl 18 Sep 2005 20:12:17 -0000 1.2 @@ -1,10 +1,5 @@ - --ifdef(debug). --define(dbg(X,Y), error_logger:info_msg("*dbg ~p:~p: " X, - [?MODULE, ?LINE | Y])). --else. --define(dbg(X,Y), ok). --endif. +-ifndef(_FTPD_HRL). +-define(_FTPD_HRL, true). -define(AUTH_READ, (1 bsl 0)). -define(AUTH_WRITE, (1 bsl 1)). @@ -59,43 +54,16 @@ -define(OPS_STORE_ONLY, ?OP_STOR ). - -define(bit_is_set(Fs, F), (Fs) band F =/= 0). -define(bit_is_clr(Fs, F), (Fs) band F == 0). -define(bit_clr(Fs,F), (Fs) band (bnot (F))). -define(bit_set(Fs,F), (Fs) bor (F)). -%% default configuration options --define(FTPD_PORT, 21). --define(FTPD_MAX_CONN, 40). --define(FTPD_LOGFILE, "ftpd.log"). --define(FTPD_IDLE_TIMEOUT, 300000). % 5 minutes --define(FTPD_UNIQUE_PREFIX, "ftpd"). - -%% server conf --record(sconf, - {port = ?FTPD_PORT, % which port is this server listening to - ip = {0,0,0,0}, % bind to this IP, {0,0,0,0} is possible - rootdir = "", - greeting_file, - servername = element(2, inet:gethostname()), % printed in greeting - max_connections = ?FTPD_MAX_CONN, - allow_hosts = [{{0,0,0,0},{0,0,0,0}}], - deny_hosts = [], % none denied - users = [], % [{User,Passwd,[{Dir,AuthFlags}]}] - auth_mod = ftpd, % default impl, reject all - idle_timeout = ?FTPD_IDLE_TIMEOUT, - unique_prefix = ?FTPD_UNIQUE_PREFIX, - local_cs = "ISO-8859-1", % FIXME: "" should work?? - use_utf8_by_default = false, - use_fd_srv = false, % use fd_srv to open priveleged port - event_mod = ftpd, - sys_ops = 0, - jail = true - }). - -record(user, {name, % string() passwd, % string() | 'email_addr' access = [] % [{Dir, AuthFlags}] }). + + +-endif. |