#include <stdio.h>
#include <fcntl.h>
#include <ctype.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <dirent.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define DEBUG
#ifndef DEBUG
#define DEB(xxx) {}
#define MAXAGENTS 5
#else
#define DEB(xxx) {printf("--- %s\n",xxx);fflush(stdout);}
#define MAXAGENTS 1
#endif
#define EMAILINFO "xxxss@msn.com"
#define PREPOSITIVE '1'
#define POSITIVE '2'
#define PROCEED '3'
#define PRENEGATIVE '4'
#define NEGATIVE '5'
#define SUCCESS "226 "
#define PWD "257 "
#define SIZEOFINETADDR 4
#define TIMEOUT 40
#define MINLENGTHOFSEARCH 3
#define S_PREOK 1
#define S_OK 0 // 这个宏在collect.c中多次用到,表示连接状态吗?
#define S_ERROR -1
#define S_CLOSED -2
#define S_ERROR_INFIMA -3 /* A fix to the Major BBS's RFC 959 LIST violation */
#define PARKER_NICE 20
#define CGIALARM 600
#define FTPPORT 21
#define MODE 0644
#define TIMEOUT 1200
#define CR 13
#define LF 10
#define LZOCOMP "lzo_comp"
#define MV "mv"
#define GUNZIP "gunzip"
#define ANONYMOUS "anonymous"
#define ANONYPASS "my@my.com"