ProFTPD Developer's Guide: API Macros

ProFTPD Version 1.2

ANY_MODULE

Declaration:
 #define ANY_MODULE ((module*)0xffffffff)
Source File: include/modules.h

ASSERT

Declaration:
 #define ASSERT(x) assert(x)
Source File: include/proftpd.h

BLOCK_MINFREE

Declaration:
 #define BLOCK_MINFREE TUNABLE_NEW_POOL_SIZE
Source File: include/pool.h

BUFSIZ

Declaration:
 #define BUFSIZ 8192
Source File: src/support.c

CALLBACK_FRAME

Declaration:
 #define CALLBACK_FRAME LPARAM p1, LPARAM p2,i LPARAM p3, void *data
Source File: include/proftpd.h

CF_DEFER

Declaration:
 #define CF_DEFER (1 << 2)
Comments: Defer hashing until authentication

Source File: include/dirtree.h

CF_DYNAMIC

Declaration:
 #define CF_DYNAMIC (1 << 1)
Comments: Dynamically added entry

Source File: include/dirtree.h

CF_MERGEDOWN

Declaration:
 #define CF_MERGEDOWN (1 << 0)
Comments: Merge configuration option "down"

Source File: include/dirtree.h

CHECK_ARGS

Declaration:
 #define CHECK_ARGS(x, n) if ((x)->argc-1 < n) CONF_ERROR(x, "missing arguments")
Source File: include/dirtree.h

CHECK_CMD_ARGS

Declaration:
 #define CHECK_CMD_ARGS(x, n) if ((x)->argc != (n)) { \
           add_response_err(R_501, "Invalid number of arguments."); \
           return ERROR((x)); \
         }
Source File: include/dirtree.h

CHECK_CMD_MIN_ARGS

Declaration:
 #define CHECK_CMD_MIN_ARGS(x, n) if((x)->argc < (n)) { \
           add_response_err(R_501, "Invalid number of arguments."); \
           return ERROR((x)); \
         }
Source File: include/dirtree.h

CHECK_CONF

Declaration:
 #define CHECK_CONF(x, p) if (!check_conf((x), (p))) \
           CONF_ERROR((x), \
           pstrcat((x)->tmp_pool, "directive not allowed in ", \
           get_section_name((x)), \
           " section.", NULL))
Comments: This macro checks the given cmd_rec's configuration context against an OR'd list of allowable contexts, and returns a configuration error if the directive is occurring in an illegal context.

Source File: include/dirtree.h

CHECK_HASARGS

Declaration:
 #define CHECK_HASARGS(x, n) ((x)->argc - 1) == n
Source File: include/dirtree.h

CHECK_INET_POOL

Declaration:
 #define CHECK_INET_POOL if(!inet_pool) _create_inet_pool()
Source File: src/inet.c

CHECK_VARARGS

Declaration:
 #define CHECK_VARARGS(x, n, m) if((x)->argc - 1 < n || \
         (x)->argc - 1 > m) CONF_ERROR(x, "missing arguments")
Source File: include/dirtree.h

CHOP

Declaration:
 #define CHOP(s) strip_end((s), "\r\n")
Source File: include/support.h

CLASS_USER

Declaration:
 #define CLASS_USER
Source File: include/dirtree.h

CLICK_SZ

Declaration:
 #define CLICK_SZ (sizeof(union align))
Source File: src/pool.c

CL_ALL

Declaration:
 #define CL_ALL (CL_AUTH|CL_INFO|CL_DIRS|CL_READ|CL_WRITE|CL_MISC)
Source File: include/modules.h

CL_AUTH

Declaration:
 #define CL_AUTH (1 << 0)
Comments: USER, PASS

Source File: include/modules.h

CL_DIRS

Declaration:
 #define CL_DIRS (1 << 2)
Comments: Directory commands (LIST, NLST, CWD, etc)

Source File: include/modules.h

CL_INFO

Declaration:
 #define CL_INFO (1 << 1)
Comments: Informational commands (PWD, SYST, etc)

Source File: include/modules.h

CL_MISC

Declaration:
 #define CL_MISC (1 << 5)
Comments: Miscellaneous commands (RNFR, RNTO, SITE, etc)

Source File: include/modules.h

CL_NONE

Declaration:
 #define CL_NONE 0x0
Source File: include/modules.h

CL_READ

Declaration:
 #define CL_READ (1 << 3)
Comments: File reading commands (RETR)

Source File: include/modules.h

CL_WRITE

Declaration:
 #define CL_WRITE (1 << 4)
Comments: Writing commands (STOR, MKD, etc)

Source File: include/modules.h

CMD
Declaration:
 #define CMD 2
Source File: include/modules.h

CM_ACCEPT

Declaration:
 #define CM_ACCEPT 3
Comments: Connection mode: accepting

Source File: include/inet.h

CM_CLOSED

Declaration:
 #define CM_CLOSED 5
Comments: Connection mode: closed

Source File: include/inet.h

CM_CONNECT

Declaration:
 #define CM_CONNECT 4
Comments: Connection mode: connected

Source File: include/inet.h

CM_ERROR

Declaration:
 #define CM_ERROR 6
Comments: Connection mode: error

Source File: include/inet.h

CM_LISTEN

Declaration:
 #define CM_LISTEN 1
Comments: Connection mode: listening

Source File: include/inet.h

CM_NONE

Declaration:
 #define CM_NONE 0
Comments: Connection mode: no connections

Source File: include/inet.h

CM_OPEN

Declaration:
 #define CM_OPEN 2
Comments: Connection mode: open

Source File: include/inet.h

CONF_ANON

Declaration:
 #define CONF_ANON (1 << 2)
Comments: Anonymous FTP configuration

Source File: include/dirtree.h

CONF_DIR

Declaration:
 #define CONF_DIR (1 << 1)
Comments: Per-directory configuration

Source File: include/dirtree.h

CONF_DYNDIR

Declaration:
 #define CONF_DYNDIR (1 << 5)
Comments: .ftpaccess file configuration

Source File: include/dirtree.h

CONF_ERROR

Declaration:
 #define CONF_ERROR(x, s) return \
           ERROR_MSG((x), NULL, pstrcat((x)->tmp_pool, \
           (x)->argv[0], ": ", (s), NULL));
