~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/net/khttpd/prototypes.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _INCLUDE_GUARD_PROTOTYPES_H
  2 #define _INCLUDE_GUARD_PROTOTYPES_H
  3 
  4 
  5 #include <linux/config.h>
  6 #include <linux/kernel.h>
  7 #include <linux/net.h>
  8 #include <linux/time.h>
  9 #include <linux/types.h>
 10 #include <linux/wait.h>
 11 #include <net/sock.h>
 12 #include <asm/uaccess.h>
 13 
 14 #include "structure.h"
 15 
 16 
 17 /* General defines and stuff */
 18 
 19 
 20 #define CONFIG_KHTTPD_NUMCPU 16    /* Maximum number of threads */
 21 
 22 /* the TCP/IP stack defines a __BROKEN__ set of min/max functions !! */
 23 /* So we better define our own.                                      */
 24 
 25 /* Broken means: working on unsigned data only, which is not acceptable
 26                  for kHTTPd and probably a lot of other functions. */
 27 
 28 #undef min
 29 #undef max
 30 #define min(a,b)  ( (a) < (b) ? (a) : (b) )
 31 #define max(a,b)  ( (a) > (b) ? (a) : (b) )
 32 
 33 #ifdef OOPSTRACE
 34 #define EnterFunction(x)   printk("Enter: %s, %s line %i\n",x,__FILE__,__LINE__)
 35 #define LeaveFunction(x)   printk("Leave: %s, %s line %i\n",x,__FILE__,__LINE__)
 36 #else
 37 #define EnterFunction(x)   do {} while (0)
 38 #define LeaveFunction(x)   do {} while (0)
 39 #endif
 40 
 41 
 42 
 43 /* sockets.c */
 44 int  StartListening(const int Port);
 45 void StopListening(void);
 46 
 47 extern struct socket *MainSocket;
 48 
 49 
 50 /* sysctl.c */
 51 void StartSysctl(void);
 52 void EndSysctl(void);
 53 
 54 extern int sysctl_khttpd_stop;
 55 
 56 
 57 /* main.c */
 58 
 59 
 60 extern struct khttpd_threadinfo threadinfo[CONFIG_KHTTPD_NUMCPU];
 61 extern char CurrentTime[];
 62 extern atomic_t ConnectCount;
 63 extern struct wait_queue main_wait[CONFIG_KHTTPD_NUMCPU];
 64 
 65 /* misc.c */
 66 
 67 void CleanUpRequest(struct http_request *Req);
 68 int SendBuffer(struct socket *sock, const char *Buffer,const size_t Length);
 69 int SendBuffer_async(struct socket *sock, const char *Buffer,const size_t Length);
 70 void Send403(struct socket *sock);
 71 void Send304(struct socket *sock);
 72 void Send50x(struct socket *sock);
 73 
 74 /* accept.c */
 75 
 76 int AcceptConnections(const int CPUNR,struct socket *Socket);
 77 
 78 /* waitheaders.c */
 79 
 80 int WaitForHeaders(const int CPUNR);
 81 void StopWaitingForHeaders(const int CPUNR);
 82 int InitWaitHeaders(int ThreadCount);
 83 
 84 /* datasending.c */
 85 
 86 int DataSending(const int CPUNR);
 87 void StopDataSending(const int CPUNR);
 88 int InitDataSending(int ThreadCount);
 89 
 90 
 91 /* userspace.c */
 92 
 93 int Userspace(const int CPUNR);
 94 void StopUserspace(const int CPUNR);
 95 void InitUserspace(const int CPUNR);
 96 
 97 
 98 /* rfc_time.c */
 99 
100 void time_Unix2RFC(const time_t Zulu,char *Buffer);
101 void UpdateCurrentDate(void);
102 time_t mimeTime_to_UnixTime(char *Q);
103 extern int CurrentTime_i;
104 
105 /* rfc.c */
106 
107 void ParseHeader(char *Buffer,const int length, struct http_request *Head);
108 char *ResolveMimeType(const char *File,__kernel_size_t *Len);
109 void AddMimeType(const char *Ident,const char *Type);
110 void SendHTTPHeader(struct http_request *Request);
111 
112 
113 
114 /* security.c */
115 
116 struct file *OpenFileForSecurity(char *Filename);
117 void AddDynamicString(const char *String);
118 void GetSecureString(char *String);
119 
120 
121 /* logging.c */
122 
123 int Logging(const int CPUNR);
124 void StopLogging(const int CPUNR);
125 
126 
127 /* Other prototypes */
128 
129 
130 
131 #endif
132 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.