close_socket to closesocket

git-svn-id: svn://kolibrios.org@4249 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
esevece 2013-11-18 04:50:06 +00:00
parent 66a80ab62a
commit ea3220b9a0
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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));