forked from KolibriOS/kolibrios
close_socket to closesocket
git-svn-id: svn://kolibrios.org@4249 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
66a80ab62a
commit
ea3220b9a0
@ -131,7 +131,7 @@ struct addrinfo {
|
|||||||
|
|
||||||
unsigned long inet_addr(char *cp);
|
unsigned long inet_addr(char *cp);
|
||||||
int socket(int domain, int type, int protocol);
|
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 bind(int sockfd, struct sockaddr *my_addr, int addrlen);
|
||||||
int listen(int s, int backlog);
|
int listen(int s, int backlog);
|
||||||
int connect(int sockfd, const struct sockaddr *serv_addr, int addrlen);
|
int connect(int sockfd, const struct sockaddr *serv_addr, int addrlen);
|
||||||
|
@ -18,7 +18,7 @@ int socket(int domain, int type, int protocol)
|
|||||||
return __ret;
|
return __ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int close_socket(int s)
|
int closesocket(int s)
|
||||||
{
|
{
|
||||||
int __ret;
|
int __ret;
|
||||||
__asm__("int $0x40":"=a"(__ret):"a"(_SOCKETF),"b"(_CLOSESF),"c"(s));
|
__asm__("int $0x40":"=a"(__ret):"a"(_SOCKETF),"b"(_CLOSESF),"c"(s));
|
||||||
|
Loading…
Reference in New Issue
Block a user