Source File: include/dirtree.h

CONF_GLOBAL

Declaration:
 #define CONF_GLOBAL (1 << 6)
Comments: "Global" context (applies to the main server and all virtual servers)

Source File: include/dirtree.h

CONF_LIMIT

Declaration:
 #define CONF_LIMIT (1 << 3)
Comments: Command limiting configuration

Source File: include/dirtree.h

CONF_PARAM

Declaration:
 #define CONF_PARAM (1 << 15)
Comments: Configuration/argument records

Source File: include/dirtree.h

CONF_ROOT

Declaration:
 #define CONF_ROOT (1 << 0)
Comments: "main" server configuration

Source File: include/dirtree.h

CONF_USERDATA

Declaration:
 #define CONF_USERDATA (1 << 14)
Comments: Runtime user data/configuration

Source File: include/dirtree.h

CONF_VIRTUAL

Declaration:
 #define CONF_VIRTUAL (1 << 4)
Comments: Virtual server configuration

Source File: include/dirtree.h

CORE_DIR

Declaration:
 #define CORE_DIR RUN_DIR
Source File: include/default_paths.h

CURRENT_CONF

Declaration:
 #define CURRENT_CONF (session.dir_config ? session.dir_config->subset \
           : (session.anon_config ? session.anon_config->subset \
           : main_server->conf))
Source File: include/dirtree.h

C_ABOR

Declaration:
 #define C_ABOR "ABOR"
Comments: Abort current operation

Source File: include/ftp.h

C_ACCT

Declaration:
 #define C_ACCT "ACCT"
Comments: Specify an account (not implemented)

Source File: include/ftp.h

C_ADAT

Declaration:
 #define C_ADAT "ADAT"
Source File: include/ftp.h

C_ALLO

Declaration:
 #define C_ALLO "ALLO"
Comments: Allocate storage space (not used)

Source File: include/ftp.h

C_ANY

Declaration:
 #define C_ANY "*"
Comments: Special "wildcard" matching command

Source File: include/ftp.h

C_APPE

Declaration:
 #define C_APPE "APPE"
Comments: Append to the end of a file

Source File: include/ftp.h

C_AUTH

Declaration:
 #define C_AUTH "AUTH"
Source File: include/ftp.h

C_CCC

Declaration:
 #define C_CCC "CCC"
Source File: include/ftp.h

C_CDUP

Declaration:
 #define C_CDUP "CDUP"
Comments: Change CWD up one level

Source File: include/ftp.h

C_CONF

Declaration:
 #define C_CONF "CONF"
Source File: include/ftp.h

C_CWD

Declaration:
 #define C_CWD "CWD"
Comments: Change working directory

Source File: include/ftp.h

C_DELE

Declaration:
 #define C_DELE "DELE"
Comments: Delete a file

Source File: include/ftp.h

C_ENC

Declaration:
 #define C_ENC "ENC"
Source File: include/ftp.h

C_HELP

Declaration:
 #define C_HELP "HELP"
Comments: Help

Source File: include/ftp.h

C_LIST

Declaration:
 #define C_LIST "LIST"
Comments: Return contents of PWD or specified dir

Source File: include/ftp.h

C_MDTM

Declaration:
 #define C_MDTM "MDTM"
Comments: Modification time, NOT in RFC959

Source File: include/ftp.h

C_MIC

Declaration:
 #define C_MIC "MIC"
Source File: include/ftp.h

C_MKD

Declaration:
 #define C_MKD "MKD"
Comments: Create a directory

Source File: include/ftp.h

C_MODE

Declaration:
 #define C_MODE "MODE"
