Ruby 3.4.4p34 (2025-05-14 revision a38531fd3f617bf734ef7d6c595325f69985ea1d)
|
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. | |
#define | rb_fd_set FD_SET |
Sets the given fd to the rb_fdset_t. | |
#define | rb_fd_clr FD_CLR |
Unsets the given fd from the rb_fdset_t. | |
#define | rb_fd_isset FD_ISSET |
Queries if the given fd is in the rb_fdset_t. | |
#define | rb_fd_init FD_ZERO |
Initialises the :given :rb_fdset_t. | |
#define | rb_fd_select select |
Waits for multiple file descriptors at once. | |
Typedefs | |
typedef fd_set | rb_fdset_t |
The data structure which wraps the fd_set bitmap used by select(2) . | |
Functions | |
static void | rb_fd_copy (rb_fdset_t *dst, const fd_set *src, int n) |
Destructively overwrites an fdset with another. | |
static void | rb_fd_dup (rb_fdset_t *dst, const fd_set *src) |
Destructively overwrites an fdset with another. | |
static fd_set * | rb_fd_ptr (rb_fdset_t *f) |
Raw pointer to fd_set . | |
static int | rb_fd_max (const rb_fdset_t *f) |
It seems this function has no use. | |
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.
Definition at line 57 of file posix.h.
Referenced by rb_fd_clr(), and rb_fd_clr().
#define rb_fd_init FD_ZERO |
Initialises the :given :rb_fdset_t.
Definition at line 63 of file posix.h.
Referenced by rb_fd_init().
#define rb_fd_isset FD_ISSET |
Queries if the given fd is in the rb_fdset_t.
Definition at line 60 of file posix.h.
Referenced by rb_fd_isset(), and rb_fd_isset().
#define rb_fd_select select |
Waits for multiple file descriptors at once.
Definition at line 66 of file posix.h.
Referenced by rb_fd_select().
#define rb_fd_set FD_SET |
Sets the given fd to the rb_fdset_t.
Definition at line 54 of file posix.h.
Referenced by rb_fd_set().
#define rb_fd_zero FD_ZERO |
Clears the given rb_fdset_t.
Definition at line 51 of file posix.h.
Referenced by rb_fd_zero(), and rb_fd_zero().
typedef fd_set rb_fdset_t |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |