Ruby
3.4.0dev (2024-11-22 revision 0989400a925cd201defdca9eb28eb87200b30785)
|
Public APIs to provide rb_fd_select(). More...
#include "ruby/internal/config.h"
#include "ruby/internal/attr/const.h"
#include "ruby/internal/attr/noalias.h"
#include "ruby/internal/attr/nonnull.h"
#include "ruby/internal/attr/pure.h"
Go to the source code of this file.
Macros | |
#define | rb_fd_zero FD_ZERO |
Clears the given rb_fdset_t. More... | |
#define | rb_fd_set FD_SET |
Sets the given fd to the rb_fdset_t. More... | |
#define | rb_fd_clr FD_CLR |
Unsets the given fd from the rb_fdset_t. More... | |
#define | rb_fd_isset FD_ISSET |
Queries if the given fd is in the rb_fdset_t. More... | |
#define | rb_fd_init FD_ZERO |
Initialises the :given :rb_fdset_t. More... | |
#define | rb_fd_select select |
Waits for multiple file descriptors at once. More... | |
Typedefs | |
typedef fd_set | rb_fdset_t |
The data structure which wraps the fd_set bitmap used by select(2) . More... | |
Functions | |
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 fd_set *src) |
Destructively overwrites an fdset with another. More... | |
static fd_set * | rb_fd_ptr (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().
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. __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 posix.h.
#define rb_fd_clr FD_CLR |
Unsets the given fd from the rb_fdset_t.
#define rb_fd_init FD_ZERO |
Initialises the :given :rb_fdset_t.
#define rb_fd_isset FD_ISSET |
Queries if the given fd is in the rb_fdset_t.
#define rb_fd_select select |
#define rb_fd_set FD_SET |
Sets the given fd to the rb_fdset_t.
#define rb_fd_zero FD_ZERO |
Clears the given rb_fdset_t.
typedef fd_set rb_fdset_t |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |