summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/sys/socket.h
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-04 20:04:45 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-04 20:04:45 +0000
commit02fec4701cee79f875c1d02b8b4aee09380dbcb8 (patch)
treef4f291aedbb2e60ee58351481858a8cd3ec80b6b /mdk-stage1/dietlibc/include/sys/socket.h
parent9887fe04751edf39e8389f2c3ec3f020b5e1c17d (diff)
downloaddrakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.tar
drakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.tar.gz
drakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.tar.bz2
drakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.tar.xz
drakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.zip
integrate dietlibc/stdio per default for cdrom and disk only installs
Diffstat (limited to 'mdk-stage1/dietlibc/include/sys/socket.h')
-rw-r--r--mdk-stage1/dietlibc/include/sys/socket.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/sys/socket.h b/mdk-stage1/dietlibc/include/sys/socket.h
new file mode 100644
index 000000000..659c88e99
--- /dev/null
+++ b/mdk-stage1/dietlibc/include/sys/socket.h
@@ -0,0 +1,20 @@
+#ifndef _SYS_SOCKET_H
+#define _SYS_SOCKET_H
+
+#include <sys/types.h>
+#include <linux/socket.h>
+
+int socket(int domain, int type, int protocol);
+int accept(int s, struct sockaddr *addr, socklen_t *addrlen);
+int connect(int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen);
+int bind(int sockfd, struct sockaddr *my_addr, socklen_t addrlen);
+int recv(int s, void *buf, size_t len, int flags);
+int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen);
+int recvmsg(int s, struct msghdr *msg, int flags);
+int send(int s, const void *msg, size_t len, int flags);
+int sendto(int s, const void *msg, size_t len, int flags, const struct sockaddr *to, socklen_t tolen);
+int sendmsg(int s, const struct msghdr *msg, int flags);
+int getpeername(int s, struct sockaddr *name, socklen_t *namelen);
+int getsockname(int s , struct sockaddr * name , socklen_t * namelen );
+
+#endif