Comments: Transfer mode (S = Stream, B = Block, C = Compressed (not supported)

Source File: include/ftp.h

C_NLST

Declaration:
 #define C_NLST "NLST"
Comments: As LIST, but returns names only

Source File: include/ftp.h

C_NOOP

Declaration:
 #define C_NOOP "NOOP"
Comments: Returns 200 and does nothing

Source File: include/ftp.h

C_PASS

Declaration:
 #define C_PASS "PASS"
Comments: Specify a password

Source File: include/ftp.h

C_PASV

Declaration:
 #define C_PASV "PASV"
Comments: Next transfer data connection is from client to server

Source File: include/ftp.h

C_PBSZ

Declaration:
 #define C_PBSZ "PBSZ"
Source File: include/ftp.h

C_PORT

Declaration:
 #define C_PORT "PORT"
Comments: Specify user address/port for data connection (PORT h1,h2,h3,h4,p1,p2)

Source File: include/ftp.h
C_PROT

Declaration:
 #define C_PROT "PROT"
Source File: include/ftp.h

C_PWD

Declaration:
 #define C_PWD "PWD"
Comments: Return current working directory

Source File: include/ftp.h

C_QUIT

Declaration:
 #define C_QUIT "QUIT"
Comments: Close control connection and logout (if no transfer pending)

Source File: include/ftp.h

C_REIN

Declaration:
 #define C_REIN "REIN"
Comments: Reinitialize account information (not supported)

Source File: include/ftp.h

C_REST

Declaration:
 #define C_REST "REST"
Comments: Restart a transfer (REST marker)

Source File: include/ftp.h

C_RETR

Declaration:
 #define C_RETR "RETR"
Comments: Retrieve a file (RETR name)

Source File: include/ftp.h

C_RMD

Declaration:
 #define C_RMD "RMD"
Comments: Remove a directory

Source File: include/ftp.h

C_RNFR

Declaration:
 #define C_RNFR "RNFR"
Comments: Rename from (RNFR filename)

Source File: include/ftp.h

C_RNTO

Declaration:
 #define C_RNTO "RNTO"
Comments: Rename to (RNTO filename)

Source File: include/ftp.h

C_SITE

Declaration:
 #define C_SITE "SITE"
Comments: Site-specific command

Source File: include/ftp.h

C_SIZE

Declaration:
 #define C_SIZE "SIZE"
Comments: Return the number of octets in a file

Source File: include/ftp.h

C_SMNT

Declaration:
 #define C_SMNT "SMNT"
Comments: Mount different file system data structure (not implemented)

Source File: include/ftp.h

C_STAT

Declaration:
 #define C_STAT "STAT"
Comments: Status

Source File: include/ftp.h

C_STOR

Declaration:
 #define C_STOR "STOR"
Comments: Store a file (STOR filename)

Source File: include/ftp.h

C_STOU

Declaration:
 #define C_STOU "STOU"
Comments: Store as unique filename

Source File: include/ftp.h

C_STRU

Declaration:
 #define C_STRU "STRU"
Comments: File structure (not implemented)

Source File: include/ftp.h

C_SYST

Declaration:
 #define C_SYST "SYST"
Comments: Type of OS (Unix Type: L8)

Source File: include/ftp.h

C_TYPE

Declaration:
 #define C_TYPE "TYPE"
Comments: A = ASCII, E = EBCDIC, I = Image, L(byte size) = local byte size

Source File: include/ftp.h

C_USER

Declaration:
 #define C_USER "USER"
Comments: Specify a username

Source File: include/ftp.h

C_XCUP

Declaration:
 #define C_XCUP "XCUP"
Comments: Change CWD up one level

Source File: include/ftp.h

C_XCWD

Declaration:
 #define C_XCWD "XCWD"
Comments: Change working directory

Source File: include/ftp.h

C_XMKD

Declaration:
 #define C_XMKD "XMKD"
Comments: Create a directory

Source File: include/ftp.h

C_XPWD

Declaration:
 #define C_XPWD "XPWD"
Comments: Return current working directory

Source File: include/ftp.h

C_XRMD

Declaration:
 #define C_XRMD "XRMD"
Comments: Remove a directory

Source File: include/ftp.h

DEBUG0

Declaration:
 #define DEBUG0 0
Source File: include/log.h

DEBUG1

Declaration:
 #define DEBUG1 1
Source File: include/log.h

DEBUG2

Declaration:
 #define DEBUG2 2
Source File: include/log.h

DEBUG3

Declaration:
 #define DEBUG3 3
Source File: include/log.h

DEBUG4

Declaration:
 #define DEBUG4 4
Source File: include/log.h

DEBUG5

Declaration:
 #define DEBUG5 5
Source File: include/log.h

DEBUG6

Declaration:
 #define DEBUG6 6
Source File: include/log.h

DEBUG7

Declaration:
 #define DEBUG7 7
Source File: include/log.h

DEBUG8

Declaration:
 #define DEBUG8 8
Source File: include/log.h

DEBUG9

Declaration:
 #define DEBUG9 9
Source File: include/log.h

DECIMAL_STRING_LENGTH

Declaration:
 # define DECIMAL_STRING_LENGTH 512
Source File: lib/vsnprintf.c

DECLINED

Declaration:
 #define DECLINED(cmd) (modret_t *) NULL
Source File: include/modules.h

DO

Declaration:
 #define DO 253
Source File: src/io.c

DONT

Declaration:
 #define DONT 254
Source File: src/io.c

ERROR

Declaration:
 #define ERROR(cmd) mod_create_ret((cmd), 1, NULL, NULL)
Source File: include/modules.h

ERROR_INT

Declaration:
 #define ERROR_INT(cmd, n) mod_create_error((cmd), (n))
Source File: include/modules.h

ERROR_MSG

Declaration:
 #define ERROR_MSG(cmd, n, m) mod_create_ret((cmd), 1, (n), (m))
Source File: include/modules.h

EXTLOG_PATH

Declaration:
 #define EXTLOG_PATH "/var/log/proftpd-log"
Source File: include/default_paths.h

FALSE

Declaration:
 #define FALSE 0
Source File: include/proftpd.h

FSIO_DIR_CHDIR

Declaration:
 #define FSIO_DIR_CHDIR (1 << 1)
Comments: FSIO directory operation - chdir(2)

Source File: include/fsio.h

FSIO_DIR_CHROOT

Declaration:
 #define FSIO_DIR_CHROOT (1 << 0)
Comments: FSIO directory operation - chroot(2)

Source File: include/fsio.h

FSIO_DIR_CLOSEDIR

Declaration:
 #define FSIO_DIR_CLOSEDIR (1 << 3)
Comments: FSIO directory operation - closedir(3)

Source File: include/fsio.h

FSIO_DIR_MKDIR

Declaration:
 #define FSIO_DIR_MKDIR (1 << 5)
Comments: FSIO directory operation - mkdir(2)

Source File: include/fsio.h

FSIO_DIR_OPENDIR

Declaration:
 #define FSIO_DIR_OPENDIR (1 << 2)
Comments: FSIO directory operation - opendir(3)

Source File: include/fsio.h

FSIO_DIR_READDIR

Declaration:
 #define FSIO_DIR_READDIR (1 << 4)
Comments: FSIO directory operation - readdir(3)

Source File: include/fsio.h

FSIO_DIR_RMDIR

Declaration:
 #define FSIO_DIR_RMDIR (1 << 6)
Comments: FSIO directory operation - rmdir(2)

Source File: include/fsio.h

FSIO_FILE_CHMOD

Declaration:
 #define FSIO_FILE_CHMOD (1 << 13)
Comments: FSIO file operation - chmod(2)

Source File: include/fsio.h

FSIO_FILE_CHOWN

Declaration:
 #define FSIO_FILE_CHOWN (1 << 14)
Comments: FSIO file operation - chown(2)

Source File: include/fsio.h

FSIO_FILE_CLOSE

Declaration:
 #define FSIO_FILE_CLOSE (1 << 6)
Comments: FSIO file operation - close(2)

Source File: include/fsio.h

FSIO_FILE_COMMON

Declaration:
 #define FSIO_FILE_COMMON (FSIO_FILE_OPEN|FSIO_FILE_READ|FSIO_FILE_WRITE|FSIO_FILE_CLOSE|FSIO_FILE_CREAT)
Source File: include/fsio.h

FSIO_FILE_CREAT

Declaration:
 #define FSIO_FILE_CREAT (1 << 5)
Comments: FSIO file operation - creat(2)

Source File: include/fsio.h

FSIO_FILE_LINK

Declaration:
 #define FSIO_FILE_LINK (1 << 9)
Comments: FSIO file operation - link(2)

Source File: include/fsio.h

FSIO_FILE_LSTAT

Declaration:
 #define FSIO_FILE_LSTAT (1 << 1)
Comments: FSIO file operation - lstat(2)

Source File: include/fsio.h

FSIO_FILE_OPEN

Declaration:
 #define FSIO_FILE_OPEN (1 << 4)
Comments: FSIO file operation - open(2)

Source File: include/fsio.h

FSIO_FILE_READ

Declaration:
 #define FSIO_FILE_READ (1 << 7)
Comments: FSIO file operation - read(2)

Source File: include/fsio.h

FSIO_FILE_READLINK

Declaration:
 #define FSIO_FILE_READLINK (1 << 11)
Comments: FSIO file operation - readlink(2)

Source File: include/fsio.h

FSIO_FILE_RENAME

Declaration:
 #define FSIO_FILE_RENAME (1 << 2)
Comments: FSIO file operation - rename(2)

Source File: include/fsio.h

FSIO_FILE_STAT

Declaration:
 #define FSIO_FILE_STAT (1 << 0)
Comments: FSIO file operation - stat(2)

Source File: include/fsio.h

FSIO_FILE_SYMLINK

Declaration:
 #define FSIO_FILE_SYMLINK (1 << 10)
Comments: FSIO file operation - symlink(2)

Source File: include/fsio.h

FSIO_FILE_TRUNC

Declaration:
 #define FSIO_FILE_TRUNC (1 << 12)
Comments: FSIO file operation - truncate(2)

Source File: include/fsio.h

FSIO_FILE_UNLINK

Declaration:
 #define FSIO_FILE_UNLINK (1 << 3)
Comments: FSIO file operation - unlink(2)

Source File: include/fsio.h

FSIO_FILE_WRITE

Declaration:
 #define FSIO_FILE_WRITE (1 << 8)
Comments: FSIO file operation - write(2)

Source File: include/fsio.h

FTPUSERS_PATH

Declaration:
 #define FTPUSERS_PATH "/etc/ftpusers"
Source File: include/default_paths.h

GROUP

Declaration:
 #define GROUP grpfname
Comments: Defines an alternate group membership file, in the group(5) format.

Source File: modules/mod_auth_unix.c

G_DIRS

Declaration:
 #define G_DIRS "DIRS"
Comments: "directory" command group: LIST, NLST

Source File: include/ftp.h

G_NONE

Declaration:
 #define G_NONE NULL
Comments: Command group for non-specific commands

Source File: include/ftp.h

G_READ

Declaration:
 #define G_READ "READ"
Comments: "read" command group: RETR, etc

Source File: include/ftp.h

G_WRITE

Declaration:
 #define G_WRITE "WRITE"
Comments: "write" command group: STOR, STOU, etc

Source File: include/ftp.h

HANDLED

Declaration:
 #define HANDLED(cmd) mod_create_ret((cmd), 0, NULL, NULL)
Source File: include/modules.h

HASH_TABLE_SIZE

Declaration:
 #define HASH_TABLE_SIZE 40
Source File: src/modules.c

IAC

Declaration:
 #define IAC 255
Source File: src/io.c

INADDR_ANY

Declaration:
 #define INADDR_ANY ((unsigned long int) 0x00000000)
Source File: include/inet.h

INPORT_ANY

Declaration:
 #define INPORT_ANY 0
Source File: include/inet.h

LARGE

Declaration:
 #define LARGE 64
Source File: lib/vsnprintf.c

LEFT

Declaration:
 #define LEFT 16
Source File: lib/vsnprintf.c

LOGBUFFER_SIZE

Declaration:
 #define LOGBUFFER_SIZE 2048
Source File: src/log.c

LOGBUF_SIZE

Declaration:
 #define LOGBUF_SIZE 1025
Source File: modules/mod_log.c

LOG_AUTHPRIV

Declaration:
 #define LOG_AUTHPRIV LOG_AUTH
Source File: include/log.h

LOG_CMD

Declaration:
 #define LOG_CMD 4
Source File: include/modules.h

LOG_CMD_ERR

Declaration:
 #define LOG_CMD_ERR 5
Source File: include/modules.h

LOG_EXTENDED_MODE

Declaration:
 #define LOG_EXTENDED_MODE 0644
Source File: modules/mod_log.c

LOG_SYMLINK

Declaration:
 #define LOG_SYMLINK -3
Source File: include/log.h

LOG_SYSTEM_MODE

Declaration:
 #define LOG_SYSTEM_MODE 0640
Source File: include/log.h

LOG_WRITEABLE_DIR

Declaration:
 #define LOG_WRITEABLE_DIR -2
Source File: include/log.h

LOG_XFER_MODE

Declaration:
 #define LOG_XFER_MODE 0644
Source File: include/log.h

LOOPBACK_MASK

Declaration:
 #define LOOPBACK_MASK "255.255.255.0"
Source File: include/options.h

LOOPBACK_NET

Declaration:
 #define LOOPBACK_NET "127.0.0.0"
Source File: include/options.h

MAP_GID

Declaration:
 #define MAP_GID(x) (fakegroup ? fakegroup : auth_gid_name(cmd->tmp_pool, (x)))
Source File: modules/mod_ls.c

MAP_UID

Declaration:
 #define MAP_UID(x) (fakeuser ? fakeuser : auth_uid_name(cmd->tmp_pool, (x)))
Source File: modules/mod_ls.c

MAXMEMBERS

Declaration:
 #define MAXMEMBERS 4096
Source File: lib/pwgrent.c

MAX_CLASSES

Declaration:
 #define MAX_CLASSES 100
Source File: src/ftpcount.c

MAX_PATH_LEN

Declaration:
 #define MAX_PATH_LEN 256
Source File: include/proftpd.h

META_ANON_PASS

Declaration:
 #define META_ANON_PASS 17
Source File: modules/mod_log.c

META_ARG

Declaration:
 #define META_ARG 1
Source File: modules/mod_log.c

META_ARG_END

Declaration:
 #define META_ARG_END 0xfe
Source File: modules/mod_log.c

META_BYTES_SENT

Declaration:
 #define META_BYTES_SENT 2
Source File: modules/mod_log.c

META_CLASS

Declaration:
 #define META_CLASS 16
Source File: modules/mod_log.c

META_COMMAND

Declaration:
 #define META_COMMAND 12
Source File: modules/mod_log.c

META_ENV_VAR

Declaration:
 #define META_ENV_VAR 4
Source File: modules/mod_log.c

META_FILENAME

Declaration:
 #define META_FILENAME 3
Source File: modules/mod_log.c

META_IDENT_USER

Declaration:
 #define META_IDENT_USER 7
Source File: modules/mod_log.c

META_LOCAL_FQDN

Declaration:
 #define META_LOCAL_FQDN 15
Source File: modules/mod_log.c

META_LOCAL_IP

Declaration:
 #define META_LOCAL_IP 14
Source File: modules/mod_log.c

META_LOCAL_NAME

Declaration:
 #define META_LOCAL_NAME 12
Source File: modules/mod_log.c

META_LOCAL_PORT

Declaration:
 #define META_LOCAL_PORT 13
Source File: modules/mod_log.c

META_METHOD

Declaration:
 #define META_METHOD 18
Source File: modules/mod_log.c

META_PID

Declaration:
 #define META_PID 9
Source File: modules/mod_log.c

META_REMOTE_HOST

Declaration:
 #define META_REMOTE_HOST 5
Source File: modules/mod_log.c

META_REMOTE_IP

Declaration:
 #define META_REMOTE_IP 6
Source File: modules/mod_log.c

META_RESPONSE_CODE

Declaration:
 #define META_RESPONSE_CODE 15
Source File: modules/mod_log.c

META_SECONDS

Declaration:
 #define META_SECONDS 11
Source File: modules/mod_log.c

META_START

Declaration:
 #define META_START 0xff
Source File: modules/mod_log.c

META_TIME

Declaration:
 #define META_TIME 10
Source File: modules/mod_log.c

META_USER

Declaration:
 #define META_USER 14
Source File: modules/mod_log.c

META_XFER_PATH

Declaration:
 #define META_XFER_PATH 19
Source File: modules/mod_log.c

MODE_STRING

Declaration:
 #define MODE_STRING (session.flags &
         (SF_ASCII|SF_ASCII_OVERRIDE) ? "ASCII" : "BINARY")
