mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket: add rsock_prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
faabbf230a
commit
c49f05dd79
17 changed files with 285 additions and 281 deletions
|
@ -24,7 +24,7 @@
|
|||
static VALUE
|
||||
unix_svr_init(VALUE sock, VALUE path)
|
||||
{
|
||||
return init_unixsock(sock, path, 1);
|
||||
return rsock_init_unixsock(sock, path, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -53,8 +53,8 @@ unix_accept(VALUE sock)
|
|||
|
||||
GetOpenFile(sock, fptr);
|
||||
fromlen = sizeof(struct sockaddr_un);
|
||||
return s_accept(rb_cUNIXSocket, fptr->fd,
|
||||
(struct sockaddr*)&from, &fromlen);
|
||||
return rsock_s_accept(rb_cUNIXSocket, fptr->fd,
|
||||
(struct sockaddr*)&from, &fromlen);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -95,8 +95,8 @@ unix_accept_nonblock(VALUE sock)
|
|||
|
||||
GetOpenFile(sock, fptr);
|
||||
fromlen = sizeof(from);
|
||||
return s_accept_nonblock(rb_cUNIXSocket, fptr,
|
||||
(struct sockaddr *)&from, &fromlen);
|
||||
return rsock_s_accept_nonblock(rb_cUNIXSocket, fptr,
|
||||
(struct sockaddr *)&from, &fromlen);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -126,7 +126,7 @@ unix_sysaccept(VALUE sock)
|
|||
|
||||
GetOpenFile(sock, fptr);
|
||||
fromlen = sizeof(struct sockaddr_un);
|
||||
return s_accept(0, fptr->fd, (struct sockaddr*)&from, &fromlen);
|
||||
return rsock_s_accept(0, fptr->fd, (struct sockaddr*)&from, &fromlen);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue