summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2002-03-20 20:23:37 +0000
committerJason Rumney <jasonr@gnu.org>2002-03-20 20:23:37 +0000
commitef2cd5961ab8027ac88c50168ccc0c91cc8f79fb (patch)
treefa7402cac3af65ed19dd404ddf14252b76f9fa02 /nt
parentab8a75de6bc193d16faf925dcc9015dc005f5ebe (diff)
downloademacs-ef2cd5961ab8027ac88c50168ccc0c91cc8f79fb.tar.gz
(sys_setsockopt, sys_listen, sys_getsockname)
(sys_accept, sys_recvfrom, sys_sendto): Declare as wrappers.
Diffstat (limited to 'nt')
-rw-r--r--nt/inc/sys/socket.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/nt/inc/sys/socket.h b/nt/inc/sys/socket.h
index bdd4db6b2fe..3c9c4d4de8c 100644
--- a/nt/inc/sys/socket.h
+++ b/nt/inc/sys/socket.h
@@ -83,6 +83,12 @@ Boston, MA 02111-1307, USA. */
#define gethostbyname sys_gethostbyname
#define getservbyname sys_getservbyname
#define shutdown sys_shutdown
+#define setsockopt sys_setsockopt
+#define listen sys_listen
+#define getsockname sys_getsockname
+#define accept sys_accept
+#define recvfrom sys_recvfrom
+#define sendto sys_sendto
int sys_socket(int af, int type, int protocol);
int sys_bind (int s, const struct sockaddr *addr, int namelen);
@@ -94,6 +100,14 @@ int sys_gethostname (char * name, int namelen);
struct hostent * sys_gethostbyname(const char * name);
struct servent * sys_getservbyname(const char * name, const char * proto);
int sys_shutdown (int socket, int how);
+int sys_setsockopt (int s, int level, int oname, const char * oval, int olen);
+int sys_listen (int s, int backlog);
+int sys_getsockname (int s, struct sockaddr * name, int * namelen);
+int sys_accept (int s, struct sockaddr *addr, int *addrlen);
+int sys_recvfrom (int s, char *buf, int len, int flags,
+ struct sockaddr *from, int * fromlen);
+int sys_sendto (int s, const char * buf, int len, int flags,
+ const struct sockaddr *to, int tolen);
/* we are providing a real h_errno variable */
#undef h_errno