Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 25 of 37) sorted by relevance

12

/third_party/selinux/libsepol/src/
Dmodule.c380 uint32_t *buf = NULL, nsec; in module_package_read_offsets() local
404 nsec = *sections = le32_to_cpu(buf[2]); in module_package_read_offsets()
406 if (nsec > MAXSECTIONS) { in module_package_read_offsets()
408 nsec); in module_package_read_offsets()
412 off = (size_t *) calloc(nsec + 1, sizeof(size_t)); in module_package_read_offsets()
419 buf = calloc(nsec, sizeof(uint32_t)); in module_package_read_offsets()
424 rc = next_entry(buf, file, sizeof(uint32_t) * nsec); in module_package_read_offsets()
430 for (i = 0; i < nsec; i++) { in module_package_read_offsets()
440 rc = policy_file_length(file, &off[nsec]); in module_package_read_offsets()
444 if (nsec && off[nsec] < off[nsec-1]) { in module_package_read_offsets()
[all …]
/third_party/ltp/lib/newlib_tests/
Dtest_timer.c81 long long nsec = tst_ts_get_nsec(ts); in test_add_sub() local
84 if (sec != 1 || nsec != 0) in test_add_sub()
85 tst_res(TFAIL, "sec = %lli, nsec = %lli", sec, nsec); in test_add_sub()
87 tst_res(TPASS, "sec = %lli, nsec = %lli", sec, nsec); in test_add_sub()
93 nsec = tst_ts_get_nsec(ts); in test_add_sub()
96 if (sec != 0 || nsec != 999999000) in test_add_sub()
97 tst_res(TFAIL, "sec = %lli, nsec = %lli", sec, nsec); in test_add_sub()
99 tst_res(TPASS, "sec = %lli, nsec = %lli", sec, nsec); in test_add_sub()
/third_party/mesa3d/src/gallium/frontends/xvmc/tests/
Dtestlib.c127 int nsec = (y->tv_usec - x->tv_usec) / 1000000 + 1; in timeval_subtract() local
128 y->tv_usec -= 1000000 * nsec; in timeval_subtract()
129 y->tv_sec += nsec; in timeval_subtract()
133 int nsec = (x->tv_usec - y->tv_usec) / 1000000; in timeval_subtract() local
134 y->tv_usec += 1000000 * nsec; in timeval_subtract()
135 y->tv_sec -= nsec; in timeval_subtract()
/third_party/ltp/include/
Dtst_timer.h432 static inline void tst_ts_set_nsec(struct tst_ts *ts, long long nsec) in tst_ts_set_nsec() argument
436 ts->ts.libc_ts.tv_nsec = nsec; in tst_ts_set_nsec()
439 ts->ts.kern_old_ts.tv_nsec = nsec; in tst_ts_set_nsec()
442 ts->ts.kern_ts.tv_nsec = nsec; in tst_ts_set_nsec()
502 static inline void tst_its_set_interval_nsec(struct tst_its *its, long long nsec) in tst_its_set_interval_nsec() argument
507 its->ts.kern_old_its.it_interval.tv_nsec = nsec; in tst_its_set_interval_nsec()
510 its->ts.kern_its.it_interval.tv_nsec = nsec; in tst_its_set_interval_nsec()
570 static inline void tst_its_set_value_nsec(struct tst_its *its, long long nsec) in tst_its_set_value_nsec() argument
575 its->ts.kern_old_its.it_value.tv_nsec = nsec; in tst_its_set_value_nsec()
578 its->ts.kern_its.it_value.tv_nsec = nsec; in tst_its_set_value_nsec()
[all …]
/third_party/python/Python/
Dpytime.c230 _PyTime_ObjectToTimespec(PyObject *obj, time_t *sec, long *nsec, in _PyTime_ObjectToTimespec() argument
233 return _PyTime_ObjectToDenominator(obj, sec, nsec, SEC_TO_NS, round); in _PyTime_ObjectToTimespec()
270 long long nsec; in _PyTime_FromNanosecondsObject() local
280 nsec = PyLong_AsLongLong(obj); in _PyTime_FromNanosecondsObject()
281 if (nsec == -1 && PyErr_Occurred()) { in _PyTime_FromNanosecondsObject()
289 t = (_PyTime_t)nsec; in _PyTime_FromNanosecondsObject()
298 _PyTime_t t, nsec; in pytime_fromtimespec() local
315 nsec = ts->tv_nsec; in pytime_fromtimespec()
317 assert(nsec >= 0); in pytime_fromtimespec()
318 if (t > _PyTime_MAX - nsec) { in pytime_fromtimespec()
[all …]
/third_party/ltp/testcases/kernel/syscalls/timer_settime/
Dtimer_settime03.c69 long nsec; in run() local
75 nsec = (handler_delay % 100000000) * 10L; in run()
77 if (nsec > spec.it_value.tv_nsec) { in run()
85 spec.it_value.tv_nsec -= nsec; in run()
/third_party/rust/crates/humantime/src/
Dduration.rs126 let (mut sec, nsec) = match &self.src[start..end] { in parse_unit()
146 let mut nsec = self.current.1.add(nsec)?; in parse_unit() localVariable
147 if nsec > 1_000_000_000 { in parse_unit()
148 sec = sec.add(nsec / 1_000_000_000)?; in parse_unit()
149 nsec %= 1_000_000_000; in parse_unit()
152 self.current = (sec, nsec); in parse_unit()
/third_party/mesa3d/include/android_stub/log/
Dlog_read.h45 uint32_t nsec; /* nanoseconds */ member
63 uint64_t nsec() const { in nsec() function
64 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
Dlog_time.h45 explicit log_time(uint32_t sec, uint32_t nsec = 0)
46 : tv_sec(sec), tv_nsec(nsec) { in tv_sec()
138 uint64_t nsec() const { in nsec() function
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
D4-1-buildonly.c17 long nsec; in dummyfcn() local
20 nsec = t.tv_nsec; in dummyfcn()
/third_party/node/lib/internal/process/
Dper_thread.js138 const nsec = hrValues[2] - time[1];
139 const needsBorrow = nsec < 0;
140 return [needsBorrow ? sec - 1 : sec, needsBorrow ? nsec + 1e9 : nsec];
/third_party/ltp/testcases/network/stress/ns-tools/
Dns-common.c332 unsigned long nsec = 0; in strtotimespec() local
342 nsec = strtoul(str + len - 9, NULL, 0); in strtotimespec()
344 nsec = strtoul(str, NULL, 0); in strtotimespec()
348 ts_p->tv_nsec = nsec; in strtotimespec()
/third_party/alsa-lib/test/
Daudio_time.c42 long long nsec; in timestamp2ns() local
44 nsec = t.tv_sec * 1000000000ULL; in timestamp2ns()
45 nsec += t.tv_nsec; in timestamp2ns()
47 return nsec; in timestamp2ns()
/third_party/openssl/crypto/ocsp/
Docsp_cl.c311 ASN1_GENERALIZEDTIME *nextupd, long nsec, long maxsec) in OCSP_check_validity() argument
322 t_tmp = t_now + nsec; in OCSP_check_validity()
349 t_tmp = t_now - nsec; in OCSP_check_validity()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DChrono.h51 toTimePoint(std::time_t T, uint32_t nsec) { in toTimePoint() argument
54 + nanoseconds(nsec); in toTimePoint()
/third_party/node/lib/internal/fs/
Dutils.js434 function msFromTimeSpec(sec, nsec) { argument
435 return sec * kMsPerSec + nsec / kNsPerMs;
438 function nsFromTimeSpecBigInt(sec, nsec) { argument
439 return sec * kNsPerSecBigInt + nsec;
/third_party/openssl/apps/
Docsp.c67 STACK_OF(OCSP_CERTID) *ids, long nsec,
255 long nsec = MAX_VALIDITY_PERIOD, maxage = -1; in ocsp_main() local
413 opt_long(opt_arg(), &nsec); in ocsp_main()
844 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage)) in ocsp_main()
966 STACK_OF(OCSP_CERTID) *ids, long nsec, in print_ocsp_summary() argument
997 if (!OCSP_check_validity(thisupd, nextupd, nsec, maxage)) { in print_ocsp_summary()
/third_party/rust/crates/rust-openssl/openssl/src/
Docsp.rs132 pub fn check_validity(&self, nsec: u32, maxsec: Option<u32>) -> Result<(), ErrorStack> { in check_validity()
137 nsec as c_long, in check_validity()
/third_party/libuv/src/unix/
Dqnx.c112 *uptime = (qtime->nsec / 1000000000.0); in uv_uptime()
/third_party/python/Include/cpython/
Dpytime.h72 long *nsec,
/third_party/ltp/testcases/open_posix_testsuite/functional/timers/
Dplan.txt56 increasing (call also at nsec increments to ensure both nsec and sec
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dgstvideotimecode.c313 guint64 frames, nsec; in gst_video_time_code_nsec_since_daily_jam() local
318 nsec = in gst_video_time_code_nsec_since_daily_jam()
322 return nsec; in gst_video_time_code_nsec_since_daily_jam()
/third_party/python/Modules/_multiprocessing/
Dsemaphore.c331 long nsec = (long) (1e9 * (timeout - sec) + 0.5); in _multiprocessing_SemLock_acquire_impl() local
333 deadline.tv_nsec = now.tv_usec * 1000 + nsec; in _multiprocessing_SemLock_acquire_impl()
/third_party/rust/crates/nix/src/sys/
Dtime.rs329 let nsec = self.nanos_mod_sec(); in num_nanoseconds() localVariable
330 secs + nsec as i64 in num_nanoseconds()
/third_party/rust/crates/libc/src/unix/nto/
Dneutrino.rs14 pub nsec: u64,
161 pub nsec: u64, // volatile
199 pub nsec: u32,

12