Source File: src/data.c

MODRET

Declaration:
 #define MODRET static modret_t*
Source File: include/modules.h

MODRET_ERRMSG

Declaration:
 #define MODRET_ERRMSG(x) ((x) ? (x)->mr_message : NULL)
Source File: include/modules.h

MODRET_ERRNUM

Declaration:
 #define MODRET_ERRNUM(x) ((x) ? (x)->mr_numeric : NULL)
Source File: include/modules.h

MODRET_ERROR

Declaration:
 #define MODRET_ERROR(x) ((x) ? (x)->mr_error : 0)
Source File: include/modules.h

MODRET_HASDATA

Declaration:
 #define MODRET_HASDATA(x) ((x) ? ((x)->data ? TRUE : FALSE) : FALSE)
Source File: include/modules.h

MODRET_HASMSG

Declaration:
 #define MODRET_HASMSG(x) ((x) && (x)->mr_message)
Source File: include/modules.h

MODRET_HASNUM

Declaration:
 #define MODRET_HASNUM(x) ((x) && (x)->mr_numeric)
Source File: include/modules.h

MODRET_ISDECLINED

Declaration:
 #define MODRET_ISDECLINED(x) ((x) == NULL)
Source File: include/modules.h

MODRET_ISERROR

Declaration:
 #define MODRET_ISERROR(x) ((x) && (x)->mr_error)
