/libuv/test/ |
H A D | test-fs-fd-hash.c | 38 struct uv__fd_info_s info = { 0 }; in assert_nonexistent() local 44 struct uv__fd_info_s info = { 0 }; in assert_existent() local 50 struct uv__fd_info_s info = { 0 }; in assert_insertion() local 52 info.flags = fd + FD_DIFF; in assert_insertion() 53 uv__fd_hash_add(fd, &info); in assert_insertion() 58 struct uv__fd_info_s info = { 0 }; in assert_removal() local 60 uv__fd_hash_remove(fd, &info); in assert_removal() 103 info.flags = FD_DIFF + FD_DIFF; in TEST_IMPL() 104 uv__fd_hash_add(0, &info); in TEST_IMPL() 114 info.flags = FD_DIFF; in TEST_IMPL() [all …]
|
H A D | test-tty-escape-sequence-processing.c | 107 CONSOLE_SCREEN_BUFFER_INFO info; in set_cursor_position() local 110 pos.Y += info.srWindow.Top - 1; in set_cursor_position() 119 cursor_position->Y = info.dwCursorPosition.Y - info.srWindow.Top + 1; in get_cursor_position() 129 CONSOLE_CURSOR_INFO info; in get_cursor_info() local 131 return info; in get_cursor_info() 136 info.dwSize = size; in set_cursor_size() 146 info.bVisible = visible; in set_cursor_visibility() 177 length = info.dwSize.X * (info.srWindow.Bottom - info.srWindow.Top + 1); in setup_screen() 179 origin.Y = info.srWindow.Top; in setup_screen() 190 length = (info.srWindow.Bottom - info.srWindow.Top + 1) * info.dwSize.X - 1; in clear_screen() [all …]
|
H A D | runner-win.c | 309 CONSOLE_SCREEN_BUFFER_INFO info; in clear_line() local 317 if (!GetConsoleScreenBufferInfo(handle, &info)) in clear_line() 320 coord = info.dwCursorPosition; in clear_line() 331 info.dwSize.X, in clear_line()
|
/libuv/src/unix/ |
H A D | darwin.c | 99 vm_statistics_data_t info; in uv_get_free_memory() local 112 uint64_t info; in uv_get_total_memory() local 114 size_t size = sizeof(info); in uv_get_total_memory() 119 return (uint64_t) info; in uv_get_total_memory() 134 struct loadavg info; in uv_loadavg() local 135 size_t size = sizeof(info); in uv_loadavg() 140 avg[0] = (double) info.ldavg[0] / info.fscale; in uv_loadavg() 141 avg[1] = (double) info.ldavg[1] / info.fscale; in uv_loadavg() 142 avg[2] = (double) info.ldavg[2] / info.fscale; in uv_loadavg() 161 *rss = info.resident_size; in uv_resident_set_memory() [all …]
|
H A D | openbsd.c | 49 struct loadavg info; in uv_loadavg() local 50 size_t size = sizeof(info); in uv_loadavg() 55 avg[0] = (double) info.ldavg[0] / info.fscale; in uv_loadavg() 56 avg[1] = (double) info.ldavg[1] / info.fscale; in uv_loadavg() 57 avg[2] = (double) info.ldavg[2] / info.fscale; in uv_loadavg() 114 struct uvmexp info; in uv_get_free_memory() local 126 uint64_t info; in uv_get_total_memory() local 133 return (uint64_t) info; in uv_get_total_memory() 170 struct timeval info; in uv_uptime() local 187 uint64_t info[CPUSTATES]; in uv_cpu_info() local [all …]
|
H A D | sysinfo-memory.c | 29 struct sysinfo info; in uv_get_free_memory() local 31 if (sysinfo(&info) == 0) in uv_get_free_memory() 32 return (uint64_t) info.freeram * info.mem_unit; in uv_get_free_memory() 37 struct sysinfo info; in uv_get_total_memory() local 39 if (sysinfo(&info) == 0) in uv_get_total_memory() 40 return (uint64_t) info.totalram * info.mem_unit; in uv_get_total_memory()
|
H A D | netbsd.c | 54 struct loadavg info; in uv_loadavg() local 55 size_t size = sizeof(info); in uv_loadavg() 60 avg[0] = (double) info.ldavg[0] / info.fscale; in uv_loadavg() 61 avg[1] = (double) info.ldavg[1] / info.fscale; in uv_loadavg() 62 avg[2] = (double) info.ldavg[2] / info.fscale; in uv_loadavg() 101 struct uvmexp info; in uv_get_free_memory() local 102 size_t size = sizeof(info); in uv_get_free_memory() 114 uint64_t info; in uv_get_total_memory() local 117 unsigned int info; in uv_get_total_memory() 125 return (uint64_t) info; in uv_get_total_memory() [all …]
|
H A D | sysinfo-loadavg.c | 29 struct sysinfo info; in uv_loadavg() local 31 if (sysinfo(&info) < 0) return; in uv_loadavg() 33 avg[0] = (double) info.loads[0] / 65536.0; in uv_loadavg() 34 avg[1] = (double) info.loads[1] / 65536.0; in uv_loadavg() 35 avg[2] = (double) info.loads[2] / 65536.0; in uv_loadavg()
|
H A D | freebsd.c | 107 unsigned long info; in uv_get_total_memory() local 110 size_t size = sizeof(info); in uv_get_total_memory() 112 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory() 115 return (uint64_t) info; in uv_get_total_memory() 130 struct loadavg info; in uv_loadavg() local 131 size_t size = sizeof(info); in uv_loadavg() 134 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg() 136 avg[0] = (double) info.ldavg[0] / info.fscale; in uv_loadavg() 137 avg[1] = (double) info.ldavg[1] / info.fscale; in uv_loadavg() 138 avg[2] = (double) info.ldavg[2] / info.fscale; in uv_loadavg()
|
H A D | cygwin.c | 29 struct sysinfo info; in uv_uptime() local 31 if (sysinfo(&info) < 0) in uv_uptime() 34 *uptime = info.uptime; in uv_uptime()
|
H A D | darwin-stub.h | 61 void* info; member 68 void* info; member
|
H A D | qnx.c | 42 *totalmem = msg.o.info.__posix_tmi_total; in get_mem_info() 43 *freemem = msg.o.info.posix_tmi_length; in get_mem_info()
|
H A D | linux.c | 2066 struct sysinfo info; in uv_get_free_memory() local 2074 if (0 == sysinfo(&info)) in uv_get_free_memory() 2075 return (uint64_t) info.freeram * info.mem_unit; in uv_get_free_memory() 2082 struct sysinfo info; in uv_get_total_memory() local 2090 if (0 == sysinfo(&info)) in uv_get_total_memory() 2091 return (uint64_t) info.totalram * info.mem_unit; in uv_get_total_memory() 2419 struct sysinfo info; in uv_loadavg() local 2426 if (sysinfo(&info) < 0) in uv_loadavg() 2429 avg[0] = (double) info.loads[0] / 65536.0; in uv_loadavg() 2430 avg[1] = (double) info.loads[1] / 65536.0; in uv_loadavg() [all …]
|
H A D | fsevents.c | 216 void* info, in uv__fsevents_event_cb() argument 234 loop = info; in uv__fsevents_event_cb() 338 ctx.info = loop; in uv__fsevents_create_stream() 620 ctx.info = loop; in uv__fsevents_loop_init()
|
/libuv/src/win/ |
H A D | winsock.c | 276 AFD_RECV_INFO info; in uv__wsarecv_workaround() local 284 info.BufferArray = buffers; in uv__wsarecv_workaround() 285 info.BufferCount = buffer_count; in uv__wsarecv_workaround() 286 info.AfdFlags = AFD_OVERLAPPED; in uv__wsarecv_workaround() 287 info.TdiFlags = TDI_RECEIVE_NORMAL; in uv__wsarecv_workaround() 371 AFD_RECV_DATAGRAM_INFO info; in uv__wsarecvfrom_workaround() local 380 info.BufferArray = buffers; in uv__wsarecvfrom_workaround() 381 info.BufferCount = buffer_count; in uv__wsarecvfrom_workaround() 382 info.AfdFlags = AFD_OVERLAPPED; in uv__wsarecvfrom_workaround() 384 info.Address = addr; in uv__wsarecvfrom_workaround() [all …]
|
H A D | fs-fd-hash-inl.h | 55 struct uv__fd_info_s info; member 122 INLINE static int uv__fd_hash_get(int fd, struct uv__fd_info_s* info) { in uv__fd_hash_get() argument 130 *info = entry_ptr->info; in uv__fd_hash_get() 137 INLINE static void uv__fd_hash_add(int fd, struct uv__fd_info_s* info) { in uv__fd_hash_add() argument 162 entry_ptr->info = *info; in uv__fd_hash_add() 167 INLINE static int uv__fd_hash_remove(int fd, struct uv__fd_info_s* info) { in uv__fd_hash_remove() argument 175 *info = entry_ptr->info; in uv__fd_hash_remove()
|
H A D | fs.c | 1433 wchar_len = info->FileNameLength / sizeof info->FileName[0]; in fs__scandir() 1527 req->fs.info.nbufs = 0; in fs__scandir() 3007 if (req->fs.info.bufs != req->fs.info.bufsml) in uv_fs_req_cleanup() 3013 req->fs.info.bufs = NULL; in uv_fs_req_cleanup() 3032 req->fs.info.mode = mode; in uv_fs_open() 3061 req->fs.info.bufs = req->fs.info.bufsml; in uv_fs_read() 3094 req->fs.info.bufs = req->fs.info.bufsml; in uv_fs_write() 3136 req->fs.info.mode = mode; in uv_fs_mkdir() 3479 req->fs.info.mode = flags; in uv_fs_access() 3495 req->fs.info.mode = mode; in uv_fs_chmod() [all …]
|
H A D | tty.c | 413 CONSOLE_SCREEN_BUFFER_INFO info; in uv_tty_get_winsize() local 420 uv__tty_update_virtual_window(&info); in uv_tty_get_winsize() 1131 uv_tty_virtual_height = info->srWindow.Bottom - info->srWindow.Top + 1; in uv__tty_update_virtual_window() 1157 uv__tty_update_virtual_window(info); in uv__tty_make_real_coord() 1161 y = info->dwCursorPosition.Y + y; in uv__tty_make_real_coord() 1174 x = info->dwCursorPosition.X + x; in uv__tty_make_real_coord() 1212 CONSOLE_SCREEN_BUFFER_INFO info; in uv__tty_move_caret() local 1306 CONSOLE_SCREEN_BUFFER_INFO info; in uv__tty_clear() local 1396 CONSOLE_SCREEN_BUFFER_INFO info; in uv__tty_set_style() local 1550 CONSOLE_SCREEN_BUFFER_INFO info; in uv__tty_save_state() local [all …]
|
H A D | process.c | 86 JOBOBJECT_EXTENDED_LIMIT_INFORMATION info; in uv__init_global_job_handle() local 91 memset(&info, 0, sizeof info); in uv__init_global_job_handle() 92 info.BasicLimitInformation.LimitFlags = in uv__init_global_job_handle() 104 &info, in uv__init_global_job_handle() 105 sizeof info)) in uv__init_global_job_handle() 900 PROCESS_INFORMATION info; in uv_spawn() local 1066 &info)) { in uv_spawn() 1097 TerminateProcess(info.hProcess, 1); in uv_spawn() 1105 process->pid = info.dwProcessId; in uv_spawn() 1114 info.dwProcessId; in uv_spawn() [all …]
|
H A D | fs-event.c | 569 FILE_STANDARD_INFO info; in uv__process_fs_event_req() local 574 &info, in uv__process_fs_event_req() 575 sizeof(info)) && in uv__process_fs_event_req() 576 info.Directory && in uv__process_fs_event_req() 577 info.DeletePending) { in uv__process_fs_event_req()
|
H A D | udp.c | 61 WSAPROTOCOL_INFOW info; in uv__udp_set_socket() local 91 opt_len = (int) sizeof info; in uv__udp_set_socket() 93 socket, SOL_SOCKET, SO_PROTOCOL_INFOW, (char*) &info, &opt_len) == in uv__udp_set_socket() 98 if (info.ProtocolChain.ChainLen == 1) { in uv__udp_set_socket()
|
/libuv/docs/code/interfaces/ |
H A D | main.c | 6 uv_interface_address_t *info; in main() local 9 uv_interface_addresses(&info, &count); in main() 14 uv_interface_address_t interface_a = info[i]; in main() 31 uv_free_interface_addresses(info, count); in main()
|
/libuv/docs/code/multi-echo-server/ |
H A D | main.c | 66 uv_cpu_info_t *info; in setup_workers() local 68 uv_cpu_info(&info, &cpu_count); in setup_workers() 69 uv_free_cpu_info(info, cpu_count); in setup_workers()
|
/libuv/docs/ |
H A D | Makefile | 44 @echo " info to make Texinfo files and run them through makeinfo" 148 info: target 151 make -C $(BUILDDIR)/texinfo info
|
/libuv/ |
H A D | configure.ac | 1 # Copyright (c) 2013, Ben Noordhuis <info@bnoordhuis.nl>
|