mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/rubysocket.h (rb_cUNIXSocket, rb_cUNIXServer),
(unixpath, unixaddr): UNIX domain sockets depend on sys/un.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
651f0e48bb
commit
2aa6644acd
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jan 19 11:22:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/rubysocket.h (rb_cUNIXSocket, rb_cUNIXServer),
|
||||||
|
(unixpath, unixaddr): UNIX domain sockets depend on sys/un.h.
|
||||||
|
|
||||||
Mon Jan 19 11:02:30 2009 Koichi Sasada <ko1@atdot.net>
|
Mon Jan 19 11:02:30 2009 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm_dump.c: add a prefix "rb_vmdebug_" to
|
* vm_dump.c: add a prefix "rb_vmdebug_" to
|
||||||
|
|
|
@ -129,7 +129,7 @@ extern VALUE rb_cIPSocket;
|
||||||
extern VALUE rb_cTCPSocket;
|
extern VALUE rb_cTCPSocket;
|
||||||
extern VALUE rb_cTCPServer;
|
extern VALUE rb_cTCPServer;
|
||||||
extern VALUE rb_cUDPSocket;
|
extern VALUE rb_cUDPSocket;
|
||||||
#ifdef AF_UNIX
|
#ifdef HAVE_SYS_UN_H
|
||||||
extern VALUE rb_cUNIXSocket;
|
extern VALUE rb_cUNIXSocket;
|
||||||
extern VALUE rb_cUNIXServer;
|
extern VALUE rb_cUNIXServer;
|
||||||
#endif
|
#endif
|
||||||
|
@ -177,8 +177,10 @@ VALUE make_ipaddr(struct sockaddr *addr);
|
||||||
VALUE ipaddr(struct sockaddr *sockaddr, int norevlookup);
|
VALUE ipaddr(struct sockaddr *sockaddr, int norevlookup);
|
||||||
VALUE make_hostent(VALUE host, struct addrinfo *addr, VALUE (*ipaddr)(struct sockaddr *, size_t));
|
VALUE make_hostent(VALUE host, struct addrinfo *addr, VALUE (*ipaddr)(struct sockaddr *, size_t));
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_UN_H
|
||||||
const char* unixpath(struct sockaddr_un *sockaddr, socklen_t len);
|
const char* unixpath(struct sockaddr_un *sockaddr, socklen_t len);
|
||||||
VALUE unixaddr(struct sockaddr_un *sockaddr, socklen_t len);
|
VALUE unixaddr(struct sockaddr_un *sockaddr, socklen_t len);
|
||||||
|
#endif
|
||||||
|
|
||||||
int ruby_socket(int domain, int type, int proto);
|
int ruby_socket(int domain, int type, int proto);
|
||||||
VALUE init_sock(VALUE sock, int fd);
|
VALUE init_sock(VALUE sock, int fd);
|
||||||
|
|
Loading…
Add table
Reference in a new issue