GME  13
apr_arch_os2calls.h
Go to the documentation of this file.
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 
00017 #include "apr_errno.h"
00018 #include <sys/types.h>
00019 #include <sys/socket.h>
00020 
00021 extern int (*apr_os2_socket)(int, int, int);
00022 extern int (*apr_os2_select)(int *, int, int, int, long);
00023 extern int (*apr_os2_sock_errno)();
00024 extern int (*apr_os2_accept)(int, struct sockaddr *, int *);
00025 extern int (*apr_os2_bind)(int, struct sockaddr *, int);
00026 extern int (*apr_os2_connect)(int, struct sockaddr *, int);
00027 extern int (*apr_os2_getpeername)(int, struct sockaddr *, int *);
00028 extern int (*apr_os2_getsockname)(int, struct sockaddr *, int *);
00029 extern int (*apr_os2_getsockopt)(int, int, int, char *, int *);
00030 extern int (*apr_os2_ioctl)(int, int, caddr_t, int);
00031 extern int (*apr_os2_listen)(int, int);
00032 extern int (*apr_os2_recv)(int, char *, int, int);
00033 extern int (*apr_os2_send)(int, const char *, int, int);
00034 extern int (*apr_os2_setsockopt)(int, int, int, char *, int);
00035 extern int (*apr_os2_shutdown)(int, int);
00036 extern int (*apr_os2_soclose)(int);
00037 extern int (*apr_os2_writev)(int, struct iovec *, int);
00038 extern int (*apr_os2_sendto)(int, const char *, int, int, const struct sockaddr *, int);
00039 extern int (*apr_os2_recvfrom)(int, char *, int, int, struct sockaddr *, int *);
00040 
00041 #define socket apr_os2_socket
00042 #define select apr_os2_select
00043 #define sock_errno apr_os2_sock_errno
00044 #define accept apr_os2_accept
00045 #define bind apr_os2_bind
00046 #define connect apr_os2_connect
00047 #define getpeername apr_os2_getpeername
00048 #define getsockname apr_os2_getsockname
00049 #define getsockopt apr_os2_getsockopt
00050 #define ioctl apr_os2_ioctl
00051 #define listen apr_os2_listen
00052 #define recv apr_os2_recv
00053 #define send apr_os2_send
00054 #define setsockopt apr_os2_setsockopt
00055 #define shutdown apr_os2_shutdown
00056 #define soclose apr_os2_soclose
00057 #define writev apr_os2_writev
00058 #define sendto apr_os2_sendto
00059 #define recvfrom apr_os2_recvfrom