Home
last modified time | relevance | path

Searched refs:lt (Results 1 – 25 of 1284) sorted by relevance

12345678910>>...52

/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cc89 void DestroyLogicalThread(DDLogicalThread *lt);
100 void CycleCheck(DDPhysicalThread *pt, DDLogicalThread *lt, DDMutex *mtx);
101 void Report(DDPhysicalThread *pt, DDLogicalThread *lt, int npath);
135 DDLogicalThread *lt = (DDLogicalThread*)InternalAlloc( in CreateLogicalThread() local
137 lt->ctx = ctx; in CreateLogicalThread()
138 lt->nlocked = 0; in CreateLogicalThread()
139 return lt; in CreateLogicalThread()
142 void DD::DestroyLogicalThread(DDLogicalThread *lt) { in DestroyLogicalThread() argument
143 lt->~DDLogicalThread(); in DestroyLogicalThread()
144 InternalFree(lt); in DestroyLogicalThread()
[all …]
H A Dsanitizer_deadlock_detector1.cc45 void DestroyLogicalThread(DDLogicalThread *lt) override;
56 void MutexEnsureID(DDLogicalThread *lt, DDMutex *m);
79 DDLogicalThread *lt = (DDLogicalThread*)InternalAlloc(sizeof(*lt)); in CreateLogicalThread() local
80 lt->ctx = ctx; in CreateLogicalThread()
81 lt->dd.clear(); in CreateLogicalThread()
82 lt->report_pending = false; in CreateLogicalThread()
83 return lt; in CreateLogicalThread()
86 void DD::DestroyLogicalThread(DDLogicalThread *lt) { in DestroyLogicalThread() argument
87 lt->~DDLogicalThread(); in DestroyLogicalThread()
88 InternalFree(lt); in DestroyLogicalThread()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cpp90 void DestroyLogicalThread(DDLogicalThread *lt);
101 void CycleCheck(DDPhysicalThread *pt, DDLogicalThread *lt, DDMutex *mtx);
102 void Report(DDPhysicalThread *pt, DDLogicalThread *lt, int npath);
136 DDLogicalThread *lt = (DDLogicalThread*)InternalAlloc( in CreateLogicalThread() local
138 lt->ctx = ctx; in CreateLogicalThread()
139 lt->nlocked = 0; in CreateLogicalThread()
140 return lt; in CreateLogicalThread()
143 void DD::DestroyLogicalThread(DDLogicalThread *lt) { in DestroyLogicalThread() argument
144 lt->~DDLogicalThread(); in DestroyLogicalThread()
145 InternalFree(lt); in DestroyLogicalThread()
[all …]
H A Dsanitizer_deadlock_detector1.cpp46 void DestroyLogicalThread(DDLogicalThread *lt) override;
57 void MutexEnsureID(DDLogicalThread *lt, DDMutex *m);
80 DDLogicalThread *lt = (DDLogicalThread*)InternalAlloc(sizeof(*lt)); in CreateLogicalThread() local
81 lt->ctx = ctx; in CreateLogicalThread()
82 lt->dd.clear(); in CreateLogicalThread()
83 lt->report_pending = false; in CreateLogicalThread()
84 return lt; in CreateLogicalThread()
87 void DD::DestroyLogicalThread(DDLogicalThread *lt) { in DestroyLogicalThread() argument
88 lt->~DDLogicalThread(); in DestroyLogicalThread()
89 InternalFree(lt); in DestroyLogicalThread()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cc91 void DestroyLogicalThread(DDLogicalThread *lt);
102 void CycleCheck(DDPhysicalThread *pt, DDLogicalThread *lt, DDMutex *mtx);
103 void Report(DDPhysicalThread *pt, DDLogicalThread *lt, int npath);
137 DDLogicalThread *lt = (DDLogicalThread*)InternalAlloc( in CreateLogicalThread() local
139 lt->ctx = ctx; in CreateLogicalThread()
140 lt->nlocked = 0; in CreateLogicalThread()
141 return lt; in CreateLogicalThread()
144 void DD::DestroyLogicalThread(DDLogicalThread *lt) { in DestroyLogicalThread() argument
145 lt->~DDLogicalThread(); in DestroyLogicalThread()
146 InternalFree(lt); in DestroyLogicalThread()
[all …]
H A Dsanitizer_deadlock_detector1.cc47 void DestroyLogicalThread(DDLogicalThread *lt) override;
58 void MutexEnsureID(DDLogicalThread *lt, DDMutex *m);
81 DDLogicalThread *lt = (DDLogicalThread*)InternalAlloc(sizeof(*lt)); in CreateLogicalThread() local
82 lt->ctx = ctx; in CreateLogicalThread()
83 lt->dd.clear(); in CreateLogicalThread()
84 lt->report_pending = false; in CreateLogicalThread()
85 return lt; in CreateLogicalThread()
88 void DD::DestroyLogicalThread(DDLogicalThread *lt) { in DestroyLogicalThread() argument
89 lt->~DDLogicalThread(); in DestroyLogicalThread()
90 InternalFree(lt); in DestroyLogicalThread()
[all …]
/netbsd-src/sys/compat/linux/common/
H A Dlinux_termios.h190 linux32_termio_to_bsd_termios(struct linux32_termio *lt, struct termios *bts) in linux32_termio_to_bsd_termios() argument
192 linux_termio_to_bsd_termios(struct linux_termio *lt, struct termios *bts) in linux32_termio_to_bsd_termios()
198 bts->c_iflag |= cvtto_bsd_mask(lt->c_iflag, LINUX_IGNBRK, IGNBRK); in linux32_termio_to_bsd_termios()
199 bts->c_iflag |= cvtto_bsd_mask(lt->c_iflag, LINUX_BRKINT, BRKINT); in linux32_termio_to_bsd_termios()
200 bts->c_iflag |= cvtto_bsd_mask(lt->c_iflag, LINUX_IGNPAR, IGNPAR); in linux32_termio_to_bsd_termios()
201 bts->c_iflag |= cvtto_bsd_mask(lt->c_iflag, LINUX_INPCK, INPCK); in linux32_termio_to_bsd_termios()
202 bts->c_iflag |= cvtto_bsd_mask(lt->c_iflag, LINUX_ISTRIP, ISTRIP); in linux32_termio_to_bsd_termios()
203 bts->c_iflag |= cvtto_bsd_mask(lt->c_iflag, LINUX_INLCR, INLCR); in linux32_termio_to_bsd_termios()
204 bts->c_iflag |= cvtto_bsd_mask(lt->c_iflag, LINUX_IGNCR, IGNCR); in linux32_termio_to_bsd_termios()
205 bts->c_iflag |= cvtto_bsd_mask(lt->c_iflag, LINUX_ICRNL, ICRNL); in linux32_termio_to_bsd_termios()
[all …]
/netbsd-src/external/gpl2/groff/dist/src/preproc/pic/
H A Dcommon.cpp29 const line_type &lt) in dashed_circle() argument
31 assert(lt.type == line_type::dashed); in dashed_circle()
32 line_type slt = lt; in dashed_circle()
34 double dash_angle = lt.dash_width/rad; in dashed_circle()
57 solid_arc(cent, rad, start_angle, start_angle + dash_angle, lt); in dashed_circle()
64 const line_type &lt) in dotted_circle() argument
66 assert(lt.type == line_type::dotted); in dotted_circle()
67 double gap_angle = lt.dash_width/rad; in dotted_circle()
80 dot(cent + position(cos(ang), sin(ang))*rad, lt); in dotted_circle()
87 const distance &dim, const line_type &lt) in ellipse_arc() argument
[all …]
H A Dtex.cpp62 double end_angle, const line_type &lt);
182 const line_type &lt) in line() argument
184 set_pen_size(lt.thickness); in line()
189 switch(lt.type) { in line()
197 printf("dt %.3f", lt.dash_width/scale); in line()
200 printf("da %.3f", lt.dash_width/scale); in line()
207 const line_type &lt, double fill) in polygon() argument
214 line(v[n-1], v, n, lt); in polygon()
218 const line_type &lt) in spline() argument
220 if (lt.type == line_type::invisible) in spline()
[all …]
H A Dtroff.cpp68 const position &end, const line_type &lt) in arc() argument
70 switch (lt.type) { in arc()
72 line_thickness(lt.thickness); in arc()
78 dashed_arc(start, cent, end, lt); in arc()
81 dotted_arc(start, cent, end, lt); in arc()
87 const line_type &lt) in line() argument
90 line_thickness(lt.thickness); in line()
92 switch (lt.type) { in line()
100 int ndots = int(dist/lt.dash_width + .5); in line()
102 dot(pos, lt); in line()
[all …]
/netbsd-src/sys/kern/
H A Dsys_ptrace_common.c529 ptrace_set_siginfo(struct proc *t, struct lwp **lt, struct ptrace_methods *ptm, in ptrace_set_siginfo()
701 ptrace_lwpinfo(struct proc *t, struct lwp **lt, void *addr, size_t data) in ptrace_lwpinfo()
714 lwp_delref(*lt); in ptrace_lwpinfo()
717 *lt = lwp_find_first(t); in ptrace_lwpinfo()
719 *lt = lwp_find(t, tmp); in ptrace_lwpinfo()
720 if (*lt == NULL) { in ptrace_lwpinfo()
724 *lt = LIST_NEXT(*lt, l_sibling); in ptrace_lwpinfo()
727 while (*lt != NULL && (!lwp_alive(*lt) || in ptrace_lwpinfo()
528 ptrace_set_siginfo(struct proc * t,struct lwp ** lt,struct ptrace_methods * ptm,void * addr,size_t data) ptrace_set_siginfo() argument
700 ptrace_lwpinfo(struct proc * t,struct lwp ** lt,void * addr,size_t data) ptrace_lwpinfo() argument
761 ptrace_lwpstatus(struct proc * t,struct ptrace_methods * ptm,struct lwp ** lt,void * addr,size_t data,bool next) ptrace_lwpstatus() argument
827 ptrace_startstop(struct proc * t,struct lwp ** lt,int rq,void * addr,size_t data) ptrace_startstop() argument
867 ptrace_regs(struct lwp * l,struct lwp ** lt,int rq,struct ptrace_methods * ptm,void * addr,size_t data) ptrace_regs() argument
941 ptrace_sendsig(struct lwp * l,int req,struct proc * t,struct lwp * lt,int signo,int resume_all) ptrace_sendsig() argument
986 ptrace_dumpcore(struct lwp * lt,char * path,size_t len) ptrace_dumpcore() argument
1010 ptrace_doio(struct lwp * l,struct proc * t,struct lwp * lt,struct ptrace_io_desc * piod,void * addr,bool sysspace) ptrace_doio() argument
1082 struct lwp *lt = NULL; do_ptrace() local
[all...]
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/disp/
H A Dnouveau_nvkm_engine_disp_dp.c53 nvkm_dp_train_sense(struct lt_state *lt, bool pc, u32 delay) in nvkm_dp_train_sense() argument
55 struct nvkm_dp *dp = lt->dp; in nvkm_dp_train_sense()
63 ret = nvkm_rdaux(dp->aux, DPCD_LS02, lt->stat, 6); in nvkm_dp_train_sense()
68 ret = nvkm_rdaux(dp->aux, DPCD_LS0C, &lt->pc2stat, 1); in nvkm_dp_train_sense()
70 lt->pc2stat = 0x00; in nvkm_dp_train_sense()
72 lt->stat, lt->pc2stat); in nvkm_dp_train_sense()
74 OUTP_TRACE(&dp->outp, "status %6ph", lt->stat); in nvkm_dp_train_sense()
81 nvkm_dp_train_drive(struct lt_state *lt, bool pc) in nvkm_dp_train_drive() argument
83 struct nvkm_dp *dp = lt->dp; in nvkm_dp_train_drive()
93 u8 lane = (lt->stat[4 + (i >> 1)] >> ((i & 1) * 4)) & 0xf; in nvkm_dp_train_drive()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/
H A Ddate_and_time.c140 time_t lt; in date_and_time() local
146 if (!gf_gettime (&lt, &usecs)) in date_and_time()
150 localtime_r (&lt, &local_time); in date_and_time()
151 gmtime_r (&lt, &UTC_time); in date_and_time()
303 time_t lt; in itime0() local
306 lt = time (NULL); in itime0()
308 if (lt != (time_t) -1) in itime0()
310 localtime_r (&lt, &local_time); in itime0()
381 time_t lt; in idate0() local
384 lt = time (NULL); in idate0()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/
H A Ddate_and_time.c137 time_t lt; in date_and_time() local
143 if (!gf_gettime (&lt, &usecs)) in date_and_time()
147 localtime_r (&lt, &local_time); in date_and_time()
148 gmtime_r (&lt, &UTC_time); in date_and_time()
313 time_t lt; in itime0() local
316 lt = time (NULL); in itime0()
318 if (lt != (time_t) -1) in itime0()
320 localtime_r (&lt, &local_time); in itime0()
391 time_t lt; in idate0() local
394 lt = time (NULL); in idate0()
[all …]
/netbsd-src/games/pom/
H A Dpom.c213 struct tm *lt; in parsetime() local
226 lt = localtime(&tval); in parsetime()
227 lt->tm_sec = 0; in parsetime()
228 lt->tm_min = 0; in parsetime()
233 lt->tm_year = bigyear * 100 - 1900; in parsetime()
238 lt->tm_year += ATOI2(p); in parsetime()
240 lt->tm_year = ATOI2(p); in parsetime()
241 if (lt->tm_year < 69) /* hack for 2000 */ in parsetime()
242 lt->tm_year += 100; in parsetime()
246 lt->tm_mon = ATOI2(p); in parsetime()
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/global/
H A Dmail_date.c59 struct tm *lt; in mail_date() local
84 lt = localtime(&when); in mail_date()
85 gmtoff = (lt->tm_hour - gmt.tm_hour) * HOUR_MIN + lt->tm_min - gmt.tm_min; in mail_date()
86 if (lt->tm_year < gmt.tm_year) in mail_date()
88 else if (lt->tm_year > gmt.tm_year) in mail_date()
90 else if (lt->tm_yday < gmt.tm_yday) in mail_date()
92 else if (lt->tm_yday > gmt.tm_yday) in mail_date()
94 if (lt->tm_sec <= gmt.tm_sec - MIN_SEC) in mail_date()
96 else if (lt->tm_sec >= gmt.tm_sec + MIN_SEC) in mail_date()
110 while (strftime(vstring_end(vp), vstring_avail(vp), STRFTIME_FMT, lt) == 0) in mail_date()
[all …]
/netbsd-src/usr.bin/xlint/lint1/
H A Dckbool.c61 const tnode_t *ln, tspec_t lt, in is_typeok_strict_bool_binary() argument
64 if ((lt == BOOL) == (rt == BOOL)) in is_typeok_strict_bool_binary()
71 (is_int_constant_zero(ln, lt) || is_int_constant_zero(rn, rt))) in is_typeok_strict_bool_binary()
76 return lt != BOOL && (ln->tn_sys || rn->tn_sys); in is_typeok_strict_bool_binary()
96 const tnode_t *ln, tspec_t lt, in typeok_strict_bool_binary_compatible() argument
99 if (is_typeok_strict_bool_binary(op, ln, lt, rn, rt)) in typeok_strict_bool_binary_compatible()
104 error(334, arg, tspec_name(lt), tspec_name(rt)); in typeok_strict_bool_binary_compatible()
107 error(211, tspec_name(lt), tspec_name(rt)); in typeok_strict_bool_binary_compatible()
110 error(107, op_name(op), tspec_name(lt), tspec_name(rt)); in typeok_strict_bool_binary_compatible()
125 tspec_t lt = ln->tn_type->t_tspec; in typeok_scalar_strict_bool() local
[all …]
H A Dtree.c842 const tnode_t *ln, tspec_t lt, in fold_unsigned_integer()
848 if (lt == CHAR && is_out_of_char_range(rn)) { in fold_unsigned_integer()
871 tspec_t lt = ln->tn_type->t_tspec; in fold_unsigned_integer()
877 if (!is_integer(lt) || !is_integer(rt)) in fold_unsigned_integer()
881 if (lt == CHAR && rn->tn_op == CON && in fold_signed_integer()
895 if (!check_nonportable_char_comparison(op, ln, lt, rn, rt)) in fold_signed_integer()
898 if (is_uinteger(lt) && !is_uinteger(rt) && in fold_signed_integer()
909 if (is_uinteger(rt) && !is_uinteger(lt) && in fold_signed_integer()
934 usual_arithmetic_conversion_trad(tspec_t lt, tspec_t rt) in fold_signed_integer()
939 if (lt in fold_signed_integer()
598 check_nonportable_char_comparison(op_t op,const tnode_t * ln,tspec_t lt,const tnode_t * rn,tspec_t rt) check_nonportable_char_comparison() argument
627 tspec_t lt = ln->tn_type->t_tspec; check_integer_comparison() local
690 usual_arithmetic_conversion_trad(tspec_t lt,tspec_t rt) usual_arithmetic_conversion_trad() argument
706 usual_arithmetic_conversion_c90(tspec_t lt,tspec_t rt) usual_arithmetic_conversion_c90() argument
761 tspec_t lt = (*lnp)->tn_type->t_tspec; balance() local
1204 tspec_t lt = ln->tn_type->t_tspec; build_plus_minus() local
1297 tspec_t lt = ln->tn_type->t_tspec; build_colon() local
1408 tspec_t lt = ln->tn_type->t_tspec; build_assignment() local
2155 typeok_point(const tnode_t * ln,const type_t * ltp,tspec_t lt) typeok_point() argument
2182 typeok_arrow(tspec_t lt) typeok_arrow() argument
2265 warn_incompatible_types(op_t op,const type_t * ltp,tspec_t lt,const type_t * rtp,tspec_t rt) warn_incompatible_types() argument
2288 typeok_plus(op_t op,const type_t * ltp,tspec_t lt,const type_t * rtp,tspec_t rt) typeok_plus() argument
2301 typeok_minus(op_t op,const type_t * ltp,tspec_t lt,const type_t * rtp,tspec_t rt) typeok_minus() argument
2320 typeok_shr(op_t op,const tnode_t * ln,tspec_t lt,const tnode_t * rn,tspec_t rt) typeok_shr() argument
2360 typeok_shl(op_t op,tspec_t lt,tspec_t rt) typeok_shl() argument
2381 typeok_shift(const type_t * ltp,tspec_t lt,const tnode_t * rn,tspec_t rt) typeok_shift() argument
2401 is_typeok_eq(const tnode_t * ln,tspec_t lt,const tnode_t * rn,tspec_t rt) is_typeok_eq() argument
2416 tspec_t lt = ltp->t_subt->t_tspec; warn_incompatible_pointers() local
2475 typeok_compare(op_t op,const tnode_t * ln,const type_t * ltp,tspec_t lt,const tnode_t * rn,const type_t * rtp,tspec_t rt) typeok_compare() argument
2499 typeok_quest(tspec_t lt,const tnode_t * rn) typeok_quest() argument
2535 typeok_colon(const tnode_t * ln,const type_t * ltp,tspec_t lt,const tnode_t * rn,const type_t * rtp,tspec_t rt) typeok_colon() argument
2598 typeok_assign(op_t op,const tnode_t * ln,const type_t * ltp,tspec_t lt) typeok_assign() argument
2622 typeok_scalar(op_t op,const mod_t * mp,const type_t * ltp,tspec_t lt,const type_t * rtp,tspec_t rt) typeok_scalar() argument
2655 check_assign_void_pointer(op_t op,int arg,tspec_t lt,tspec_t lst,tspec_t rt,tspec_t rst) check_assign_void_pointer() argument
2771 check_assign_void_pointer_compat(op_t op,int arg,const type_t * ltp,tspec_t lt,const type_t * lstp,tspec_t lst,const tnode_t * rn,const type_t * rtp,tspec_t rt,const type_t * rstp,tspec_t rst) check_assign_void_pointer_compat() argument
2814 check_assign_pointer_integer(op_t op,int arg,const type_t * ltp,tspec_t lt,const type_t * rtp,tspec_t rt) check_assign_pointer_integer() argument
2846 check_assign_pointer(op_t op,int arg,const type_t * ltp,tspec_t lt,const type_t * rtp,tspec_t rt) check_assign_pointer() argument
2862 warn_assign(op_t op,int arg,const type_t * ltp,tspec_t lt,const type_t * rtp,tspec_t rt) warn_assign() argument
2893 tspec_t lt, rt, lst = NO_TSPEC, rst = NO_TSPEC; check_assign_types_compatible() local
3007 typeok_op(op_t op,int arg,const tnode_t * ln,const type_t * ltp,tspec_t lt,const tnode_t * rn,const type_t * rtp,tspec_t rt) typeok_op() argument
3208 tspec_t lt = ltp->t_tspec; typeok() local
[all...]
/netbsd-src/external/gpl2/xcvs/dist/m4/
H A Dmktime.m487 struct tm *lt;
88 if ((lt = localtime (&now)) && mktime (lt) != now)
128 struct tm *lt = localtime (&now);
129 if (! (lt
130 && lt->tm_year == tm.tm_year
131 && lt->tm_mon == tm.tm_mon
132 && lt->tm_mday == tm.tm_mday
133 && lt->tm_hour == tm.tm_hour
134 && lt->tm_min == tm.tm_min
135 && lt->tm_sec == tm.tm_sec
[all …]
/netbsd-src/external/ibm-public/postfix/dist/examples/chroot-setup/
H A DLINUX270 lt=/etc/localtime
71 if test ! -f $lt ; then lt=/usr/lib/zoneinfo/localtime ; fi
72 if test ! -f $lt ; then lt=/usr/share/zoneinfo/localtime ; fi
73 if test ! -f $lt ; then echo "cannot find localtime" ; exit 1 ; fi
77 $CP -f $lt /etc/services /etc/resolv.conf /etc/nsswitch.conf etc
/netbsd-src/bin/pax/
H A Dsel_subs.c550 struct tm *lt; in str_sec() local
564 lt = localtime(tval); in str_sec()
571 lt->tm_sec = ATOI2(dot); in str_sec()
574 lt->tm_sec = 0; in str_sec()
580 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE; in str_sec()
585 lt->tm_year += ATOI2(p); in str_sec()
589 lt->tm_year = yearset + 2000 - TM_YEAR_BASE; in str_sec()
591 lt->tm_year = yearset + 1900 - TM_YEAR_BASE; in str_sec()
595 lt->tm_mon = ATOI2(p); in str_sec()
596 --lt->tm_mon; in str_sec()
[all …]
/netbsd-src/external/mpl/dhcp/dist/doc/devel/
H A Dlibtool.dox25 is accepted even without these extra steps (cp configure.ac+lt configure.ac;
26 autoreconf -i) in a recovery procedure (invoking config+lt script)
36 - configure.ac-lt which has only the legacy option with recovery
40 - configure.ac+lt which has the libool code and defaults to --with-libtool
42 - configure.ac which is either configure.ac-lt in the distribution and
43 configure.ac+lt when copied by the user at the first step for dynamic
44 libraries or by the config+lt recovery script
48 - util/lt.pl which extracts configure.ac-lt and configure.ac+lt from
51 - util/regen.sh which invokes util/lt.pl and copies configure.ac-lt
56 - config+lt which is the recovery script. As it can be called in place
/netbsd-src/external/mpl/dhcp/dist/server/
H A Dmdb.c800 struct lease *lt = (struct lease *)0; local
913 if (find_lease_by_ip_addr (&lt, lp -> ip_addr, MDL)) {
914 if (lt -> pool) {
919 pool_reference (&lt -> pool, pool, MDL);
920 lease_dereference (&lt, MDL);
1688 struct lease *lt = (struct lease *)0; in lease_copy() local
1691 status = lease_allocate (&lt, MDL); in lease_copy()
1695 lt -> ip_addr = lease -> ip_addr; in lease_copy()
1696 lt -> starts = lease -> starts; in lease_copy()
1697 lt -> ends = lease -> ends; in lease_copy()
[all …]
/netbsd-src/external/gpl2/xcvs/dist/lib/
H A Dmktime.c557 check_result (time_t tk, struct tm tmk, time_t tl, const struct tm *lt) in check_result() argument
559 if (tk != tl || !lt || not_equal_tm (&tmk, lt)) in check_result()
562 print_tm (lt); in check_result()
577 struct tm *lt; in main() local
594 lt = localtime (&tl); in main()
595 if (lt) in main()
597 tml = *lt; in main()
598 lt = &tml; in main()
603 status = check_result (tl, tmk, tl, lt); in main()
614 lt = localtime (&tl); in main()
[all …]
/netbsd-src/sbin/shutdown/
H A Dshutdown.c441 struct tm *lt; in getoffset() local
474 lt = localtime(&now); /* current time val */ in getoffset()
476 lt->tm_sec = 0; in getoffset()
481 lt->tm_year = ATOI2(timearg) * 100 - TM_YEAR_BASE; in getoffset()
486 lt->tm_year += ATOI2(timearg); in getoffset()
490 lt->tm_year = yearset + 2100 - TM_YEAR_BASE; in getoffset()
492 lt->tm_year = yearset + 2000 - TM_YEAR_BASE; in getoffset()
496 lt->tm_mon = ATOI2(timearg); in getoffset()
497 --lt->tm_mon; in getoffset()
500 lt in getoffset()
[all...]

12345678910>>...52