Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 47) sorted by relevance

12

/libuv/test/
H A Dtest-hrtime.c56 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 Dtest-tcp-rst.c46 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 Dtest-shutdown-simultaneous.c52 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 Dtest-fs.c1447 struct stat t; in TEST_IMPL() local
1470 memset(&t, 0, sizeof(t)); in TEST_IMPL()
1471 ASSERT_OK(fstat(file, &t)); in TEST_IMPL()
1503 r = fstat(file, &t); in TEST_IMPL()
1525 ASSERT_EQ(s->st_atim.tv_sec, t.st_atime); in TEST_IMPL()
1527 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtime); in TEST_IMPL()
1529 ASSERT_EQ(s->st_ctim.tv_sec, t.st_ctime); in TEST_IMPL()
1532 ASSERT_EQ(s->st_atim.tv_sec, t.st_atime); in TEST_IMPL()
1534 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtime); in TEST_IMPL()
1570 ASSERT_EQ(s->st_flags, t.st_flags); in TEST_IMPL()
[all …]
H A Dtest-shutdown-eof.c48 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 Dbenchmark-multi-accept.c404 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 Dtest-metrics.c41 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 Dposix-hrtime.c30 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 Daix-common.c45 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 Dlinux.c1608 struct timespec t; in uv__hrtime() local
1628 if (0 == clock_getres(CLOCK_MONOTONIC_COARSE, &t)) in uv__hrtime()
1629 if (t.tv_nsec <= 1 * 1000 * 1000) in uv__hrtime()
1636 if (clock_gettime(clock_id, &t)) in uv__hrtime()
1639 return t.tv_sec * (uint64_t) 1e9 + t.tv_nsec; in uv__hrtime()
1749 struct cpu t; in uv_cpu_info() local
1777 memset(&t, 0, sizeof(t)); in uv_cpu_info()
1780 &cpu, &t.user, &t.nice, &t.sys, &t.idle, &skip, &t.irq); in uv_cpu_info()
1791 (*cpus)[cpu] = t; in uv_cpu_info()
/libuv/docs/code/queue-work/
H A Dmain.c10 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 Dmain.c11 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 Didna.c162 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 Dheap-inl.h76 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 Dutil.c147 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()
430 int64_t t; in uv_clock_gettime() local
447 t -= 116444736000000000ll; in uv_clock_gettime()
[all …]
/libuv/docs/src/
H A Dloop.rst130 - UV_RUN_NOWAIT: Poll for i/o once but don't block if there are no
146 If this function was called before blocking for i/o, the loop won't block
152 writers who don't want to know the structure layout.
164 Embedding a kqueue fd in another kqueue pollset doesn't work on all platforms. It's not
179 Don't make assumptions about the starting point, you will only get
191 You won't normally need to call this function unless you have callbacks
211 use in the child, including the default loop (even if you don't
H A Dguide.rst8 and it hasn't gone through thorough review yet. If you spot a mistake please file an
/libuv/docs/src/guide/
H A Deventloops.rst16 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 Dnetworking.rst15 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 Dabout.rst5 afternoon (June 16, 2012) when he didn't feel like programming. He had recently
H A Dthreads.rst4 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 DChangeLog38 * linux: don't delay EPOLL_CTL_DEL operations (Ben Noordhuis)
211 * test: don't run tcp_writealot under msan (Ben Noordhuis)
364 * unix: don't malloc on sync uv_fs_read (Ben Noordhuis)
1348 * test: fix compiler warning (Vladimír Čunát)
1436 * unix: don't use _POSIX_PATH_MAX (Ben Noordhuis)
3071 * doc: fix a trivial typo (Vladimír Čunát)
3804 * fs: don't nullify req->bufs on EINTR (Dave)
3999 * unix: don't retry dup2/dup3 on EINTR (Ben Noordhuis)
4151 * win,pipe: don't close fd 0-2 (Bert Belder)
4157 * win,tty: don't close fd 0-2 (Bert Belder)
[all …]
H A DCONTRIBUTING.md39 $ 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 Dsanitizer.yml56 # 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 Dlibuv-check-flags.m459 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

Completed in 93 milliseconds

12