Ruby
2.4.2p198(2017-09-14revision59899)
|
#include <winsock2.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <direct.h>
#include <process.h>
#include <time.h>
#include <math.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <utime.h>
#include <io.h>
#include <malloc.h>
#include <float.h>
#include <errno.h>
Go to the source code of this file.
Data Structures | |
struct | iovec |
struct | msghdr |
struct | ifaddrs |
struct | tms |
Macros | |
#define | WIN32 |
#define | _INTPTR_T_DEFINED |
#define | INTPTR_MAX 2147483647 |
#define | INTPTR_MIN (-INTPTR_MAX-1) |
#define | _UINTPTR_T_DEFINED |
#define | UINTPTR_MAX 4294967295U |
#define | mode_t int |
#define | rb_w32_iswinnt() TRUE |
#define | rb_w32_iswin95() FALSE |
#define | WNOHANG -1 |
#define | O_SHARE_DELETE 0x20000000 /* for rb_w32_open(), rb_w32_wopen() */ |
#define | CLOCK_REALTIME 0 |
#define | CLOCK_MONOTONIC 1 |
#define | stat(path, st) rb_w32_stat(path,st) |
#define | fstat(fd, st) rb_w32_fstat(fd,st) |
#define | lstat(path, st) rb_w32_lstati64(path,st) |
#define | access(path, mode) rb_w32_access(path,mode) |
#define | strcasecmp _stricmp |
#define | strncasecmp _strnicmp |
#define | fsync _commit |
#define | IFNAMSIZ 256 |
#define | isnan(x) _isnan(x) |
#define | copysign(a, b) _copysign(a, b) |
#define | S_IRUSR 0400 |
#define | S_IRGRP 0040 |
#define | S_IROTH 0004 |
#define | S_IWUSR 0200 |
#define | S_IWGRP 0020 |
#define | S_IWOTH 0002 |
#define | S_IXUSR 0100 |
#define | S_IXGRP 0010 |
#define | S_IXOTH 0001 |
#define | S_IFLNK 0xa000 |
#define | SUFFIX |
#define | HAVE_FTRUNCATE 1 |
#define | ftruncate rb_w32_ftruncate |
#define | HAVE_TRUNCATE 1 |
#define | truncate rb_w32_truncate |
#define | PIPE_BUF 1024 |
#define | LOCK_SH 1 |
#define | LOCK_EX 2 |
#define | LOCK_NB 4 |
#define | LOCK_UN 8 |
#define | SIGINT 2 |
#define | SIGKILL 9 |
#define | EWOULDBLOCK WSAEWOULDBLOCK |
#define | EINPROGRESS WSAEINPROGRESS |
#define | EALREADY WSAEALREADY |
#define | ENOTSOCK WSAENOTSOCK |
#define | EDESTADDRREQ WSAEDESTADDRREQ |
#define | EMSGSIZE WSAEMSGSIZE |
#define | EPROTOTYPE WSAEPROTOTYPE |
#define | ENOPROTOOPT WSAENOPROTOOPT |
#define | EPROTONOSUPPORT WSAEPROTONOSUPPORT |
#define | ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT |
#define | EOPNOTSUPP WSAEOPNOTSUPP |
#define | EPFNOSUPPORT WSAEPFNOSUPPORT |
#define | EAFNOSUPPORT WSAEAFNOSUPPORT |
#define | EADDRINUSE WSAEADDRINUSE |
#define | EADDRNOTAVAIL WSAEADDRNOTAVAIL |
#define | ENETDOWN WSAENETDOWN |
#define | ENETUNREACH WSAENETUNREACH |
#define | ENETRESET WSAENETRESET |
#define | ECONNABORTED WSAECONNABORTED |
#define | ECONNRESET WSAECONNRESET |
#define | ENOBUFS WSAENOBUFS |
#define | EISCONN WSAEISCONN |
#define | ENOTCONN WSAENOTCONN |
#define | ESHUTDOWN WSAESHUTDOWN |
#define | ETOOMANYREFS WSAETOOMANYREFS |
#define | ETIMEDOUT WSAETIMEDOUT |
#define | ECONNREFUSED WSAECONNREFUSED |
#define | ELOOP WSAELOOP |
#define | EHOSTDOWN WSAEHOSTDOWN |
#define | EHOSTUNREACH WSAEHOSTUNREACH |
#define | EPROCLIM WSAEPROCLIM |
#define | EUSERS WSAEUSERS |
#define | EDQUOT WSAEDQUOT |
#define | ESTALE WSAESTALE |
#define | EREMOTE WSAEREMOTE |
#define | F_DUPFD 0 |
#define | F_GETFD 1 |
#define | F_SETFD 2 |
#define | F_SETFL 4 |
#define | F_DUPFD_CLOEXEC 67 |
#define | FD_CLOEXEC 1 /* F_GETFD, F_SETFD */ |
#define | O_NONBLOCK 1 |
#define | FD_SET(fd, set) |
#define | FD_CLR(f, s) rb_w32_fdclr(f, s) |
#define | FD_ISSET(f, s) rb_w32_fdisset(f, s) |
Typedefs | |
typedef int | intptr_t |
typedef unsigned int | uintptr_t |
typedef int | clockid_t |
typedef uintptr_t(* | asynchronous_func_t) (uintptr_t self, int argc, uintptr_t *argv) |
Functions | |
int | rb_w32_stat (const char *, struct stat *) |
int | rb_w32_fstat (int, struct stat *) |
void | rb_w32_sysinit (int *, char ***) |
DWORD | rb_w32_osid (void) |
rb_pid_t | rb_w32_pipe_exec (const char *, const char *, int, int *, int *) |
int | flock (int fd, int oper) |
int | rb_w32_io_cancelable_p (int) |
int | rb_w32_is_socket (int) |
int WSAAPI | rb_w32_accept (int, struct sockaddr *, int *) |
int WSAAPI | rb_w32_bind (int, const struct sockaddr *, int) |
int WSAAPI | rb_w32_connect (int, const struct sockaddr *, int) |
void | rb_w32_fdset (int, fd_set *) |
void | rb_w32_fdclr (int, fd_set *) |
int | rb_w32_fdisset (int, fd_set *) |
int WSAAPI | rb_w32_select (int, fd_set *, fd_set *, fd_set *, struct timeval *) |
int WSAAPI | rb_w32_getpeername (int, struct sockaddr *, int *) |
int WSAAPI | rb_w32_getsockname (int, struct sockaddr *, int *) |
int WSAAPI | rb_w32_getsockopt (int, int, int, char *, int *) |
int WSAAPI | rb_w32_ioctlsocket (int, long, u_long *) |
int WSAAPI | rb_w32_listen (int, int) |
int WSAAPI | rb_w32_recv (int, char *, int, int) |
int WSAAPI | rb_w32_recvfrom (int, char *, int, int, struct sockaddr *, int *) |
int WSAAPI | rb_w32_send (int, const char *, int, int) |
int WSAAPI | rb_w32_sendto (int, const char *, int, int, const struct sockaddr *, int) |
int | recvmsg (int, struct msghdr *, int) |
int | sendmsg (int, const struct msghdr *, int) |
int WSAAPI | rb_w32_setsockopt (int, int, int, const char *, int) |
int WSAAPI | rb_w32_shutdown (int, int) |
int WSAAPI | rb_w32_socket (int, int, int) |
SOCKET | rb_w32_get_osfhandle (int) |
struct hostent *WSAAPI | rb_w32_gethostbyaddr (const char *, int, int) |
struct hostent *WSAAPI | rb_w32_gethostbyname (const char *) |
int WSAAPI | rb_w32_gethostname (char *, int) |
struct protoent *WSAAPI | rb_w32_getprotobyname (const char *) |
struct protoent *WSAAPI | rb_w32_getprotobynumber (int) |
struct servent *WSAAPI | rb_w32_getservbyname (const char *, const char *) |
struct servent *WSAAPI | rb_w32_getservbyport (int, const char *) |
int | socketpair (int, int, int, int *) |
int | getifaddrs (struct ifaddrs **) |
void | freeifaddrs (struct ifaddrs *) |
char * | rb_w32_getcwd (char *, int) |
char * | rb_w32_ugetenv (const char *) |
char * | rb_w32_getenv (const char *) |
int | rb_w32_rename (const char *, const char *) |
int | rb_w32_urename (const char *, const char *) |
char ** | rb_w32_get_environ (void) |
void | rb_w32_free_environ (char **) |
int | rb_w32_map_errno (DWORD) |
const char *WSAAPI | rb_w32_inet_ntop (int, const void *, char *, size_t) |
int WSAAPI | rb_w32_inet_pton (int, const char *, void *) |
DWORD | rb_w32_osver (void) |
int | chown (const char *, int, int) |
int | rb_w32_uchown (const char *, int, int) |
int | link (const char *, const char *) |
int | rb_w32_ulink (const char *, const char *) |
ssize_t | readlink (const char *, char *, size_t) |
ssize_t | rb_w32_ureadlink (const char *, char *, size_t) |
ssize_t | rb_w32_wreadlink (const WCHAR *, WCHAR *, size_t) |
int | symlink (const char *src, const char *link) |
int | rb_w32_usymlink (const char *src, const char *link) |
int | gettimeofday (struct timeval *, struct timezone *) |
int | clock_gettime (clockid_t, struct timespec *) |
int | clock_getres (clockid_t, struct timespec *) |
rb_pid_t | waitpid (rb_pid_t, int *, int) |
rb_pid_t | rb_w32_spawn (int, const char *, const char *) |
rb_pid_t | rb_w32_aspawn (int, const char *, char *const *) |
rb_pid_t | rb_w32_aspawn_flags (int, const char *, char *const *, DWORD) |
rb_pid_t | rb_w32_uspawn (int, const char *, const char *) |
rb_pid_t | rb_w32_uaspawn (int, const char *, char *const *) |
rb_pid_t | rb_w32_uaspawn_flags (int, const char *, char *const *, DWORD) |
int | kill (int, int) |
int | fcntl (int, int,...) |
int | rb_w32_set_nonblock (int) |
rb_pid_t | rb_w32_getpid (void) |
rb_pid_t | rb_w32_getppid (void) |
int | rb_w32_isatty (int) |
int | rb_w32_uchdir (const char *) |
int | rb_w32_mkdir (const char *, int) |
int | rb_w32_umkdir (const char *, int) |
int | rb_w32_rmdir (const char *) |
int | rb_w32_urmdir (const char *) |
int | rb_w32_unlink (const char *) |
int | rb_w32_uunlink (const char *) |
int | rb_w32_uchmod (const char *, int) |
int | rb_w32_stati64 (const char *, struct stati64 *) |
int | rb_w32_ustati64 (const char *, struct stati64 *) |
int | rb_w32_lstati64 (const char *, struct stati64 *) |
int | rb_w32_ulstati64 (const char *, struct stati64 *) |
int | rb_w32_access (const char *, int) |
int | rb_w32_uaccess (const char *, int) |
char | rb_w32_fd_is_text (int) |
int | rb_w32_fstati64 (int, struct stati64 *) |
int | rb_w32_dup2 (int, int) |
static int | finite (double x) |
static double | scalb (double a, long b) |
int | rb_w32_ftruncate (int fd, off_t length) |
int | rb_w32_truncate (const char *path, off_t length) |
int | rb_w32_utruncate (const char *path, off_t length) |
int | ioctl (int, int,...) |
rb_uid_t | getuid (void) |
rb_uid_t | geteuid (void) |
rb_gid_t | getgid (void) |
rb_gid_t | getegid (void) |
int | setuid (rb_uid_t) |
int | setgid (rb_gid_t) |
int | fstati64 (int, struct stati64 *) |
char * | rb_w32_strerror (int) |
int | rb_w32_times (struct tms *) |
struct tm * | gmtime_r (const time_t *, struct tm *) |
struct tm * | localtime_r (const time_t *, struct tm *) |
int | rb_w32_sleep (unsigned long msec) |
int | rb_w32_open (const char *, int,...) |
int | rb_w32_uopen (const char *, int,...) |
int | rb_w32_wopen (const WCHAR *, int,...) |
int | rb_w32_close (int) |
int | rb_w32_fclose (FILE *) |
int | rb_w32_pipe (int[2]) |
ssize_t | rb_w32_read (int, void *, size_t) |
ssize_t | rb_w32_write (int, const void *, size_t) |
int | rb_w32_utime (const char *, const struct utimbuf *) |
int | rb_w32_uutime (const char *, const struct utimbuf *) |
long | rb_w32_write_console (uintptr_t, int) |
int WINAPI | rb_w32_Sleep (unsigned long msec) |
int | rb_w32_wait_events_blocking (HANDLE *events, int num, DWORD timeout) |
int | rb_w32_time_subtract (struct timeval *rest, const struct timeval *wait) |
int | rb_w32_wrap_io_handle (HANDLE, int) |
int | rb_w32_unwrap_io_handle (int) |
WCHAR * | rb_w32_mbstr_to_wstr (UINT, const char *, int, long *) |
char * | rb_w32_wstr_to_mbstr (UINT, const WCHAR *, int, long *) |
uintptr_t | rb_w32_asynchronize (asynchronous_func_t func, uintptr_t self, int argc, uintptr_t *argv, uintptr_t intrval) |
#define access | ( | path, | |
mode | |||
) | rb_w32_access(path,mode) |
Definition at line 189 of file win32.h.
Referenced by eaccess(), path_check_0(), rb_file_executable_real_p(), rb_file_readable_real_p(), rb_file_writable_real_p(), and w32_wopen().
#define CLOCK_MONOTONIC 1 |
Definition at line 134 of file win32.h.
Referenced by clock_getres(), clock_gettime(), getclockofday(), InitVM_process(), and timeofday().
#define CLOCK_REALTIME 0 |
Definition at line 133 of file win32.h.
Referenced by clock_getres(), clock_gettime(), datetime_s_now(), InitVM_process(), and rb_timespec_now().
#define EADDRINUSE WSAEADDRINUSE |
Definition at line 513 of file win32.h.
Referenced by rb_w32_strerror().
#define EAFNOSUPPORT WSAEAFNOSUPPORT |
Definition at line 510 of file win32.h.
Referenced by socketpair_internal().
#define EALREADY WSAEALREADY |
Definition at line 480 of file win32.h.
Referenced by wait_connectable().
#define ECONNABORTED WSAECONNABORTED |
Definition at line 528 of file win32.h.
Referenced by rsock_s_accept_nonblock().
#define ECONNRESET WSAECONNRESET |
Definition at line 531 of file win32.h.
Referenced by ruby_close(), ruby_getpeername(), ruby_getsockname(), and ruby_shutdown().
#define EINPROGRESS WSAEINPROGRESS |
Definition at line 477 of file win32.h.
Referenced by rb_readwrite_syserr_fail(), rb_w32_connect(), rsock_connect(), set_syserr(), sock_connect_nonblock(), and wait_connectable().
#define EISCONN WSAEISCONN |
Definition at line 537 of file win32.h.
Referenced by sock_connect_nonblock(), and wait_connectable().
#define ELOOP WSAELOOP |
Definition at line 555 of file win32.h.
Referenced by realpath_rec(), and wrename().
#define EPROTOTYPE WSAEPROTOTYPE |
Definition at line 492 of file win32.h.
Referenced by socketpair_internal().
#define ETIMEDOUT WSAETIMEDOUT |
Definition at line 549 of file win32.h.
Referenced by lock_func().
#define F_DUPFD 0 |
Definition at line 581 of file win32.h.
Referenced by dup2(), fcntl(), Init_fcntl(), ioctl_narg_len(), and rb_cloexec_fcntl_dupfd().
#define F_DUPFD_CLOEXEC 67 |
Definition at line 588 of file win32.h.
Referenced by fcntl(), ioctl_narg_len(), and rb_cloexec_fcntl_dupfd().
#define F_GETFD 1 |
Definition at line 582 of file win32.h.
Referenced by fcntl(), fd_clear_cloexec(), fd_get_cloexec(), fd_set_cloexec(), Init_fcntl(), ioctl_narg_len(), rb_fix_detect_o_cloexec(), rb_io_isatty(), rb_maygvl_fd_fix_cloexec(), rb_pipe(), and rsock_detect_cloexec().
#define F_SETFD 2 |
Definition at line 583 of file win32.h.
Referenced by fcntl(), fd_clear_cloexec(), fd_set_cloexec(), Init_fcntl(), ioctl_narg_len(), rb_maygvl_fd_fix_cloexec(), and rb_pipe().
#define F_SETFL 4 |
Definition at line 587 of file win32.h.
Referenced by fcntl(), Init_fcntl(), ioctl_narg_len(), make_fd_nonblock(), open_load_file(), and rb_io_set_nonblock().
Definition at line 589 of file win32.h.
Referenced by fcntl(), fd_clear_cloexec(), fd_get_cloexec(), fd_set_cloexec(), Init_fcntl(), rb_fix_detect_o_cloexec(), rb_io_isatty(), rb_maygvl_fd_fix_cloexec(), rb_pipe(), and rsock_detect_cloexec().
#define FD_CLR | ( | f, | |
s | |||
) | rb_w32_fdclr(f, s) |
Definition at line 611 of file win32.h.
Referenced by rb_thread_priority_set().
#define FD_ISSET | ( | f, | |
s | |||
) | rb_w32_fdisset(f, s) |
Definition at line 614 of file win32.h.
Referenced by rb_thread_priority_set().
#define FD_SET | ( | fd, | |
set | |||
) |
Definition at line 593 of file win32.h.
Referenced by rb_thread_priority_set(), and rb_w32_fdset().
#define fstat | ( | fd, | |
st | |||
) | rb_w32_fstat(fd,st) |
Definition at line 184 of file win32.h.
Referenced by argf_next_argv(), fill_standard_fds(), is_socket(), nogvl_copy_stream_wait_write(), rb_file_atime(), rb_file_ctime(), rb_file_mtime(), rb_file_size(), rb_io_initialize(), rb_io_stat(), rb_stat(), rb_update_max_fd(), rb_w32_fstat(), rb_w32_fstati64(), remain_size(), ruby_is_fd_loadable(), and sdbm_prep().
#define fsync _commit |
Definition at line 193 of file win32.h.
Referenced by rb_io_addstr().
#define ftruncate rb_w32_ftruncate |
#define INTPTR_MIN (-INTPTR_MAX-1) |
#define isnan | ( | x | ) | _isnan(x) |
Definition at line 346 of file win32.h.
Referenced by BigMath_s_exp(), BigMath_s_log(), BSD_vfprintf(), c_valid_start_p(), dbl2big(), erf(), erfc(), f_signbit(), finite(), flo_cmp(), flo_eq(), flo_eql(), flo_ge(), flo_is_finite_p(), flo_is_nan_p(), flo_le(), flo_lt(), flo_to_s(), float_arg(), float_denominator(), float_numerator(), float_value(), flodivmod(), generate_json_float(), math_erfc(), nextafter(), opt_eq_func(), rand_range(), rb_big_fdiv_double(), rb_dbl_cmp(), rb_float_gt(), rb_integer_float_cmp(), rb_integer_float_eq(), rb_str_format(), ruby_hdtoa(), safe_mul(), VpDtoV(), and w_float().
#define lstat | ( | path, | |
st | |||
) | rb_w32_lstati64(path,st) |
#define mode_t int |
Definition at line 119 of file win32.h.
Referenced by close_unless_reserved(), get_device_once(), rb_execarg_addopt(), rb_execarg_run_options(), rb_f_open(), rb_io_open(), rb_io_s_sysopen(), rb_open_file(), and rb_scan_open_args().
#define O_NONBLOCK 1 |
Definition at line 590 of file win32.h.
Referenced by Init_fcntl(), Init_File(), make_fd_nonblock(), overlapped_socket_io(), rb_file_load_ok(), rb_io_set_nonblock(), rb_w32_set_nonblock(), rb_w32_wrap_io_handle(), recvmsg(), sendmsg(), and setfl().
#define O_SHARE_DELETE 0x20000000 /* for rb_w32_open(), rb_w32_wopen() */ |
#define S_IFLNK 0xa000 |
Definition at line 399 of file win32.h.
Referenced by fileattr_to_unixmode().
#define S_IRGRP 0040 |
Definition at line 373 of file win32.h.
Referenced by rb_stat_r(), and rb_stat_R().
#define S_IROTH 0004 |
Definition at line 376 of file win32.h.
Referenced by rb_file_world_readable_p(), rb_stat_r(), rb_stat_R(), and rb_stat_wr().
#define S_IRUSR 0400 |
Definition at line 370 of file win32.h.
Referenced by rb_stat_r(), and rb_stat_R().
#define S_IWGRP 0020 |
Definition at line 383 of file win32.h.
Referenced by rb_stat_w(), and rb_stat_W().
#define S_IWUSR 0200 |
Definition at line 380 of file win32.h.
Referenced by fileattr_to_unixmode(), rb_stat_w(), and rb_stat_W().
#define S_IXGRP 0010 |
Definition at line 393 of file win32.h.
Referenced by rb_stat_x(), and rb_stat_X().
#define S_IXOTH 0001 |
Definition at line 396 of file win32.h.
Referenced by rb_stat_x(), and rb_stat_X().
#define S_IXUSR 0100 |
Definition at line 390 of file win32.h.
Referenced by rb_stat_x(), and rb_stat_X().
#define SIGINT 2 |
Definition at line 460 of file win32.h.
Referenced by default_handler(), Init_signal(), interrupt_init(), kill(), poll_child_status(), rb_signal_exec(), and ruby_sig_finalize().
#define SIGKILL 9 |
Definition at line 463 of file win32.h.
Referenced by kill(), and rb_f_kill().
#define stat | ( | path, | |
st | |||
) | rb_w32_stat(path,st) |
Definition at line 183 of file win32.h.
Referenced by argf_next_argv(), ci_missing_reason(), dln_find_1(), do_stat(), fill_standard_fds(), get_stat(), glob_helper(), is_socket(), nogvl_copy_stream_wait_write(), rb_io_initialize(), rb_stat_new(), rb_update_max_fd(), rb_w32_fstati64(), realpath_rec(), remain_size(), sdbm_prep(), stat_memsize(), stat_new_0(), tracepoint_stat_s(), vm_call_method(), and vm_call_method_nome().
#define strcasecmp _stricmp |
Definition at line 191 of file win32.h.
Referenced by is_batch(), is_command_com(), ole_method_sub(), optimized_unescape_html(), parser_get_bool(), and rb_home_dir_of().
#define strncasecmp _strnicmp |
Definition at line 192 of file win32.h.
Referenced by check_rounding_mode_option(), date__strptime_internal(), day_num(), mon_num(), rb_file_expand_path_internal(), rb_num_get_rounding_option(), and w32_getenv().
#define truncate rb_w32_truncate |
#define WNOHANG -1 |
Definition at line 128 of file win32.h.
Referenced by fptr_waitpid(), InitVM_process(), pty_check(), pty_detach_process(), rb_waitpid(), and waitpid().
int chown | ( | const char * | , |
int | , | ||
int | |||
) |
Definition at line 4698 of file win32.c.
Referenced by argf_next_argv(), chown_internal(), get_device_once(), and rb_file_chown().
Definition at line 4630 of file win32.c.
References CLOCK_MONOTONIC, CLOCK_REALTIME, errno, map_errno, timespec::tv_nsec, and timespec::tv_sec.
Referenced by rb_clock_getres().
Definition at line 4592 of file win32.c.
References CLOCK_MONOTONIC, CLOCK_REALTIME, count, errno, gettimeofday(), map_errno, NULL, timespec::tv_nsec, timeval::tv_sec, timespec::tv_sec, and timeval::tv_usec.
Referenced by datetime_s_now(), getclockofday(), getrusage_time(), rb_clock_gettime(), rb_timespec_now(), and timeofday().
int fcntl | ( | int | , |
int | , | ||
... | |||
) |
Definition at line 4296 of file win32.c.
References _osfile, dupfd(), errno, F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD, F_SETFD, F_SETFL, FD_CLOEXEC, FNOINHERIT, is_socket(), L, map_errno, setfl(), SIGNED_VALUE, and TO_SOCKET.
Referenced by dup2(), fd_clear_cloexec(), fd_get_cloexec(), fd_set_cloexec(), make_fd_nonblock(), open_load_file(), rb_cloexec_fcntl_dupfd(), rb_fix_detect_o_cloexec(), rb_io_initialize(), rb_io_isatty(), rb_io_set_nonblock(), rb_maygvl_fd_fix_cloexec(), rb_pipe(), and rsock_detect_cloexec().
|
inlinestatic |
int flock | ( | int | fd, |
int | oper | ||
) |
Definition at line 125 of file flock.c.
References flock_winnt(), NULL, rb_notimplement(), and rb_w32_asynchronize().
void freeifaddrs | ( | struct ifaddrs * | ) |
Definition at line 4190 of file win32.c.
References ifaddrs::ifa_addr, ifaddrs::ifa_name, ifaddrs::ifa_next, and ruby_xfree().
Referenced by sock_s_unpack_sockaddr_in().
int fstati64 | ( | int | , |
struct stati64 * | |||
) |
rb_gid_t getegid | ( | void | ) |
Definition at line 2730 of file win32.c.
References ROOT_GID.
Referenced by eaccess(), init_ids(), InitVM_process(), p_gid_change_privilege(), p_gid_exchange(), p_gid_have_saved_id(), p_gid_switch(), proc_getegid(), proc_getgid(), rb_exec_async_signal_safe(), and rb_group_member().
rb_uid_t geteuid | ( | void | ) |
Definition at line 2716 of file win32.c.
References ROOT_UID.
Referenced by eaccess(), init_ids(), InitVM_process(), p_gid_change_privilege(), p_uid_change_privilege(), p_uid_exchange(), p_uid_have_saved_id(), p_uid_switch(), proc_geteuid(), proc_getuid(), rb_exec_async_signal_safe(), rb_file_owned_p(), rb_setegid_core(), rb_seteuid_core(), rb_stat_owned(), rb_stat_r(), rb_stat_w(), and rb_stat_x().
rb_gid_t getgid | ( | void | ) |
Definition at line 2723 of file win32.c.
References ROOT_GID.
Referenced by eaccess(), etc_getgrgid(), get_device_once(), init_ids(), p_gid_change_privilege(), p_gid_exchange(), p_gid_have_saved_id(), p_gid_switch(), proc_getegid(), proc_getgid(), rb_exec_async_signal_safe(), rb_group_member(), and rb_setegid_core().
int getifaddrs | ( | struct ifaddrs ** | ) |
Definition at line 4103 of file win32.c.
References added, AF_UNSPEC, errno, get_proc_address(), ifaddrs::ifa_addr, ifaddrs::ifa_flags, ifaddrs::ifa_name, ifaddrs::ifa_next, IFNAMSIZ, map_errno, memcpy, name, NULL, pConvertInterfaceGuidToLuid, pConvertInterfaceLuidToNameA, ruby_strdup(), ruby_xcalloc(), ruby_xfree(), ruby_xmalloc(), size, str2guid(), and ULONG().
Referenced by sock_s_unpack_sockaddr_in().
Definition at line 4580 of file win32.c.
References filetime_to_timeval().
Referenced by clock_gettime(), datetime_s_now(), fill_random_seed(), getclockofday(), rb_clock_gettime(), rb_timespec_now(), rb_w32_select_with_thread(), and timeofday().
rb_uid_t getuid | ( | void | ) |
Definition at line 2709 of file win32.c.
References ROOT_UID.
Referenced by argf_next_argv(), chfunc(), eaccess(), etc_getpwuid(), get_device_once(), init_ids(), p_uid_change_privilege(), p_uid_exchange(), p_uid_have_saved_id(), p_uid_switch(), proc_geteuid(), proc_getuid(), rb_exec_async_signal_safe(), rb_file_rowned_p(), rb_seteuid_core(), rb_stat_R(), rb_stat_rowned(), rb_stat_W(), and rb_stat_X().
struct tm* gmtime_r | ( | const time_t * | , |
struct tm * | |||
) |
Definition at line 7681 of file win32.c.
References errno, NULL, systemtime_to_tm(), and unixtime_to_systemtime().
int ioctl | ( | int | , |
int | , | ||
... | |||
) |
Definition at line 2755 of file win32.c.
References errno.
Referenced by chfunc(), get_device_once(), io_nread(), and sock_s_unpack_sockaddr_in().
int kill | ( | int | , |
int | |||
) |
Definition at line 4724 of file win32.c.
References EPERM, err, errno, FALSE, FindChildSlot(), ChildRecord::hProcess, map_errno, NULL, RUBY_CRITICAL, SIGINT, and SIGKILL.
Referenced by raise_from_check(), rb_f_kill(), and ruby_kill().
Definition at line 4866 of file win32.c.
References filecp_to_wstr, free(), NULL, and wlink().
Referenced by exec_end_procs_chain(), r_object0(), rb_mark_end_proc(), rb_set_end_proc(), realpath_rec(), and syserr_fail2_in().
struct tm* localtime_r | ( | const time_t * | , |
struct tm * | |||
) |
Definition at line 7705 of file win32.c.
References errno, NULL, systemtime_to_localtime(), systemtime_to_tm(), and unixtime_to_systemtime().
int WSAAPI rb_w32_accept | ( | int | , |
struct sockaddr * | , | ||
int * | |||
) |
Definition at line 3221 of file win32.c.
References errno, map_errno, NtSocketsInitialized, O_BINARY, rb_w32_open_osfhandle(), RUBY_CRITICAL, socklist_insert(), StartSockets(), and TO_SOCKET.
int rb_w32_access | ( | const char * | , |
int | |||
) |
Definition at line 5771 of file win32.c.
References errno, and rb_w32_stati64.
Definition at line 1509 of file win32.c.
References rb_w32_aspawn_flags().
Definition at line 1494 of file win32.c.
References filecp, and w32_aspawn_flags().
Referenced by rb_w32_aspawn().
uintptr_t rb_w32_asynchronize | ( | asynchronous_func_t | func, |
uintptr_t | self, | ||
int | argc, | ||
uintptr_t * | argv, | ||
uintptr_t | intrval | ||
) |
Definition at line 5939 of file win32.c.
References argc, asynchronous_arg_t::argc, argv, asynchronous_arg_t::argv, call_asynchronous(), Debug, errno, asynchronous_arg_t::errnum, FALSE, func, asynchronous_arg_t::func, NULL, rb_fatal(), rb_w32_wait_events_blocking(), RUBY_CRITICAL, asynchronous_arg_t::self, asynchronous_arg_t::stackaddr, TRUE, val, yield_once, and yield_until.
Referenced by flock().
int WSAAPI rb_w32_bind | ( | int | , |
const struct sockaddr * | , | ||
int | |||
) |
Definition at line 3251 of file win32.c.
References errno, map_errno, NtSocketsInitialized, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
int rb_w32_close | ( | int | ) |
Definition at line 6834 of file win32.c.
References _set_osfhnd, constat_delete(), errno, is_socket(), LK_LEN, map_errno, NULL, socklist_delete(), and TO_SOCKET.
Referenced by rb_w32_pipe(), and socketpair().
int WSAAPI rb_w32_connect | ( | int | , |
const struct sockaddr * | , | ||
int | |||
) |
Definition at line 3270 of file win32.c.
References EINPROGRESS, err, errno, map_errno, NtSocketsInitialized, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
int rb_w32_dup2 | ( | int | , |
int | |||
) |
Definition at line 6096 of file win32.c.
References dup2(), and set_new_std_fd.
int rb_w32_fclose | ( | FILE * | ) |
Definition at line 6351 of file win32.c.
References _set_osfhnd, errno, fileno, is_socket(), LK_LEN, map_errno, and TO_SOCKET.
char rb_w32_fd_is_text | ( | int | ) |
void rb_w32_fdclr | ( | int | , |
fd_set * | |||
) |
int rb_w32_fdisset | ( | int | , |
fd_set * | |||
) |
Definition at line 2789 of file win32.c.
References RUBY_CRITICAL, and TO_SOCKET.
void rb_w32_free_environ | ( | char ** | ) |
int rb_w32_fstat | ( | int | , |
struct stat * | |||
) |
int rb_w32_fstati64 | ( | int | , |
struct stati64 * | |||
) |
Definition at line 5368 of file win32.c.
References COPY_STAT, fstat, L, NULL, stat, stati64_handle(), and stati64_set_inode_handle().
int rb_w32_ftruncate | ( | int | fd, |
off_t | length | ||
) |
Definition at line 5866 of file win32.c.
References rb_chsize().
char** rb_w32_get_environ | ( | void | ) |
SOCKET rb_w32_get_osfhandle | ( | int | ) |
Definition at line 1064 of file win32.c.
Referenced by console_beep(), console_echo_p(), rb_io_addstr(), rb_io_set_sync(), rb_stat(), and rb_thread_priority_set().
char* rb_w32_getcwd | ( | char * | , |
int | |||
) |
char* rb_w32_getenv | ( | const char * | ) |
Definition at line 5149 of file win32.c.
References w32_getenv().
struct hostent* WSAAPI rb_w32_gethostbyaddr | ( | const char * | , |
int | , | ||
int | |||
) |
Definition at line 3820 of file win32.c.
References errno, map_errno, NtSocketsInitialized, NULL, RUBY_CRITICAL, and StartSockets().
struct hostent* WSAAPI rb_w32_gethostbyname | ( | const char * | ) |
Definition at line 3838 of file win32.c.
References errno, map_errno, NtSocketsInitialized, NULL, RUBY_CRITICAL, and StartSockets().
int WSAAPI rb_w32_gethostname | ( | char * | , |
int | |||
) |
Definition at line 3856 of file win32.c.
References errno, map_errno, NtSocketsInitialized, RUBY_CRITICAL, and StartSockets().
int WSAAPI rb_w32_getpeername | ( | int | , |
struct sockaddr * | , | ||
int * | |||
) |
Definition at line 3294 of file win32.c.
References errno, map_errno, NtSocketsInitialized, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
rb_pid_t rb_w32_getpid | ( | void | ) |
Definition at line 6049 of file win32.c.
Referenced by rb_w32_pipe().
rb_pid_t rb_w32_getppid | ( | void | ) |
Definition at line 6057 of file win32.c.
References get_proc_address(), len, NULL, STATIC_ASSERT(), and ULONG().
struct protoent* WSAAPI rb_w32_getprotobyname | ( | const char * | ) |
Definition at line 3874 of file win32.c.
References errno, map_errno, NtSocketsInitialized, NULL, RUBY_CRITICAL, and StartSockets().
struct protoent* WSAAPI rb_w32_getprotobynumber | ( | int | ) |
Definition at line 3892 of file win32.c.
References errno, map_errno, NtSocketsInitialized, NULL, RUBY_CRITICAL, and StartSockets().
Definition at line 3910 of file win32.c.
References errno, map_errno, NtSocketsInitialized, NULL, RUBY_CRITICAL, and StartSockets().
struct servent* WSAAPI rb_w32_getservbyport | ( | int | , |
const char * | |||
) |
Definition at line 3928 of file win32.c.
References errno, map_errno, NtSocketsInitialized, NULL, RUBY_CRITICAL, and StartSockets().
int WSAAPI rb_w32_getsockname | ( | int | , |
struct sockaddr * | , | ||
int * | |||
) |
Definition at line 3312 of file win32.c.
References errno, GET_FAMILY, map_errno, NtSocketsInitialized, RUBY_CRITICAL, socklist_lookup(), StartSockets(), and TO_SOCKET.
int WSAAPI rb_w32_getsockopt | ( | int | , |
int | , | ||
int | , | ||
char * | , | ||
int * | |||
) |
Definition at line 3345 of file win32.c.
References errno, map_errno, NtSocketsInitialized, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
int WSAAPI rb_w32_inet_pton | ( | int | , |
const char * | , | ||
void * | |||
) |
Definition at line 7585 of file win32.c.
References get_proc_address(), and NULL.
int rb_w32_io_cancelable_p | ( | int | ) |
Definition at line 2546 of file win32.c.
References is_console(), is_socket(), and TO_SOCKET.
int WSAAPI rb_w32_ioctlsocket | ( | int | , |
long | , | ||
u_long * | |||
) |
Definition at line 3363 of file win32.c.
References errno, map_errno, NtSocketsInitialized, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
int rb_w32_is_socket | ( | int | ) |
Definition at line 2635 of file win32.c.
References is_socket(), and TO_SOCKET.
int WSAAPI rb_w32_listen | ( | int | , |
int | |||
) |
Definition at line 3381 of file win32.c.
References errno, map_errno, NtSocketsInitialized, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
int rb_w32_lstati64 | ( | const char * | , |
struct stati64 * | |||
) |
Definition at line 5750 of file win32.c.
References filecp, and w32_lstati64().
int rb_w32_map_errno | ( | DWORD | ) |
Definition at line 273 of file win32.c.
References errmap, and winerr.
Referenced by join_path(), rb_readlink(), and sock_s_unpack_sockaddr_in().
WCHAR* rb_w32_mbstr_to_wstr | ( | UINT | , |
const char * | , | ||
int | , | ||
long * | |||
) |
Definition at line 2094 of file win32.c.
References len, malloc, and NULL.
Referenced by dln_load(), and join_path().
int rb_w32_mkdir | ( | const char * | , |
int | |||
) |
int rb_w32_open | ( | const char * | , |
int | , | ||
... | |||
) |
Definition at line 6143 of file win32.c.
References filecp_to_wstr, free(), NULL, and w32_wopen().
DWORD rb_w32_osid | ( | void | ) |
Referenced by get_version().
int rb_w32_pipe | ( | int | [2] | ) |
Definition at line 6374 of file win32.c.
References _set_osfhnd, _set_osflags, err, errno, FALSE, FNOINHERIT, FOPEN, FPIPE, map_errno, memcpy, name, NULL, rb_acrt_lowio_lock_fh, rb_acrt_lowio_unlock_fh, rb_w32_close(), rb_w32_getpid(), RUBY_CRITICAL, and snprintf.
ssize_t rb_w32_read | ( | int | , |
void * | , | ||
size_t | |||
) |
Definition at line 6905 of file win32.c.
References _osfhnd, _osfile, _set_osflags, constat_reset(), err, errno, EWOULDBLOCK, FALSE, FEOFLAG, finish_overlapped(), FPIPE, FTEXT, is_console(), is_socket(), len, map_errno, NULL, osver, rb_acrt_lowio_lock_fh, rb_acrt_lowio_unlock_fh, rb_w32_recv(), rb_w32_wait_events_blocking(), setup_overlapped(), size, constat::state, TO_SOCKET, TRUE, and wait().
int WSAAPI rb_w32_recv | ( | int | , |
char * | , | ||
int | , | ||
int | |||
) |
Definition at line 3529 of file win32.c.
References NULL, overlapped_socket_io(), and TRUE.
Referenced by rb_w32_read().
int WSAAPI rb_w32_recvfrom | ( | int | , |
char * | , | ||
int | , | ||
int | , | ||
struct sockaddr * | , | ||
int * | |||
) |
Definition at line 3536 of file win32.c.
References overlapped_socket_io(), and TRUE.
int rb_w32_rmdir | ( | const char * | ) |
int WSAAPI rb_w32_select | ( | int | , |
fd_set * | , | ||
fd_set * | , | ||
fd_set * | , | ||
struct timeval * | |||
) |
Definition at line 3197 of file win32.c.
References rb_w32_select_with_thread().
int WSAAPI rb_w32_send | ( | int | , |
const char * | , | ||
int | , | ||
int | |||
) |
Definition at line 3544 of file win32.c.
References FALSE, NULL, and overlapped_socket_io().
Referenced by rb_w32_write().
Definition at line 3551 of file win32.c.
References FALSE, and overlapped_socket_io().
int rb_w32_set_nonblock | ( | int | ) |
Definition at line 4373 of file win32.c.
References errno, is_pipe(), is_socket(), map_errno, NULL, O_NONBLOCK, setfl(), and TO_SOCKET.
Referenced by rb_io_set_nonblock().
int WSAAPI rb_w32_setsockopt | ( | int | , |
int | , | ||
int | , | ||
const char * | , | ||
int | |||
) |
Definition at line 3705 of file win32.c.
References errno, map_errno, NtSocketsInitialized, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
int WSAAPI rb_w32_shutdown | ( | int | , |
int | |||
) |
Definition at line 3723 of file win32.c.
References errno, map_errno, NtSocketsInitialized, RUBY_CRITICAL, shutdown, StartSockets(), and TO_SOCKET.
int rb_w32_sleep | ( | unsigned long | msec | ) |
Referenced by do_select().
int WINAPI rb_w32_Sleep | ( | unsigned long | msec | ) |
int WSAAPI rb_w32_socket | ( | int | , |
int | , | ||
int | |||
) |
Definition at line 3791 of file win32.c.
References errno, MAKE_SOCKDATA, map_errno, NtSocketsInitialized, O_BINARY, open_ifs_socket(), rb_w32_open_osfhandle(), RUBY_CRITICAL, socklist_insert(), and StartSockets().
Definition at line 1409 of file win32.c.
References filecp, and w32_spawn().
Definition at line 5624 of file win32.c.
References COPY_STAT, and rb_w32_stati64.
int rb_w32_stati64 | ( | const char * | , |
struct stati64 * | |||
) |
Definition at line 5722 of file win32.c.
References filecp, and w32_stati64().
char* rb_w32_strerror | ( | int | ) |
Definition at line 2650 of file win32.c.
References EADDRINUSE, err, errmap, EWOULDBLOCK, memmove(), NULL, strerror(), strlcpy(), strlen(), sys_nerr, and winerr.
void rb_w32_sysinit | ( | int * | , |
char *** | |||
) |
Definition at line 831 of file win32.c.
References exit_handler(), get_version(), init_env(), init_stdhandle(), OnigEncodingUTF_8, StartSockets(), and w32_cmdvector().
Referenced by ruby_sysinit().
Definition at line 3021 of file win32.c.
References timeval::tv_sec, and timeval::tv_usec.
Referenced by rb_w32_select_with_thread().
int rb_w32_times | ( | struct tms * | ) |
Definition at line 5888 of file win32.c.
References filetime_to_clock(), tms::tms_cstime, tms::tms_cutime, tms::tms_stime, and tms::tms_utime.
Definition at line 5859 of file win32.c.
References filecp, and w32_truncate().
int rb_w32_uaccess | ( | const char * | , |
int | |||
) |
Definition at line 5786 of file win32.c.
References errno, and rb_w32_ustati64().
Definition at line 1516 of file win32.c.
References rb_w32_uaspawn_flags().
Referenced by proc_exec_cmd().
Definition at line 1502 of file win32.c.
References w32_aspawn_flags().
Referenced by rb_w32_uaspawn().
int rb_w32_uchdir | ( | const char * | ) |
Definition at line 7298 of file win32.c.
References free(), NULL, and utf8_to_wstr.
int rb_w32_uchmod | ( | const char * | , |
int | |||
) |
Definition at line 7467 of file win32.c.
References free(), NULL, and utf8_to_wstr.
char* rb_w32_ugetenv | ( | const char * | ) |
Definition at line 5142 of file win32.c.
References w32_getenv().
int rb_w32_ulstati64 | ( | const char * | , |
struct stati64 * | |||
) |
Definition at line 5743 of file win32.c.
References w32_lstati64().
int rb_w32_umkdir | ( | const char * | , |
int | |||
) |
int rb_w32_unlink | ( | const char * | ) |
int rb_w32_unwrap_io_handle | ( | int | ) |
Definition at line 7751 of file win32.c.
References _set_osfhnd, constat_delete(), is_socket(), LK_LEN, NULL, socklist_delete(), and TO_SOCKET.
int rb_w32_uopen | ( | const char * | , |
int | , | ||
... | |||
) |
Definition at line 6109 of file win32.c.
References free(), NULL, utf8_to_wstr, and w32_wopen().
ssize_t rb_w32_ureadlink | ( | const char * | , |
char * | , | ||
size_t | |||
) |
Definition at line 5024 of file win32.c.
References w32_readlink().
int rb_w32_urmdir | ( | const char * | ) |
int rb_w32_ustati64 | ( | const char * | , |
struct stati64 * | |||
) |
Definition at line 5087 of file win32.c.
References w32_symlink().
Definition at line 5852 of file win32.c.
References w32_truncate().
int rb_w32_uunlink | ( | const char * | ) |
int rb_w32_wait_events_blocking | ( | HANDLE * | events, |
int | num, | ||
DWORD | timeout | ||
) |
Referenced by finish_overlapped_socket(), poll_child_status(), rb_w32_asynchronize(), rb_w32_read(), rb_w32_write(), and waitpid().
int rb_w32_wopen | ( | const WCHAR * | , |
int | , | ||
... | |||
) |
Definition at line 6163 of file win32.c.
References w32_wopen().
int rb_w32_wrap_io_handle | ( | HANDLE | , |
int | |||
) |
Definition at line 7729 of file win32.c.
References errno, f, len, O_NONBLOCK, rb_w32_open_osfhandle(), and socklist_insert().
ssize_t rb_w32_wreadlink | ( | const WCHAR * | , |
WCHAR * | , | ||
size_t | |||
) |
ssize_t rb_w32_write | ( | int | , |
const void * | , | ||
size_t | |||
) |
Definition at line 7044 of file win32.c.
References _osfhnd, _osfile, err, errno, EWOULDBLOCK, FDEV, FEOFLAG, fileno, finish_overlapped(), FPIPE, FTEXT, is_socket(), len, map_errno, rb_acrt_lowio_lock_fh, rb_acrt_lowio_unlock_fh, rb_w32_send(), rb_w32_wait_events_blocking(), setup_overlapped(), size, TO_SOCKET, TRUE, and wait().
long rb_w32_write_console | ( | uintptr_t | , |
int | |||
) |
Definition at line 7146 of file win32.c.
References _osfhnd, constat_handle(), constat_parse(), ECONV_INVALID_REPLACE, ECONV_UNDEF_REPLACE, ENCINDEX_ASCII, ENCINDEX_US_ASCII, ENCINDEX_UTF_16LE, ENCINDEX_UTF_8, ENCODING_GET, free(), L, len, mbstr_to_wstr, NULL, Qnil, rb_econv_has_convpath_p(), rb_enc_from_index(), rb_enc_name, RB_GC_GUARD, rb_str_conv_enc_opts(), RSTRING_LEN, and RSTRING_PTR.
Referenced by io_fwrite(), and rb_write_error_str().
char* rb_w32_wstr_to_mbstr | ( | UINT | , |
const WCHAR * | , | ||
int | , | ||
long * | |||
) |
Definition at line 2078 of file win32.c.
References len, malloc, and NULL.
Referenced by init_env(), and w32_cmdvector().
ssize_t readlink | ( | const char * | , |
char * | , | ||
size_t | |||
) |
Definition at line 5031 of file win32.c.
References filecp, and w32_readlink().
Referenced by stub_options().
int recvmsg | ( | int | , |
struct msghdr * | , | ||
int | |||
) |
Definition at line 3595 of file win32.c.
References WSAMSG::dwFlags, errno, FALSE, finish_overlapped_socket(), GET_FLAGS, get_wsa_extension_function(), len, map_errno, msghdr::msg_flags, msghdr::msg_name, msghdr::msg_namelen, msghdr_to_wsamsg, WSAMSG::name, WSAMSG::namelen, NtSocketsInitialized, NULL, O_NONBLOCK, RUBY_CRITICAL, size, socklist_lookup(), StartSockets(), TO_SOCKET, TRUE, and WSAID_WSARECVMSG.
|
inlinestatic |
Definition at line 3653 of file win32.c.
References errno, FALSE, finish_overlapped_socket(), GET_FLAGS, get_wsa_extension_function(), len, map_errno, msghdr_to_wsamsg, NtSocketsInitialized, NULL, O_NONBLOCK, RUBY_CRITICAL, size, socklist_lookup(), StartSockets(), TO_SOCKET, TRUE, and WSAID_WSASENDMSG.
int setgid | ( | rb_gid_t | ) |
Definition at line 2744 of file win32.c.
References ROOT_GID.
Referenced by p_gid_change_privilege(), p_uid_change_privilege(), proc_getegid(), proc_getgid(), rb_execarg_run_options(), and rb_setegid_core().
int setuid | ( | rb_uid_t | ) |
Definition at line 2737 of file win32.c.
References ROOT_UID.
Referenced by check_gid_switch(), p_uid_change_privilege(), proc_geteuid(), proc_getuid(), rb_execarg_run_options(), and rb_seteuid_core().
int socketpair | ( | int | , |
int | , | ||
int | , | ||
int * | |||
) |
Definition at line 4036 of file win32.c.
References MAKE_SOCKDATA, O_BINARY, rb_w32_close(), rb_w32_open_osfhandle(), socketpair_internal(), and socklist_insert().
Referenced by sock_initialize().
Definition at line 5094 of file win32.c.
References filecp, and w32_symlink().
rb_pid_t waitpid | ( | rb_pid_t | , |
int * | , | ||
int | |||
) |
Definition at line 4479 of file win32.c.
References count, END_FOREACH_CHILD, errno, FindChildSlot(), FindChildSlotByHandle(), FOREACH_CHILD, ChildRecord::hProcess, map_errno, MAXCHILDNUM, ChildRecord::pid, poll_child_status(), rb_w32_wait_events_blocking(), and WNOHANG.
Referenced by do_waitpid(), and wait().