/usr/src/redhat/BUILD/httpd-2.2.3/os/tpf/os.h

説明を見る。
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00028 #ifndef APACHE_OS_H
00029 #define APACHE_OS_H
00030 
00031 #define PLATFORM "TPF"
00032 
00033 #ifdef errno
00034 #undef errno
00035 #endif
00036 
00037 #include "apr.h"
00038 #include "ap_config.h"
00039 #include <strings.h>
00040 #ifndef __strings_h
00041 
00042 #define FD_SETSIZE    2048 
00043  
00044 typedef long fd_mask;
00045 
00046 #define NBBY    8    /* number of bits in a byte */
00047 #define NFDBITS (sizeof(fd_mask) * NBBY)
00048 #define  howmany(x, y)  (((x)+((y)-1))/(y))
00049 
00050 typedef struct fd_set { 
00051         fd_mask fds_bits [howmany(FD_SETSIZE, NFDBITS)];
00052 } fd_set; 
00053 
00054 #define FD_CLR(n, p)((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
00055 #define FD_ISSET(n, p)((p)->fds_bits[(n)/NFDBITS] & (1 <<((n) % NFDBITS)))
00056 #define  FD_ZERO(p)   memset((char *)(p), 0, sizeof(*(p)))
00057 #endif
00058     
00059 #ifdef FD_SET
00060 #undef FD_SET
00061 #define FD_SET(n, p) (0)
00062 #endif
00063 
00064 #include <i$netd.h>
00065 struct apache_input {
00066     INETD_SERVER_INPUT  inetd_server;
00067     void                *scoreboard_heap;   /* scoreboard system heap address */
00068     int                 scoreboard_fd;      /* scoreboard file descriptor */
00069     int                 slot;               /* child number */
00070     int                 generation;         /* server generation number */
00071     int                 listeners[10];
00072     time_t              restart_time;
00073 };
00074 
00075 typedef struct apache_input APACHE_TPF_INPUT;
00076 
00077 extern int tpf_child;
00078 
00079 struct server_rec;
00080 pid_t os_fork(struct server_rec *s, int slot);
00081 int os_check_server(char *server);
00082 
00083 extern char *ap_server_argv0;
00084 extern int scoreboard_fd;
00085 #include <signal.h>
00086 #ifndef SIGPIPE
00087 #define SIGPIPE 14
00088 #endif
00089 #ifdef NSIG
00090 #undef NSIG
00091 #endif
00092 #endif 

Apacheに対してSun Jul 19 22:05:23 2009に生成されました。  doxygen 1.4.7