Source File: include/modules.h

MODRET_ISHANDLED

Declaration:
 #define MODRET_ISHANDLED(x) ((x) && !(x)->mr_error)
Source File: include/modules.h

NAME_MAX_GUESS

Declaration:
 # define NAME_MAX_GUESS (255)
Source File: include/support.h

NEED_PERSISTENT_PASSWD

Declaration:
 # define NEED_PERSISTENT_PASSWD
Source File: include/options.h

NGRPFIELDS

Declaration:
 #define NGRPFIELDS 4
Source File: lib/pwgrent.c

NPWDFIELDS

Declaration:
 #define NPWDFIELDS 7
Source File: lib/pwgrent.c

OP_COMMAND

Declaration:
 #define OP_COMMAND 2
Comments: Command operation

Source File: include/dirtree.h

OP_HIDE

Declaration:
 #define OP_HIDE 1
Comments: Op for hiding dirs/files

Source File: include/dirtree.h

ORDER_ALLOWDENY

Declaration:
 #define ORDER_ALLOWDENY 0
Source File: include/dirtree.h

ORDER_DENYALLOW

Declaration:
 #define ORDER_DENYALLOW 1
Source File: include/dirtree.h

PASSWD

Declaration:
 #define PASSWD pwdfname
Comments: Defines an alternate user/account file, in the passwd(5) format.

Source File: modules/mod_auth_unix.c

PERSISTENT_GROUP

Declaration:
 #define PERSISTENT_GROUP (persistent || persistent_group)
Source File: modules/mod_auth_unix.c

PERSISTENT_PASSWD

Declaration:
 #define PERSISTENT_PASSWD (persistent || persistent_passwd)
Source File: modules/mod_auth_unix.c

PLUS

Declaration:
 #define PLUS 4
Source File: lib/vsnprintf.c

POOL

Declaration:
 #define POOL(x) ((x) ? (x) : permanent_pool)
Source File: src/sets.c

POOL_HDR_BYTES

Declaration:
 #define POOL_HDR_BYTES (POOL_HDR_CLICKS * CLICK_SZ)
Source File: src/pool.c

POOL_HDR_CLICKS

Declaration:
 #define POOL_HDR_CLICKS (1 + ((sizeof(struct pool) - 1) / CLICK_SZ))
Source File: src/pool.c

POST_CMD

Declaration:
 #define POST_CMD 3
Source File: include/modules.h

POST_CMD_ERR

Declaration:
 #define POST_CMD_ERR 4
Source File: include/modules.h<
PRE_CMD

Declaration:
 #define PRE_CMD 1
Source File: include/modules.h

PRIVS_RELINQUISH

Declaration:
 #define PRIVS_RELINQUISH { log_debug(DEBUG4,"NONROOT %s %d", \
           __FILE__, __LINE__); \
           if(!session.disable_id_switching) { \
             if (geteuid()!=0) { \
               setreuid(session.uid,0); } \
             setreuid(session.uid,session.uid); } \
         }
