/libuv/test/ |
H A D | test-hrtime.c | 56 uv_timespec64_t t; in TEST_IMPL() local 58 ASSERT_EQ(UV_EINVAL, uv_clock_gettime(1337, &t)); in TEST_IMPL() 60 ASSERT_OK(uv_clock_gettime(UV_CLOCK_MONOTONIC, &t)); in TEST_IMPL() 61 ASSERT_OK(uv_clock_gettime(UV_CLOCK_REALTIME, &t)); in TEST_IMPL() 62 ASSERT_GT(1682500000000ll, t.tv_sec); /* 2023-04-26T09:06:40.000Z */ in TEST_IMPL()
|
H A D | test-tcp-rst.c | 46 static void read_cb(uv_stream_t* t, ssize_t nread, const uv_buf_t* buf) { in read_cb() argument 47 ASSERT_PTR_EQ((uv_tcp_t*) t, &tcp); in read_cb() 51 ASSERT_OK(uv_fileno((uv_handle_t*) t, &fd)); in read_cb() 55 uv_close((uv_handle_t *) t, close_cb); in read_cb()
|
H A D | test-shutdown-simultaneous.c | 52 static void read_cb(uv_stream_t* t, ssize_t nread, const uv_buf_t* buf) { in read_cb() argument 53 ASSERT_PTR_EQ((uv_tcp_t*)t, &tcp); in read_cb()
|
H A D | test-fs.c | 1407 struct stat t; in TEST_IMPL() local 1430 memset(&t, 0, sizeof(t)); in TEST_IMPL() 1431 ASSERT_OK(fstat(file, &t)); in TEST_IMPL() 1463 r = fstat(file, &t); in TEST_IMPL() 1485 ASSERT_EQ(s->st_atim.tv_sec, t.st_atime); in TEST_IMPL() 1487 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtime); in TEST_IMPL() 1489 ASSERT_EQ(s->st_ctim.tv_sec, t.st_ctime); in TEST_IMPL() 1492 ASSERT_EQ(s->st_atim.tv_sec, t.st_atime); in TEST_IMPL() 1494 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtime); in TEST_IMPL() 1530 ASSERT_EQ(s->st_flags, t.st_flags); in TEST_IMPL() [all …]
|
H A D | test-shutdown-eof.c | 48 static void read_cb(uv_stream_t* t, ssize_t nread, const uv_buf_t* buf) { in read_cb() argument 49 ASSERT_PTR_EQ((uv_tcp_t*)t, &tcp); in read_cb()
|
H A D | benchmark-multi-accept.c | 404 uint64_t t = uv_hrtime(); in test_tcp() local 406 t = uv_hrtime() - t; in test_tcp() 407 time = t / 1e9; in test_tcp()
|
H A D | test-metrics.c | 41 uint64_t t; in timer_spin_cb() local 44 t = uv_hrtime(); in timer_spin_cb() 46 while (uv_hrtime() - t < 600 * UV_NS_TO_MS) { } in timer_spin_cb()
|
/libuv/src/unix/ |
H A D | posix-hrtime.c | 30 struct timespec t; in uv__hrtime() local 32 if (clock_gettime(CLOCK_MONOTONIC, &t)) in uv__hrtime() 35 return t.tv_sec * (uint64_t) 1e9 + t.tv_nsec; in uv__hrtime()
|
H A D | aix-common.c | 45 timebasestruct_t t; in uv__hrtime() local 46 read_wall_time(&t, TIMEBASE_SZ); in uv__hrtime() 47 time_base_to_time(&t, TIMEBASE_SZ); in uv__hrtime() 48 return (uint64_t) t.tb_high * G + t.tb_low; in uv__hrtime()
|
H A D | linux.c | 1594 struct timespec t; in uv__hrtime() local 1614 if (0 == clock_getres(CLOCK_MONOTONIC_COARSE, &t)) in uv__hrtime() 1615 if (t.tv_nsec <= 1 * 1000 * 1000) in uv__hrtime() 1622 if (clock_gettime(clock_id, &t)) in uv__hrtime() 1625 return t.tv_sec * (uint64_t) 1e9 + t.tv_nsec; in uv__hrtime() 1735 struct cpu t; in uv_cpu_info() local 1763 memset(&t, 0, sizeof(t)); in uv_cpu_info() 1766 &cpu, &t.user, &t.nice, &t.sys, &t.idle, &skip, &t.irq); in uv_cpu_info() 1777 (*cpus)[cpu] = t; in uv_cpu_info()
|
/libuv/docs/code/queue-work/ |
H A D | main.c | 10 long fib_(long t) { in fib_() argument 11 if (t == 0 || t == 1) in fib_() 14 return fib_(t-1) + fib_(t-2); in fib_()
|
/libuv/docs/code/queue-cancel/ |
H A D | main.c | 11 long fib_(long t) { in fib_() argument 12 if (t == 0 || t == 1) in fib_() 15 return fib_(t-1) + fib_(t-2); in fib_()
|
/libuv/src/ |
H A D | idna.c | 162 unsigned t; in uv__idna_toascii_label() local 262 t = 1; in uv__idna_toascii_label() 265 t = k - bias; in uv__idna_toascii_label() 267 if (t > 26) in uv__idna_toascii_label() 268 t = 26; in uv__idna_toascii_label() 270 if (q < t) in uv__idna_toascii_label() 277 x = q - t; in uv__idna_toascii_label() 278 y = 36 - t; /* 10 <= y <= 35 since 1 <= t <= 26. */ in uv__idna_toascii_label() 280 t = t + x % y; /* 1 <= t <= 35 because of y. */ in uv__idna_toascii_label() 283 *(*d)++ = alphabet[t]; in uv__idna_toascii_label()
|
H A D | heap-inl.h | 76 struct heap_node t; in heap_node_swap() local 78 t = *parent; in heap_node_swap() 80 *child = t; in heap_node_swap()
|
/libuv/src/win/ |
H A D | util.c | 147 DWORD t; in uv__cwd() local 151 if (t == 0) in uv__cwd() 155 p = uv__malloc(t * sizeof(*p)); in uv__cwd() 166 if (n < t) in uv__cwd() 170 t = n; in uv__cwd() 176 t = n - 1; in uv__cwd() 178 p[t] = L'\0'; in uv__cwd() 179 n = t; in uv__cwd() 436 int64_t t; in uv_clock_gettime() local 453 t -= 116444736000000000ll; in uv_clock_gettime() [all …]
|
/libuv/docs/src/ |
H A D | loop.rst | 112 - UV_RUN_NOWAIT: Poll for i/o once but don't block if there are no 128 If this function was called before blocking for i/o, the loop won't block 134 writers who don't want to know the structure layout. 146 Embedding a kqueue fd in another kqueue pollset doesn't work on all platforms. It's not 161 Don't make assumptions about the starting point, you will only get 173 You won't normally need to call this function unless you have callbacks 193 use in the child, including the default loop (even if you don't
|
H A D | guide.rst | 8 and it hasn't gone through thorough review yet. If you spot a mistake please file an
|
/libuv/docs/src/guide/ |
H A D | eventloops.rst | 16 processed, so ``uv_stop()`` can't be used as a kill switch. When ``uv_stop()`` 17 is called, the loop **won't** block for i/o on this iteration. The semantics of
|
H A D | networking.rst | 15 not examples of good quality code. They leak memory and don't always close 70 be found in the code. Just remember to call ``uv_close`` when the socket isn't 99 communication. Hence libuv doesn't offer a stream. Instead libuv provides 141 it indicates there is nothing to read (the callback shouldn't do anything), if 206 your callback won't be invoked at all. All arguments can be freed immediately
|
H A D | about.rst | 5 afternoon (June 16, 2012) when he didn't feel like programming. He had recently
|
H A D | threads.rst | 4 Wait a minute? Why are we on threads? Aren't event loops supposed to be **the 22 :ref:`first example <thread-create-example>`, don't even require a running 35 There isn't much here, you just start a thread using ``uv_thread_create()`` and 321 calls to ``uv_async_send``, the callback won't be called. If you make two 322 or more calls, and libuv hasn't had a chance to run the callback yet, it
|
/libuv/ |
H A D | ChangeLog | 9 * test: don't run tcp_writealot under msan (Ben Noordhuis) 162 * unix: don't malloc on sync uv_fs_read (Ben Noordhuis) 360 * build: don't use ifaddrs.h on solaris 10 (Edward Humes) 1146 * test: fix compiler warning (Vladimír Čunát) 1234 * unix: don't use _POSIX_PATH_MAX (Ben Noordhuis) 2869 * doc: fix a trivial typo (Vladimír Čunát) 3602 * fs: don't nullify req->bufs on EINTR (Dave) 3797 * unix: don't retry dup2/dup3 on EINTR (Ben Noordhuis) 3949 * win,pipe: don't close fd 0-2 (Bert Belder) 3955 * win,tty: don't close fd 0-2 (Bert Belder) [all …]
|
H A D | CONTRIBUTING.md | 39 $ git checkout -b my-feature-branch -t origin/v1.x 77 * When documenting APIs and/or source code, don't make assumptions or make 79 else that isn't relevant to the project. 82 the reader doesn't have to make guesses. Make sure that the purpose and inner
|
/libuv/.github/workflows/ |
H A D | sanitizer.yml | 56 # TSan exits with an error when it can't find the file. 112 # Note: clang shipped with VS2022 has an issue where the UBSAN runtime doesn't link.
|
/libuv/m4/ |
H A D | libuv-check-flags.m4 | 59 CC_CHECK_CFLAGS_SILENT([$1]) dnl Don't execute actions here! 71 CC_CHECK_CFLAGS_SILENT([$1]) dnl Don't execute actions here! 151 dnl Other compilers don't support -Werror per se, but they support
|