• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

include/posix/sys/socket.h

00001 /*
00002  * Copyright (C) 2005 Philippe Gerum <rpm@xenomai.org>.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License as
00006  * published by the Free Software Foundation; either version 2 of the
00007  * License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 #ifndef _XENO_POSIX_SOCKET_H
00020 #define _XENO_POSIX_SOCKET_H
00021 
00022 #if !(defined(__KERNEL__) || defined(__XENO_SIM__))
00023 
00024 #include_next <sys/socket.h>
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 int __real_socket(int protocol_family, int socket_type, int protocol);
00031 
00032 ssize_t __real_recvmsg(int fd, struct msghdr *msg, int flags);
00033 
00034 ssize_t __real_sendmsg(int fd, const struct msghdr *msg, int flags);
00035 
00036 ssize_t __real_recvfrom(int fd, void *buf, size_t len, int flags,
00037                         struct sockaddr *from, socklen_t *fromlen);
00038 
00039 ssize_t __real_sendto(int fd, const void *buf, size_t len, int flags,
00040                       const struct sockaddr *to, socklen_t tolen);
00041 
00042 ssize_t __real_recv(int fd, void *buf, size_t len, int flags);
00043 
00044 ssize_t __real_send(int fd, const void *buf, size_t len, int flags);
00045 
00046 int __real_getsockopt(int fd, int level, int optname, void *optval,
00047                       socklen_t *optlen);
00048 
00049 int __real_setsockopt(int fd, int level, int optname, const void *optval,
00050                       socklen_t optlen);
00051 
00052 int __real_bind(int fd, const struct sockaddr *my_addr, socklen_t addrlen);
00053 
00054 int __real_connect(int fd, const struct sockaddr *serv_addr,
00055                    socklen_t addrlen);
00056 
00057 int __real_listen(int fd, int backlog);
00058 
00059 int __real_accept(int fd, struct sockaddr *addr, socklen_t *addrlen);
00060 
00061 int __real_getsockname(int fd, struct sockaddr *name, socklen_t *namelen);
00062 
00063 int __real_getpeername(int fd, struct sockaddr *name, socklen_t *namelen);
00064 
00065 int __real_shutdown(int fd, int how);
00066 
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070 
00071 #endif /* !(__KERNEL__ || __XENO_SIM__) */
00072 
00073 #endif /* _XENO_POSIX_SOCKET_H */

Generated on Tue Jul 10 2012 20:41:22 for Xenomai API by  doxygen 1.7.1