From ea3220b9a08996b27a4c7e6bce049f29bd52a16b Mon Sep 17 00:00:00 2001 From: esevece Date: Mon, 18 Nov 2013 04:50:06 +0000 Subject: [PATCH] close_socket to closesocket git-svn-id: svn://kolibrios.org@4249 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/menuetlibc/include/menuet/net.h | 2 +- programs/develop/libraries/menuetlibc/src/libc/net/socket.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/develop/libraries/menuetlibc/include/menuet/net.h b/programs/develop/libraries/menuetlibc/include/menuet/net.h index 2b69868ef2..5fb225369c 100755 --- a/programs/develop/libraries/menuetlibc/include/menuet/net.h +++ b/programs/develop/libraries/menuetlibc/include/menuet/net.h @@ -131,7 +131,7 @@ struct addrinfo { unsigned long inet_addr(char *cp); int socket(int domain, int type, int protocol); -int close_socket(int s); +int closesocket(int s); int bind(int sockfd, struct sockaddr *my_addr, int addrlen); int listen(int s, int backlog); int connect(int sockfd, const struct sockaddr *serv_addr, int addrlen); diff --git a/programs/develop/libraries/menuetlibc/src/libc/net/socket.c b/programs/develop/libraries/menuetlibc/src/libc/net/socket.c index e4f814e44f..fd20fc6199 100755 --- a/programs/develop/libraries/menuetlibc/src/libc/net/socket.c +++ b/programs/develop/libraries/menuetlibc/src/libc/net/socket.c @@ -18,7 +18,7 @@ int socket(int domain, int type, int protocol) return __ret; } -int close_socket(int s) +int closesocket(int s) { int __ret; __asm__("int $0x40":"=a"(__ret):"a"(_SOCKETF),"b"(_CLOSESF),"c"(s));