|
void | rb_fd_init (rb_fdset_t *f) |
| (Re-)initialises a fdset. More...
|
|
void | rb_fd_term (rb_fdset_t *f) |
| Destroys the rb_fdset_t, releasing any memory and resources it used. More...
|
|
void | rb_fd_set (int fd, rb_fdset_t *f) |
| Sets an fd to a fdset. More...
|
|
void | rb_w32_fd_copy (rb_fdset_t *dst, const fd_set *src, int max) |
| Destructively overwrites an fdset with another. More...
|
|
void | rb_w32_fd_dup (rb_fdset_t *dst, const rb_fdset_t *src) |
| Identical to rb_w32_fd_copy(), except it copies unlimited number of file descriptors. More...
|
|
static void | rb_fd_zero (rb_fdset_t *f) |
| Wipes out the current set of FDs. More...
|
|
static void | rb_fd_clr (int n, rb_fdset_t *f) |
| Releases a specific FD from the given fdset. More...
|
|
static int | rb_fd_isset (int n, rb_fdset_t *f) |
| Queries if the given FD is in the given set. More...
|
|
static void | rb_fd_copy (rb_fdset_t *dst, const fd_set *src, int n) |
| Destructively overwrites an fdset with another. More...
|
|
static void | rb_fd_dup (rb_fdset_t *dst, const rb_fdset_t *src) |
| Identical to rb_fd_copy(), except it copies unlimited number of file descriptors. More...
|
|
static int | rb_fd_select (int n, rb_fdset_t *rfds, rb_fdset_t *wfds, rb_fdset_t *efds, struct timeval *timeout) |
| Waits for multiple file descriptors at once. More...
|
|
static fd_set * | rb_fd_ptr (const rb_fdset_t *f) |
| Raw pointer to fd_set . More...
|
|
static int | rb_fd_max (const rb_fdset_t *f) |
| It seems this function has no use. More...
|
|
Public APIs to provide rb_fd_select().
- Author
- Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org
- Copyright
- This file is a part of the programming language Ruby. Permission is hereby granted, to either redistribute and/or modify this file, provided that the conditions mentioned in the file COPYING are met. Consult the file for details.
- Warning
- Symbols prefixed with either
RBIMPL
or rbimpl
are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will.
- Note
- To ruby-core: remember that this header can be possibly recursively included from extension libraries written in C++. Do not expect for instance
__VA_ARGS__
is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98.
Definition in file win32.h.