Source File: include/privs.h

PRIVS_REVOKE

Declaration:
 #define PRIVS_REVOKE { setreuid(0,0); setgid(session.gid); \
         setuid(session.uid); }
Source File: include/privs.h

PRIVS_ROOT

Declaration:
 #define PRIVS_ROOT { log_debug(DEBUG4,"ROOT %s %d", \
           __FILE__, __LINE__); \
           if (!session.disable_id_switching) { \
             setreuid(session.uid,0); } \
         }
Source File: include/privs.h

PRIVS_SETUP

Declaration:
 #define PRIVS_SETUP(u,g) { if(getuid()) { \
           session.ouid = session.uid = (int)getuid(); \
           session.gid = (int)getgid(); \
           setgid(session.gid); \
           setreuid(session.uid,session.uid); \
         } else {  \
           session.ouid = (int)getuid(); \
           session.uid = (u); session.gid = (g); \
           setgid(session.gid); \
           setreuid(0,session.uid); \
         } }
Source File: include/privs.h

PRIVS_USER

Declaration:
 #define PRIVS_USER { log_debug(DEBUG4,"USER %d %s %d", \
           session.login_uid,__FILE__, __LINE__); \
           if (!session.disable_id_switching) { \
             setreuid(session.uid,0); \
             setreuid(session.uid,session.login_uid); } \
         }
Source File: include/privs.h

PROFTPD_VERSION_NUMBER

Declaration:
 #define PROFTPD_VERSION_NUMBER
Source File: include/version.h

PROFTPD_VERSION_TEXT

Declaration:
 #define PROFTPD_VERSION_TEXT
Source File: include/version.h

PR_AUTH_AGEPWD

Declaration:
 #define PR_AUTH_AGEPWD -3
Comments: Possible return value from an authentication module's auth handler indicating that the user's password has expired.

Source File: include/modules.h

PR_AUTH_BADPWD

Declaration:
 #define PR_AUTH_BADPWD -2
Comments: Possible return value from an authentication module's auth handler indicating that the given password is incorrect.

Source File: include/modules.h

PR_AUTH_DISABLEPWD

Declaration:
 #define PR_AUTH_DISABLEDPWD -4
Comments: Possible return value from an authentication module's auth handler indicating that the user's account has been disabled.

Source File: include/modules.h

PR_AUTH_NOPWD

Declaration:
 #define PR_AUTH_NOPWD -1
Comments: Possible return value from an authentication module's auth handler indicating that the user has no account on the system.

Source File: include/modules.h

PR_BYTES_BAD_FORMAT

Declaration:
  #define PR_BYTES_BAD_FORMAT	-2
Source File: modules/mod_core.c.

PR_BYTES_BAD_UNITS

Declaration:
  #define PR_BYTES_BAD_UNITS	-1
Source File: modules/mod_core.c

PR_LOG_ALERT

Declaration:
 #define PR_LOG_ALERT 1
Comments: Action must be taken immediately

Source File: include/log.h

PR_LOG_CRIT

Declaration:
 #define PR_LOG_CRIT 2
Comments: Critical conditions

Source File: include/log.h

PR_LOG_DEBUG

Declaration:
 #define PR_LOG_DEBUG LOG_DEBUG
Comments: Debug-level messages

Source File: include/log.h

PR_LOG_EMERG

Declaration:
 #define PR_LOG_EMERG 0
Comments: System is unusable

Source File: include/log.h

PR_LOG_ERR

Declaration:
 #define PR_LOG_ERR 3
Comments: Error conditions

Source File: include/log.h

PR_LOG_INFO

Declaration:
 #define PR_LOG_INFO 6
Comments: Informational conditions

Source File: include/log.h

PR_LOG_NOTICE

Declaration:
 #define PR_LOG_NOTICE 5
Comments: Normal but significant conditions

Source File: include/log.h

PR_LOG_PRIMASK

Declaration:
 #define PR_LOG_PRIMASK LOG_PRIMASK
Comments: Mask off the level value

Source File: include/pr-syslog.h

PR_LOG_WARNING

Declaration:
 #define PR_LOG_WARNING 4
Comments: Warning conditions

Source File: include/log.h

PR_NETIO_IO_RD

Declaration:
 #define PR_NETIO_IO_RD 0
Source File: include/netio.h

PR_NETIO_IO_WR

Declaration:
 #define PR_NETIO_IO_WR 1
Source File: include/netio.h

PR_NETIO_SESS_ABORT

Declaration:
 #define PR_NETIO_SESS_ABORT (1 << 3)
Comments: Temporary internal flag used to indicate that I/O on a pr_netio_stream_t has been aborted and should return -2 at the next possible instant. In combination with PR_NETIO_SESS_INTR and interruptible syscalls, this should be near instantly. This flag cannot be tested for as it is cleared immediately after being detected.

Source File: include/netio.h

PR_NETIO_SESS_INTR

Declaration:
 #define PR_NETIO_SESS_INTR (1 << 1)
Comments: Indicates that pr_netio_* functions are allowed to be interrupted by EINTR, and return -2.

Source File: include/netio.h

PR_TUNABLE_BUFFER_SIZE

Declaration:
   #define PR_TUNABLE_BUFFER_SIZE       1024
Source File:
include/options.h

PR_TUNABLE_DEFAULT_BACKLOG

Declaration:
 #define PR_TUNABLE_DEFAULT_BACKLOG 5
Source File: include/options.h

PR_TUNABLE_DEFAULT_RWIN

Declaration:
 #define PR_TUNABLE_DEFAULT_RWIN 8192
Source File: include/options.h

PR_TUNABLE_DEFAULT_SWIN

Declaration:
 #define PR_TUNABLE_DEFAULT_SWIN 8192
Source File: include/options.h

PR_TUNABLE_NEW_POOL_SIZE

Declaration:
 #define PR_TUNABLE_NEW_POOL_SIZE 512
Source File: include/options.h

PR_TUNABLE_TIMEOUTIDENT

Declaration:
 #define PR_TUNABLE_TIMEOUTIDENT 10
Source File: include/options.h

