repo.or.cz
/
kgio.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
drop remaining 1.8 and fragile autopush code paths
[kgio.git]
/
ext
/
kgio
/
sock_for_fd.h
blob
cfec302cca199b3f02db9b0981a9105e6193252b
1
#ifndef SOCK_FOR_FD_H
2
#define SOCK_FOR_FD_H
3
#include <ruby.h>
4
5
static
ID id_for_fd
;
6
static
VALUE
sock_for_fd
(
VALUE klass
,
int
fd
)
7
{
8
return
rb_funcall
(
klass
,
id_for_fd
,
1
,
INT2NUM
(
fd
));
9
}
10
11
static void
init_sock_for_fd
(
void
)
12
{
13
id_for_fd
=
rb_intern
(
"for_fd"
);
14
}
15
#endif
/* SOCK_FOR_FD_H */