Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
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().
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 |