PR_TUNABLE_TIMEOUTIDLE

Declaration:
 #define PR_TUNABLE_TIMEOUTIDLE 600
Source File: include/options.h

PR_TUNABLE_TIMEOUTLOGIN

Declaration:
 #define PR_TUNABLE_TIMEOUTLOGIN 300
Source File: include/options.h

PR_TUNABLE_TIMEOUTNOXFER

Declaration:
 #define PR_TUNABLE_TIMEOUTNOXFER 300
Source File: include/options.h

PR_TUNABLE_TIMEOUTSTALLED

Declaration:
 #define PR_TUNABLE_TIMEOUTSTALLED 3600
Source File: include/options.h

R_110

Declaration:
 #define R_110 "110"
Comments: Restart marker replay (MARK yyyy = mmmm)

Source File: include/ftp.h

R_120

Declaration:
 #define R_120 "120"
Comments: Service ready in nnn minutes

Source File: include/ftp.h

R_125

Declaration:
 #define R_125 "125"
Comments: Data connection already open; starting

Source File: include/ftp.h

R_150

Declaration:
 #define R_150 "150"
Comments: File status OK; opening data connection

Source File: include/ftp.h

R_200

Declaration:
 #define R_200 "200"
Comments: Generic command OK

Source File: include/ftp.h

R_202

Declaration:
 #define R_202 "202"
Comments: Command not implemented, superfluous at this site

Source File: include/ftp.h

R_211

Declaration:
 #define R_211 "211"
Comments: System status or system help reply

Source File: include/ftp.h

R_212

Declaration:
 #define R_212 "212"
Comments: Directory status

Source File: include/ftp.h

R_213

Declaration:
 #define R_213 "213"
Comments: File status

Source File: include/ftp.h

R_214

Declaration:
 #define R_214 "214"
Comments: Help message (how to use server or non-standard command)

Source File: include/ftp.h

R_215

Declaration:
 #define R_215 "215"
Comments: name system type, where name is the official system name

Source File: include/ftp.h

R_220

Declaration:
 #define R_220 "220"
Comments: Service ready for new user

Source File: include/ftp.h

R_221

Declaration:
 #define R_221 "221"
Comments: Service closing control connection, as per normal

Source File: include/ftp.h

R_225

Declaration:
 #define R_225 "225"
Comments: Data connection open; no transfer in progress

Source File: include/ftp.h

R_226

Declaration:
 #define R_226 "226"
Comments: Closing data connection; file transfer/abort successful

Source File: include/ftp.h

R_227

Declaration:
 #define R_227 "227"
Comments: Entering passive mode (h1,h2,h3,h4,p1,p2)

Source File: include/ftp.h

R_230

Declaration:
 #define R_230 "230"
Comments: User logged in, proceed

Source File: include/ftp.h

R_232

Declaration:
 #define R_232 "232"
Comments: User logged in, authorized by security data

Source File: include/ftp.h

R_234

Declaration:
 #define R_234 "234"
Comments: Security data exchange complete

Source File: include/ftp.h

R_235

Declaration:
 #define R_235 "235"
Comments: Security exchange successful

Source File: include/ftp.h

R_250

Declaration:
 #define R_250 "250"
Comments: Requested file action OK, completed

Source File: include/ftp.h

R_257

Declaration:
 #define R_257 "257"
Comments: pathname created

Source File: include/ftp.h

R_331

Declaration:
 #define R_331 "331"
Comments: User name OK, need password

Source File: include/ftp.h

R_332

Declaration:
 #define R_332 "332"
Comments: Need account for login

Source File: include/ftp.h

R_334

Declaration:
 #define R_334 "334"
Comments: Security data required

Source File: include/ftp.h

R_335

Declaration:
 #define R_335 "335"
Comments: Additional security data required

Source File: include/ftp.h

R_336

Declaration:
 #define R_336 "336"
Comments: Username OK, need password; presenting challenge

Source File: include/ftp.h

R_350

Declaration:
 #define R_350 "350"
Comments: Requested file action pending further information

Source File: include/ftp.h

R_421

Declaration:
 #define R_421 "421"
Comments: Service not available, closing control connection; service is about to be shutdown

Source File: include/ftp.h

R_425

Declaration:
 #define R_425 "425"
Comments: Unable to open data connection

Source File: include/ftp.h

R_426

Declaration:
 #define R_426 "426"
Comments: Connection closed; transfer aborted

Source File: include/ftp.h

R_431

Declaration:
 #define R_431 "431"
Comments: Necessary security resource is unavailable

Source File: include/ftp.h

R_450

Declaration:
 #define R_450 "450"
Comments: Requested file action not taken (file unavailable; busy)

Source File: include/ftp.h

R_451

Declaration:
 #define R_451 "451"
Comments: Requested action aborted; local error in processing

Source File: include/ftp.h

R_452

Declaration:
 #define R_452 "452"
Comments: Requested action not taken; insufficient storage space

Source File: include/ftp.h

R_500

Declaration:
 #define R_500 "500"
Comments: Syntax error, command unrecognized

Source File: include/ftp.h

R_501

Declaration:
 #define R_501 "501"
Comments: Syntax error in parameters or arguments

Source File: include/ftp.h

R_502

Declaration:
 #define R_502 "502"
Comments: Command not implemented

Source File: include/ftp.h

R_503

Declaration:
 #define R_503 "503"
Comments: Bad sequence of commands

Source File: include/ftp.h

R_504

Declaration:
 #define R_504 "504"
Comments: Command not implemented for that parameter

Source File: include/ftp.h

R_530

Declaration:
 #define R_530 "530"
Comments: Not logged in

Source File: include/ftp.h

R_532

Declaration:
 #define R_532 "532"
Comments: Need account for storing files

Source File: include/ftp.h

R_533

Declaration:
 #define R_533 "533"
Comments: Integrity protected command required by policy

Source File: include/ftp.h

R_534

Declaration:
 #define R_534 "534"
Comments: Unwilling to accept security arguments

Source File: include/ftp.h

R_535

Declaration:
 #define R_535 "535"
Comments: Data failed security check

Source File: include/ftp.h

R_536

Declaration:
 #define R_536 "536"
Comments: Unsupported data channel protection level

Source File: include/ftp.h

R_537

