httpd.h
上传用户:lampled
上传日期:2007-01-07
资源大小:94k
文件大小:1k
源码类别:

Web服务器

开发平台:

Unix_Linux

  1. /* Copyright (C) 1995, 1996 by Sven Berkvens (sven@stack.nl) */
  2. #define SERVER_IDENT "xs-httpd/2.3"
  3. #define SENDBUFSIZE 8192
  4. #define MYBUFSIZ 1024
  5. #define ERR_NONE 0
  6. #define ERR_CONT 1
  7. #define ERR_QUIT 2
  8. #define MINBYTESPERSEC 32
  9. #ifndef  S_ISREG
  10. #define S_ISREG(m)      (((m)&(S_IFMT)) == (S_IFREG))
  11. #endif
  12. extern char remotehost[], orig[], dateformat[], rootdir[], currenttime[],
  13. version[], netbuf[], thishostname[], real_path[], total[],
  14. name[];
  15. extern FILE *access_log, *refer_log;
  16. extern time_t modtime;
  17. extern int port, headers, localmode, netbufind, netbufsiz, readlinemode,
  18. headonly, postonly;
  19. extern gid_t group_id, origegid;
  20. extern uid_t user_id, origeuid;
  21. #ifndef NOFORWARDS
  22. extern VOID stdheaders PROTO((int, int, int));
  23. extern VOID alarm_handler PROTO((int));
  24. extern VOID error PROTO((const char *));
  25. extern VOID redirect PROTO((const char *, int));
  26. extern int readline PROTO((int, char *));
  27. extern VOID server_error PROTO((const char *, const char *));
  28. extern VOID error PROTO((const char *));
  29. extern char *escape PROTO((const char *));
  30. extern int check_auth PROTO((FILE *));
  31. extern VOID setcurrenttime PROTO((void));
  32. #endif /* NOFORWARDS */