|
Ruby
2.0.0p353(2013-11-22revision43784)
|
#include <winsock2.h>#include <ws2tcpip.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 | tms |
Macros | |
| #define | WIN32 |
| #define | _INTPTR_T_DEFINED |
| #define | _UINTPTR_T_DEFINED |
| #define | mode_t int |
| #define | rb_w32_iswinnt() TRUE |
| #define | rb_w32_iswin95() FALSE |
| #define | WNOHANG -1 |
| #define | getc(_stream) rb_w32_getc(_stream) |
| #define | getchar() rb_w32_getc(stdin) |
| #define | putc(_c, _stream) rb_w32_putc(_c, _stream) |
| #define | putchar(_c) rb_w32_putc(_c, stdout) |
| #define | stat(path, st) rb_w32_stat(path,st) |
| #define | fstat(fd, st) rb_w32_fstat(fd,st) |
| #define | access(path, mode) rb_w32_access(path,mode) |
| #define | strcasecmp _stricmp |
| #define | strncasecmp _strnicmp |
| #define | fsync _commit |
| #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 | SUFFIX |
| #define | HAVE_FTRUNCATE 1 |
| #define | ftruncate rb_w32_ftruncate |
| #define | HAVE_TRUNCATE 1 |
| #define | truncate rb_w32_truncate |
| #define | HAVE_FSEEKO 1 |
| #define | fseeko rb_w32_fseeko |
| #define | HAVE_FTELLO 1 |
| #define | ftello rb_w32_ftello |
| #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_SETFL 4 |
| #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 uintptr_t(* | asynchronous_func_t )(uintptr_t self, int argc, uintptr_t *argv) |
| #define access | ( | path, | |
| mode | |||
| ) | rb_w32_access(path,mode) |
Definition at line 198 of file win32.h.
Referenced by eaccess(), path_check_0(), rb_file_executable_real_p(), rb_file_identical_p(), rb_file_readable_real_p(), rb_file_writable_real_p(), and rb_w32_wopen().
| #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 rsock_connect().
| #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_w32_connect(), rsock_connect(), and sock_connect_nonblock().
| #define EISCONN WSAEISCONN |
Definition at line 537 of file win32.h.
Referenced by rsock_connect().
| #define ELOOP WSAELOOP |
Definition at line 555 of file win32.h.
Referenced by realpath_rec().
| #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(), and rb_cloexec_fcntl_dupfd().
| #define F_SETFL 4 |
Definition at line 587 of file win32.h.
Referenced by fcntl(), Init_fcntl(), make_fd_nonblock(), and rb_io_set_nonblock().
| #define FD_SET | ( | fd, | |
| set | |||
| ) |
| #define fseeko rb_w32_fseeko |
| #define fstat | ( | fd, | |
| st | |||
| ) | rb_w32_fstat(fd,st) |
Definition at line 194 of file win32.h.
Referenced by argf_next_argv(), fill_random_seed(), fill_standard_fds(), load_file_internal(), rb_file_atime(), rb_file_ctime(), rb_file_load_ok(), rb_file_mtime(), rb_file_size(), rb_io_initialize(), rb_io_stat(), rb_stat(), rb_update_max_fd(), rb_w32_fstat(), rb_w32_fstati64(), readline_readline(), remain_size(), rsock_init_sock(), sdbm_prep(), and wsplit_p().
| #define fsync _commit |
Definition at line 202 of file win32.h.
Referenced by rb_io_rewind().
| #define ftello rb_w32_ftello |
| #define ftruncate rb_w32_ftruncate |
| #define getc | ( | _stream | ) | rb_w32_getc(_stream) |
| #define getchar | ( | ) | rb_w32_getc(stdin) |
| #define isnan | ( | x | ) | _isnan(x) |
Definition at line 327 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_gt(), flo_is_finite_p(), flo_is_nan_p(), flo_le(), flo_lt(), flo_round(), flo_to_s(), float_arg(), float_denominator(), float_numerator(), float_value(), flodivmod(), generate_json_float(), nurat_div(), opt_eq_func(), rb_big_fdiv(), rb_dbl_cmp(), rb_integer_float_cmp(), rb_integer_float_eq(), rb_str_format(), ruby_hdtoa(), VpDtoV(), and w_float().
| #define mode_t int |
Definition at line 100 of file win32.h.
Referenced by get_device_once(), rb_execarg_addopt(), rb_execarg_run_options(), rb_io_open(), rb_io_s_sysopen(), rb_open_file(), and rb_scan_open_args().
| #define O_NONBLOCK 1 |
Definition at line 591 of file win32.h.
Referenced by fill_random_seed(), Init_fcntl(), Init_File(), make_fd_nonblock(), overlapped_socket_io(), rb_io_set_nonblock(), rb_w32_wrap_io_handle(), recvmsg(), sendmsg(), setfl(), and wsplit_p().
| #define putc | ( | _c, | |
| _stream | |||
| ) | rb_w32_putc(_c, _stream) |
| #define putchar | ( | _c | ) | rb_w32_putc(_c, stdout) |
| #define S_IRGRP 0040 |
Definition at line 365 of file win32.h.
Referenced by rb_stat_r(), and rb_stat_R().
| #define S_IROTH 0004 |
Definition at line 368 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 362 of file win32.h.
Referenced by rb_stat_r(), and rb_stat_R().
| #define S_IWGRP 0020 |
Definition at line 375 of file win32.h.
Referenced by rb_stat_w(), rb_stat_W(), rb_w32_fstat(), rb_w32_fstati64(), and wstati64().
| #define S_IWUSR 0200 |
Definition at line 372 of file win32.h.
Referenced by fileattr_to_unixmode(), rb_stat_w(), rb_stat_W(), rb_w32_fstat(), and rb_w32_fstati64().
| #define S_IXGRP 0010 |
Definition at line 385 of file win32.h.
Referenced by rb_stat_x(), and rb_stat_X().
| #define S_IXOTH 0001 |
Definition at line 388 of file win32.h.
Referenced by rb_stat_x(), and rb_stat_X().
| #define S_IXUSR 0100 |
Definition at line 382 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(), rb_signal_exec(), and ruby_sig_finalize().
| #define stat | ( | path, | |
| st | |||
| ) | rb_w32_stat(path,st) |
Definition at line 193 of file win32.h.
Referenced by argf_next_argv(), dln_find_1(), do_stat(), eaccess(), fill_random_seed(), fill_standard_fds(), get_stat(), glob_helper(), load_file_internal(), main(), path_check_0(), rb_f_test(), rb_file_atime(), rb_file_blockdev_p(), rb_file_chardev_p(), rb_file_ctime(), rb_file_directory_p(), rb_file_exist_p(), rb_file_expand_path_internal(), rb_file_file_p(), rb_file_grpowned_p(), rb_file_identical_p(), rb_file_load_ok(), rb_file_lstat(), rb_file_mtime(), rb_file_owned_p(), rb_file_pipe_p(), rb_file_rowned_p(), rb_file_s_atime(), rb_file_s_ctime(), rb_file_s_ftype(), rb_file_s_lstat(), rb_file_s_mtime(), rb_file_s_size(), rb_file_s_stat(), rb_file_size(), rb_file_size_p(), rb_file_socket_p(), rb_file_symlink_p(), rb_file_world_readable_p(), rb_file_world_writable_p(), rb_file_zero_p(), rb_io_initialize(), rb_io_stat(), rb_stat_init(), rb_stat_init_copy(), rb_stat_inspect(), rb_stat_r(), rb_stat_R(), rb_stat_w(), rb_stat_W(), rb_stat_x(), rb_stat_X(), rb_update_max_fd(), rb_w32_fstati64(), readline_readline(), realpath_rec(), remain_size(), rsock_init_sock(), sdbm_prep(), stat_memsize(), stat_new_0(), vm_call_method(), and wsplit_p().
| #define strcasecmp _stricmp |
Definition at line 200 of file win32.h.
Referenced by is_batch(), is_command_com(), ole_method_sub(), and parser_set_token_info().
| #define strncasecmp _strnicmp |
Definition at line 201 of file win32.h.
Referenced by date__strptime_internal(), day_num(), mon_num(), rb_file_expand_path_internal(), rb_w32_getenv(), and rb_w32_ugetenv().
| #define truncate rb_w32_truncate |
| #define WNOHANG -1 |
Definition at line 109 of file win32.h.
Referenced by Init_process(), pty_check(), and waitpid().
Definition at line 4065 of file win32.c.
Referenced by argf_next_argv(), chown_internal(), get_device_once(), and rb_file_chown().
Definition at line 3835 of file win32.c.
References _osfile, arg, dupfd(), errno, F_DUPFD, F_SETFL, FNOINHERIT, is_socket(), map_errno, ret, setfl(), TO_SOCKET, and va_end().
Referenced by dup2(), fd_set_cloexec(), make_fd_nonblock(), rb_cloexec_fcntl_dupfd(), rb_io_initialize(), rb_io_set_nonblock(), rb_maygvl_fd_fix_cloexec(), run_exec_dup2(), and wsplit_p().
Definition at line 125 of file flock.c.
References flock_winnt(), NULL, rb_notimplement(), and rb_w32_asynchronize().
| rb_gid_t getegid | ( | void | ) |
Definition at line 2413 of file win32.c.
References ROOT_GID.
Referenced by init_ids(), Init_process(), p_gid_change_privilege(), p_gid_exchange(), p_gid_switch(), proc_getegid(), and rb_group_member().
| rb_uid_t geteuid | ( | void | ) |
Definition at line 2399 of file win32.c.
References ROOT_UID.
Referenced by eaccess(), init_ids(), Init_process(), p_gid_change_privilege(), p_uid_change_privilege(), p_uid_exchange(), p_uid_switch(), proc_geteuid(), 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 2406 of file win32.c.
References ROOT_GID.
Referenced by etc_getgrgid(), get_device_once(), init_ids(), p_gid_change_privilege(), p_gid_exchange(), p_gid_switch(), proc_getgid(), rb_group_member(), and rb_setegid_core().
Definition at line 4013 of file win32.c.
References filetime_to_timeval().
Referenced by datetime_s_now(), fill_random_seed(), getclockofday(), rb_w32_select_with_thread(), time_init_0(), and timeofday().
| rb_uid_t getuid | ( | void | ) |
Definition at line 2392 of file win32.c.
References ROOT_UID.
Referenced by argf_next_argv(), chfunc(), establishShell(), etc_getpwuid(), get_device_once(), init_ids(), p_uid_change_privilege(), p_uid_exchange(), p_uid_switch(), proc_getuid(), 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 6646 of file win32.c.
References e, errno, NULL, st, systemtime_to_tm(), and unixtime_to_systemtime().
Definition at line 2438 of file win32.c.
Referenced by chfunc(), get_device_once(), io_nread(), io_ready_p(), io_wait_readable(), and nogvl_ioctl().
Definition at line 4079 of file win32.c.
References EPERM, err, errno, FALSE, FindChildSlot(), ChildRecord::hProcess, map_errno, NULL, ret, RUBY_CRITICAL, SIGINT, SIGKILL, and status.
Referenced by raise_from_check(), and rb_f_kill().
Definition at line 4235 of file win32.c.
References filecp_to_wstr, free, NULL, ret, and wlink().
Referenced by r_object0(), rb_exec_end_proc(), rb_mark_end_proc(), rb_set_end_proc(), and realpath_rec().
| struct tm* localtime_r | ( | const time_t * | , |
| struct tm * | |||
| ) |
Definition at line 6670 of file win32.c.
References e, errno, NULL, systemtime_to_localtime(), systemtime_to_tm(), and unixtime_to_systemtime().
Definition at line 2906 of file win32.c.
References _pioinfo(), _set_osfhnd, errno, map_errno, MTHREAD_ONLY, NULL, O_BINARY, r, rb_w32_open_osfhandle(), RUBY_CRITICAL, socklist_insert(), StartSockets(), and TO_SOCKET.
Definition at line 4733 of file win32.c.
References errno, and rb_w32_stati64().
Definition at line 1357 of file win32.c.
References rb_w32_aspawn_flags().
Definition at line 1287 of file win32.c.
References acp_to_wstr, ALLOCV, ALLOCV_END, argv, check_spawn_mode(), child_result(), cmd, CreateChild(), dln_find_exe_r(), e, errno, FALSE, fbuf, free, getenv(), internal_cmd_match(), is_batch(), is_command_com(), join_argv(), len, MAXPATHLEN, NULL, ret, shell, strchr(), strlcat(), strlcpy(), strlen(), STRNDUPV, translate_char(), and v.
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 5013 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, m, memset(), 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().
Definition at line 2942 of file win32.c.
References errno, map_errno, r, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
Definition at line 5840 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 rb_w32_socketpair().
Definition at line 1491 of file win32.c.
References c, calloc, CharNext, cmdglob(), done, _NtCmdLineElement::flags, free, ISSPACE, _NtCmdLineElement::len, len, malloc(), memcpy(), _NtCmdLineElement::next, NTMALLOC, NULL, p, ptr, skipspace(), _NtCmdLineElement::str, strdup, strlcpy(), and tail.
Referenced by rb_w32_sysinit().
Definition at line 2961 of file win32.c.
References EINPROGRESS, err, errno, map_errno, r, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
Definition at line 5407 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_free_environ | ( | char ** | ) |
Definition at line 4808 of file win32.c.
References rb_chsize().
| char** rb_w32_get_environ | ( | void | ) |
| SOCKET rb_w32_get_osfhandle | ( | int | ) |
Definition at line 958 of file win32.c.
Referenced by rb_cloexec_dup2(), rb_io_flush(), and rb_io_rewind().
Definition at line 4953 of file win32.c.
References c, catch_interrupt(), clearerr, enough_to_get, EOF, and errno.
| char* rb_w32_getcwd | ( | char * | , |
| int | |||
| ) |
| char* rb_w32_getenv | ( | const char * | ) |
Definition at line 4300 of file win32.c.
References env, free, len, map_errno, NULL, strlen(), and strncasecmp.
Referenced by init_env().
Definition at line 3502 of file win32.c.
References errno, map_errno, NULL, r, RUBY_CRITICAL, and StartSockets().
| struct hostent* WSAAPI rb_w32_gethostbyname | ( | const char * | ) |
Definition at line 3520 of file win32.c.
References errno, map_errno, NULL, r, RUBY_CRITICAL, and StartSockets().
Definition at line 3538 of file win32.c.
References errno, map_errno, r, RUBY_CRITICAL, and StartSockets().
Definition at line 2985 of file win32.c.
References errno, map_errno, r, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
| rb_pid_t rb_w32_getpid | ( | void | ) |
Definition at line 5123 of file win32.c.
Referenced by rb_w32_pipe().
| rb_pid_t rb_w32_getppid | ( | void | ) |
Definition at line 5131 of file win32.c.
References get_proc_address(), int, len, NULL, rb_w32_osver(), and ULONG().
| struct protoent* WSAAPI rb_w32_getprotobyname | ( | const char * | ) |
Definition at line 3556 of file win32.c.
References errno, map_errno, NULL, r, RUBY_CRITICAL, and StartSockets().
| struct protoent* WSAAPI rb_w32_getprotobynumber | ( | int | ) |
Definition at line 3574 of file win32.c.
References errno, map_errno, NULL, r, RUBY_CRITICAL, and StartSockets().
Definition at line 3592 of file win32.c.
References errno, map_errno, NULL, r, RUBY_CRITICAL, and StartSockets().
Definition at line 3610 of file win32.c.
References errno, map_errno, NULL, r, RUBY_CRITICAL, and StartSockets().
Definition at line 3003 of file win32.c.
References errno, flags, GET_FAMILY, map_errno, memset(), r, RUBY_CRITICAL, socklist_lookup(), StartSockets(), and TO_SOCKET.
Definition at line 3036 of file win32.c.
References errno, map_errno, r, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
Definition at line 2195 of file win32.c.
References cancel_io, is_console(), is_socket(), NULL, and TO_SOCKET.
Definition at line 3054 of file win32.c.
References errno, map_errno, r, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
Definition at line 2309 of file win32.c.
References is_socket(), and TO_SOCKET.
Referenced by rsock_init_sock().
Definition at line 3072 of file win32.c.
References errno, map_errno, r, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
Definition at line 5210 of file win32.c.
References arg, check_if_dir(), errno, filecp_to_wstr, free, NULL, O_BINARY, rb_w32_wopen(), ret, and va_end().
Definition at line 5430 of file win32.c.
References _pioinfo(), _set_osfhnd, _set_osflags, cancel_io, err, errno, FALSE, FNOINHERIT, FOPEN, FPIPE, map_errno, MTHREAD_ONLY, name, NULL, p, rb_w32_close(), rb_w32_getpid(), ret, RUBY_CRITICAL, snprintf, strchr(), and strlen().
Definition at line 4974 of file win32.c.
References c, catch_interrupt(), and enough_to_put.
Definition at line 5907 of file win32.c.
References _osfhnd, _osfile, _pioinfo(), _set_osflags, cancel_io, constat_reset(), err, errno, FALSE, FEOFLAG, finish_overlapped(), FTEXT, is_console(), is_socket(), len, map_errno, mode, MTHREAD_ONLY, NULL, osver, rb_w32_recv(), rb_w32_wait_events_blocking(), ret, retry, setup_overlapped(), size, TO_SOCKET, TRUE, and wait.
Definition at line 3213 of file win32.c.
References NULL, overlapped_socket_io(), and TRUE.
Referenced by rb_w32_read().
Definition at line 3220 of file win32.c.
References overlapped_socket_io(), and TRUE.
Definition at line 2882 of file win32.c.
References rb_w32_select_with_thread().
Definition at line 3228 of file win32.c.
References FALSE, NULL, and overlapped_socket_io().
Referenced by rb_w32_write().
Definition at line 3235 of file win32.c.
References FALSE, and overlapped_socket_io().
Definition at line 3389 of file win32.c.
References errno, map_errno, r, RUBY_CRITICAL, StartSockets(), and TO_SOCKET.
Definition at line 3407 of file win32.c.
References errno, map_errno, r, 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 | ) |
Definition at line 3473 of file win32.c.
References errno, MAKE_SOCKDATA, map_errno, O_BINARY, open_ifs_socket(), rb_w32_open_osfhandle(), RUBY_CRITICAL, s, socklist_insert(), and StartSockets().
Definition at line 3717 of file win32.c.
References MAKE_SOCKDATA, O_BINARY, pair, rb_w32_close(), rb_w32_open_osfhandle(), socketpair_internal(), and socklist_insert().
Definition at line 1180 of file win32.c.
References acp_to_wstr, ALLOCV, ALLOCV_END, CharNext, check_spawn_mode(), child_result(), cmd, CreateChild(), dln_find_exe_r(), e, errno, fbuf, free, getenv(), has_redirection(), is_batch(), is_command_com(), is_internal_cmd(), ISSPACE, len, MAXPATHLEN, memcpy(), NULL, p, ret, shell, strchr(), strlen(), STRNDUPV, tmp, translate_char(), and v.
Referenced by proc_exec_sh().
Definition at line 4645 of file win32.c.
References COPY_STAT, and rb_w32_stati64().
Definition at line 4719 of file win32.c.
References filecp_to_wstr, free, NULL, ret, and wstati64().
Referenced by rb_w32_access(), and rb_w32_stat().
| char* rb_w32_strerror | ( | int | ) |
Definition at line 2704 of file win32.c.
References timeval::tv_sec, and timeval::tv_usec.
Referenced by rb_w32_select_with_thread().
Definition at line 4900 of file win32.c.
References filetime_to_clock(), tms::tms_cstime, tms::tms_cutime, tms::tms_stime, and tms::tms_utime.
Definition at line 4748 of file win32.c.
References errno, and rb_w32_ustati64().
| char* rb_w32_ugetenv | ( | const char * | ) |
Definition at line 4262 of file win32.c.
References env, free, len, map_errno, NULL, strlen(), strncasecmp, and wstr_to_mbstr().
Definition at line 6716 of file win32.c.
References _set_osfhnd, constat_delete(), is_socket(), LK_LEN, NULL, socklist_delete(), and TO_SOCKET.
Definition at line 5162 of file win32.c.
References arg, free, NULL, rb_w32_wopen(), ret, utf8_to_wstr, and va_end().
Definition at line 4705 of file win32.c.
References free, NULL, ret, utf8_to_wstr, and wstati64().
Referenced by rb_w32_uaccess().
Referenced by finish_overlapped_socket(), poll_child_status(), rb_w32_asynchronize(), rb_w32_read(), rb_w32_write(), and waitpid().
Definition at line 5235 of file win32.c.
References _osfile, _pioinfo(), _set_osfhnd, _set_osflags, access, arg, check_if_wdir(), errno, FALSE, FAPPEND, FDEV, FNOINHERIT, FOPEN, FPIPE, map_errno, MTHREAD_ONLY, NULL, O_BINARY, RUBY_CRITICAL, TRUE, and va_end().
Referenced by rb_w32_open(), and rb_w32_uopen().
Definition at line 6694 of file win32.c.
References errno, len, O_NONBLOCK, r, rb_w32_open_osfhandle(), socklist_insert(), and tmp.
Definition at line 6044 of file win32.c.
References _osfhnd, _osfile, _pioinfo(), cancel_io, err, errno, FDEV, FEOFLAG, fileno, finish_overlapped(), FPIPE, FTEXT, is_socket(), len, map_errno, min(), MTHREAD_ONLY, NULL, rb_w32_send(), rb_w32_wait_events_blocking(), ret, retry, setup_overlapped(), size, TO_SOCKET, TRUE, and wait.
Definition at line 6145 of file win32.c.
References _osfhnd, constat_handle(), constat_parse(), ECONV_INVALID_REPLACE, ECONV_UNDEF_REPLACE, len, NULL, ptr, Qnil, rb_econv_has_convpath_p(), rb_enc_find(), rb_enc_from_encoding(), rb_enc_get(), rb_enc_name, RB_GC_GUARD, rb_str_encode(), RSTRING_LEN, RSTRING_PTR, s, and TRUE.
Referenced by io_fwrite().
Definition at line 3279 of file win32.c.
References cancel_io, WSAMSG::dwFlags, errno, FALSE, finish_overlapped_socket(), flags, GET_FLAGS, get_wsa_extension_function(), int, len, map_errno, memset(), mode, msghdr::msg_flags, msghdr::msg_name, msghdr::msg_namelen, msghdr_to_wsamsg, WSAMSG::name, WSAMSG::namelen, NULL, O_NONBLOCK, ret, RUBY_CRITICAL, s, size, socklist_lookup(), StartSockets(), TO_SOCKET, TRUE, and WSAID_WSARECVMSG.
Definition at line 3337 of file win32.c.
References cancel_io, errno, FALSE, finish_overlapped_socket(), GET_FLAGS, get_wsa_extension_function(), int, len, map_errno, memset(), mode, msghdr_to_wsamsg, NULL, O_NONBLOCK, ret, RUBY_CRITICAL, s, size, socklist_lookup(), StartSockets(), TO_SOCKET, TRUE, and WSAID_WSASENDMSG.
| int setgid | ( | rb_gid_t | ) |
Definition at line 2427 of file win32.c.
References ROOT_GID.
Referenced by p_gid_change_privilege(), rb_execarg_run_options(), and rb_setegid_core().
| int setuid | ( | rb_uid_t | ) |
Definition at line 2420 of file win32.c.
References ROOT_UID.
Referenced by p_uid_change_privilege(), rb_execarg_run_options(), and rb_seteuid_core().
Definition at line 3919 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(), ret, and WNOHANG.
Referenced by rb_waitpid_blocking(), and wait().
1.8.5