Declaration:
 #define R_537 "537"
Comments: Unsupported command protection by security mechanism

Source File: include/ftp.h

R_550

Declaration:
 #define R_550 "550"
Comments: Requested action not taken; no access, etc

Source File: include/ftp.h

R_551

Declaration:
 #define R_551 "551"
Comments: Requested action not taken; page type unknown

Source File: include/ftp.h

R_552

Declaration:
 #define R_552 "552"
Comments: Requested file action aborted; exceeding storage allocation

Source File: include/ftp.h

R_553

Declaration:
 #define R_553 "553"
Comments: Requested action not taken; filename not allowed

Source File: include/ftp.h

R_554

Declaration:
 #define R_554 "554"
Comments: Requested action not taken, invalid REST parameter (rfc1123)

Source File: include/ftp.h

R_631

Declaration:
 #define R_631 "631"
Comments: Integrity protected response (RFC 2228)

Source File: include/ftp.h

R_632

Declaration:
 #define R_632 "632"
Comments: Privacy protected response (RFC 2228)

Source File: include/ftp.h

R_633

Declaration:
 #define R_633 "633"
Comments: Confidentiality protected response (RFC 2228)

Source File: include/ftp.h

R_DUP

Declaration:
 #define R_DUP NULL
Comments: Duplicate last numeric in multiline response

Source File: include/ftp.h

SERVER_INETD

Declaration:
 #define SERVER_INETD 0
Source File: include/proftpd.h

SERVER_STANDALONE

Declaration:
 #define SERVER_STANDALONE 1
Source File: include/proftpd.h

SF_ABORT

Declaration:
 #define SF_ABORT (1 << 1)
Comments: Session flag: abort in progress

Source File: include/proftpd.h

SF_ALL

Declaration:
 #define SF_ALL (SF_PASSIVE|SF_ABORT|SF_XFER|SF_ASCII| \
           SF_ASCII_OVERRIDE|SF_ANON|SF_POST_ABORT|SF_PORT)
Source File: include/proftpd.h

SF_ANON

Declaration:
 #define SF_ANON (1 << 5)
Comments: Session flag: anonymous (chroot) login

Source File: include/proftpd.h

SF_ASCII

Declaration:
 #define SF_ASCII (1 << 3)
Comments: Session flag: ASCII mode transfer

Source File: include/proftpd.h

SF_ASCII_OVERRIDE

Declaration:
 #define SF_ASCII_OVERRIDE (1 << 4)
Comments: Session flag: ASCII override this transfer only

Source File: include/proftpd.h

SF_PASSIVE

Declaration:
 #define SF_PASSIVE (1 << 0)
Comments: Session flag: data connection is in passive mode

Source File: include/proftpd.h

SF_PORT

Declaration:
 #define SF_PORT (1 << 7)
Comments: Session flag: PORT command given

Source File: include/proftpd.h

SF_POST_ABORT

Declaration:
 #define SF_POST_ABORT (1 << 6)
Comments: Session flag: after abort has occurred

Source File: include/proftpd.h

SF_XFER

Declaration:
 #define SF_XFER (1 << 2)
Comments: Session flag: transfer in progress

Source File: include/proftpd.h

SHUTMSG_PATH

Declaration:
 #define SHUTMSG_PATH "/etc/shutmsg"
Source File: include/default_paths.h

SP_CCC

Declaration:
  #define SP_CCC (1 << 0)
Comments: Session/Protection flag: Clear command channel
Source File: include/proftpd.h

SP_CONF

Declaration:
  #define SP_CONF (1 << 3)
Comments: Session/Protection flag: Confidentiality protected command
Source File: include/proftpd.h

SP_CVT_DAYS

Declaration:
 #define SP_CVT_DAYS(x) ((x) == (time_t)-1 ? (x) : ((x) * 86400))
Source File: modules/mod_auth_unix.c

SP_ENC

Declaration:
  #define SP_ENC (1 << 1)
Comments: Session/Protection flag: Privacy protected command
Source File: include/proftpd.h

SP_MIC

Declaration:
  #define SP_MIC (1 << 2)
Comments: Session/Protection flag: Integrity protected command
Source File: include/proftpd.h

STOR_APPEND

Declaration:
 #define STOR_APPEND 1
Source File: include/proftpd.h

STOR_DEFAULT

Declaration:
 #define STOR_DEFAULT 0
Source File: include/proftpd.h

STOR_HIDDEN

Declaration:
 #define STOR_HIDDEN 2
Source File: include/proftpd.h

TIMER_IDLE

Declaration:
 #define TIMER_IDLE 2
Source File: include/proftpd.h

TIMER_LOGIN

Declaration:
 #define TIMER_LOGIN 1
Source File: include/proftpd.h

TIMER_NOXFER

Declaration:
 #define TIMER_NOXFER 3
Source File: include/proftpd.h

TIMER_STALLED

Declaration:
 #define TIMER_STALLED 4
Source File: include/proftpd.h

TOPLEVEL_CONF

Declaration:
 #define TOPLEVEL_CONF (session.anon_config ?
           session.anon_config->subset : main_server->conf)
Source File: include/dirtree.h

TRUE

Declaration:
 #define TRUE 1
Source File: include/proftpd.h

U32BITS

Declaration:
 #define U32BITS 0xffffffff
Source File: include/inet.h

VALID_SHELL_PATH

Declaration:
 #define VALID_SHELL_PATH "/etc/shells"
Comments: Defines the path of a file listing valid shells for user accounts. This file must be in shells(5) format.

Source File: include/default_paths.h

WILL

Declaration:
 #define WILL 251
Source File: src/io.c

WONT

Declaration:
 #define WONT 252
Source File: src/io.c

WTMP_FILE

Declaration:
 #define WTMP_FILE _PATH_WTMP
Source File: include/log.h

XFERLOG_PATH

Declaration:
 #define XFERLOG_PATH "/var/log/xferlog"
Source File: include/default_paths.h

XFER_ABORTED

Declaration:
 #define XFER_ABORTED (session.flags & SF_ABORT)
Source File: include/proftpd.h


Author: $Author: castaglia $
Last Updated: $Date: 2003/04/25 18:35:16 $


© Copyright 2000-2003 TJ Saunders
All Rights Reserved