Apache2
apr_arch_os2calls.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "apr_errno.h"
18 #include <sys/types.h>
19 #include <sys/socket.h>
20 
21 extern int (*apr_os2_socket)(int, int, int);
22 extern int (*apr_os2_select)(int *, int, int, int, long);
23 extern int (*apr_os2_sock_errno)();
24 extern int (*apr_os2_accept)(int, struct sockaddr *, int *);
25 extern int (*apr_os2_bind)(int, struct sockaddr *, int);
26 extern int (*apr_os2_connect)(int, struct sockaddr *, int);
27 extern int (*apr_os2_getpeername)(int, struct sockaddr *, int *);
28 extern int (*apr_os2_getsockname)(int, struct sockaddr *, int *);
29 extern int (*apr_os2_getsockopt)(int, int, int, char *, int *);
30 extern int (*apr_os2_ioctl)(int, int, caddr_t, int);
31 extern int (*apr_os2_listen)(int, int);
32 extern int (*apr_os2_recv)(int, char *, int, int);
33 extern int (*apr_os2_send)(int, const char *, int, int);
34 extern int (*apr_os2_setsockopt)(int, int, int, char *, int);
35 extern int (*apr_os2_shutdown)(int, int);
36 extern int (*apr_os2_soclose)(int);
37 extern int (*apr_os2_writev)(int, struct iovec *, int);
38 extern int (*apr_os2_sendto)(int, const char *, int, int, const struct sockaddr *, int);
39 extern int (*apr_os2_recvfrom)(int, char *, int, int, struct sockaddr *, int *);
40 
41 #define socket apr_os2_socket
42 #define select apr_os2_select
43 #define sock_errno apr_os2_sock_errno
44 #define accept apr_os2_accept
45 #define bind apr_os2_bind
46 #define connect apr_os2_connect
47 #define getpeername apr_os2_getpeername
48 #define getsockname apr_os2_getsockname
49 #define getsockopt apr_os2_getsockopt
50 #define ioctl apr_os2_ioctl
51 #define listen apr_os2_listen
52 #define recv apr_os2_recv
53 #define send apr_os2_send
54 #define setsockopt apr_os2_setsockopt
55 #define shutdown apr_os2_shutdown
56 #define soclose apr_os2_soclose
57 #define writev apr_os2_writev
58 #define sendto apr_os2_sendto
59 #define recvfrom apr_os2_recvfrom
int(* apr_os2_setsockopt)(int, int, int, char *, int)
int(* apr_os2_connect)(int, struct sockaddr *, int)
int(* apr_os2_getsockname)(int, struct sockaddr *, int *)
int(* apr_os2_socket)(int, int, int)
int(* apr_os2_bind)(int, struct sockaddr *, int)
int(* apr_os2_sock_errno)()
int(* apr_os2_sendto)(int, const char *, int, int, const struct sockaddr *, int)
int(* apr_os2_recvfrom)(int, char *, int, int, struct sockaddr *, int *)
int(* apr_os2_send)(int, const char *, int, int)
int(* apr_os2_ioctl)(int, int, caddr_t, int)
int(* apr_os2_accept)(int, struct sockaddr *, int *)
int(* apr_os2_getpeername)(int, struct sockaddr *, int *)
int(* apr_os2_getsockopt)(int, int, int, char *, int *)
int(* apr_os2_listen)(int, int)
int(* apr_os2_soclose)(int)
int(* apr_os2_shutdown)(int, int)
int(* apr_os2_writev)(int, struct iovec *, int)
int(* apr_os2_recv)(int, char *, int, int)
int(* apr_os2_select)(int *, int, int, int, long)
APR Error Codes.
int
Definition: mod_proxy.h:674