/freebsd-12-stable/usr.bin/w/ |
H A D | pr_time.c | 58 struct tm tp, tm; local 63 tp = *localtime(started); 72 else if (tm.tm_mday != tp.tm_mday || 73 tm.tm_mon != tp.tm_mon || 74 tm.tm_year != tp.tm_year) { 85 (void)wcsftime(buf, sizeof(buf), fmt, &tp);
|
/freebsd-12-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | write_entry.c | 59 write_file(char *filename, TERMTYPE *tp) argument 72 if (write_object(tp, buffer, &offset, limit) == ERR 250 _nc_write_entry(TERMTYPE *const tp) argument 279 char *term_names = tp->term_names; 319 if (write_object(tp, buffer + 1, &offset, limit - 1) != ERR) { 402 write_file(filename, tp); 472 write_file(linkname, tp); 486 write_file(linkname, tp); 567 extended_Booleans(TERMTYPE *tp) argument 572 for (i = 0; i < tp 580 extended_Numbers(TERMTYPE *tp) argument 593 extended_Strings(TERMTYPE *tp) argument 610 extended_object(TERMTYPE *tp) argument 624 write_object(TERMTYPE *tp, char *buffer, unsigned *offset, unsigned limit) argument [all...] |
H A D | parse_entry.c | 69 TERMTYPE *tp = &(entryp->tterm); local 79 last = tp->ext_Booleans; 80 offset = tp->ext_Booleans; 81 tindex = tp->num_Booleans; 84 first = tp->ext_Booleans; 85 last = tp->ext_Numbers + first; 86 offset = (unsigned) (tp->ext_Booleans + tp->ext_Numbers); 87 tindex = tp->num_Numbers; 90 first = (unsigned) (tp 640 postprocess_termcap(TERMTYPE *tp, bool has_base) argument 927 postprocess_terminfo(TERMTYPE *tp) argument [all...] |
/freebsd-12-stable/contrib/ntp/lib/isc/ |
H A D | inet_ntop.c | 123 char tmp[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")], *tp; local 163 tp = tmp; 169 *tp++ = ':'; 174 *tp++ = ':'; 179 if (!inet_ntop4(src+12, tp, 180 sizeof(tmp) - (tp - tmp))) 182 tp += strlen(tp); 185 tp += snprintf(tp, sizeo [all...] |
/freebsd-12-stable/lib/libc/tests/string/ |
H A D | strerror_test.c | 187 ATF_TP_ADD_TCS(tp) 190 ATF_TP_ADD_TC(tp, strerror_unknown_error); 191 ATF_TP_ADD_TC(tp, strerror_no_error); 192 ATF_TP_ADD_TC(tp, strerror_EPERM_test); 193 ATF_TP_ADD_TC(tp, strerror_EPFNOSUPPORT_test); 194 ATF_TP_ADD_TC(tp, strerror_ELAST_test); 195 ATF_TP_ADD_TC(tp, strerror_r__unknown_error); 196 ATF_TP_ADD_TC(tp, strerror_r__EPERM_one_byte_short); 197 ATF_TP_ADD_TC(tp, strerror_r__EPERM_unknown_error_one_byte_short); 198 ATF_TP_ADD_TC(tp, strerror_r__EPERM_unknown_error_two_bytes_shor [all...] |
H A D | memset_s_test.c | 185 ATF_TP_ADD_TCS(tp) 187 ATF_TP_ADD_TC(tp, null_ptr); 188 ATF_TP_ADD_TC(tp, smax_gt_rmax); 189 ATF_TP_ADD_TC(tp, smax_lt_zero); 190 ATF_TP_ADD_TC(tp, normal); 191 ATF_TP_ADD_TC(tp, n_gt_rmax); 192 ATF_TP_ADD_TC(tp, n_lt_zero); 193 ATF_TP_ADD_TC(tp, n_gt_smax); 194 ATF_TP_ADD_TC(tp, n_lt_smax); 195 ATF_TP_ADD_TC(tp, smax_gt_rmax_handle [all...] |
/freebsd-12-stable/sys/dev/ofw/ |
H A D | ofw_console.c | 88 struct tty *tp; local 92 tp = tty_alloc(&ofw_ttydevsw, NULL); 93 tty_makedev(tp, NULL, "%s", "ofwcons"); 104 tty_makealias(tp, "%s", output); 105 callout_init_mtx(&ofw_timer, tty_getlock(tp), 0); 115 ofwtty_open(struct tty *tp) argument 121 callout_reset(&ofw_timer, polltime, ofw_timeout, tp); 127 ofwtty_close(struct tty *tp) argument 134 ofwtty_outwakeup(struct tty *tp) argument 140 len = ttydisc_getc(tp, bu 150 struct tty *tp; local [all...] |
/freebsd-12-stable/sys/dev/cfe/ |
H A D | cfe_console.c | 88 struct tty *tp; local 92 tp = tty_alloc(&cfe_ttydevsw, NULL); 93 callout_init_mtx(&cfe_timer, tty_getlock(tp), 0); 94 tty_makedev(tp, NULL, "cfecons"); 99 cfe_tty_open(struct tty *tp) argument 104 callout_reset(&cfe_timer, polltime, cfe_timeout, tp); 110 cfe_tty_close(struct tty *tp) argument 117 cfe_tty_outwakeup(struct tty *tp) argument 123 len = ttydisc_getc(tp, buf, sizeof buf); 140 struct tty *tp; local [all...] |
/freebsd-12-stable/sys/powerpc/mambo/ |
H A D | mambo_console.c | 61 static struct tty *tp = NULL; variable in typeref:struct:tty 88 tp = tty_alloc(&mambo_ttydevsw, NULL); 89 tty_init_console(tp, 0); 90 tty_makedev(tp, NULL, "%s", "mambocons"); 102 mambotty_outwakeup(struct tty *tp) argument 108 len = ttydisc_getc(tp, buf, sizeof buf); 120 tty_lock(tp); 122 ttydisc_rint(tp, c, 0); 123 ttydisc_rint_done(tp); 124 tty_unlock(tp); [all...] |
/freebsd-12-stable/sys/dev/nmdm/ |
H A D | nmdm.c | 104 nmdm_close(struct tty *tp) argument 110 np = tty_softc(tp); 119 tty_rel_gone(tp); 122 tty_lock(tp); 128 tty_lock(tp); 161 struct tty *tp; local 194 tp = ns->ns_part1.np_tty = tty_alloc_mutex(&nmdm_class, &ns->ns_part1, 197 error = tty_makedevf(tp, NULL, endc == 'A' ? TTYMK_CLONING : 0, 206 tp = ns->ns_part2.np_tty = tty_alloc_mutex(&nmdm_class, &ns->ns_part2, 209 error = tty_makedevf(tp, NUL 253 struct tty *tp, *otp; local 320 nmdm_param(struct tty *tp, struct termios *t) argument 378 nmdm_modem(struct tty *tp, int sigon, int sigoff) argument 403 nmdm_inwakeup(struct tty *tp) argument 412 nmdm_outwakeup(struct tty *tp) argument [all...] |
/freebsd-12-stable/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_types.c | 31 ctf_get_ctt_size(const ctf_file_t *fp, const ctf_type_t *tp, ssize_t *sizep, argument 37 tp->ctt_size == CTF_LSIZE_SENT) { 38 size = CTF_TYPE_LSIZE(tp); 41 size = tp->ctt_size; 61 const ctf_type_t *tp; local 69 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL) 72 (void) ctf_get_ctt_size(fp, tp, &size, &increment); 73 kind = LCTF_INFO_KIND(fp, tp->ctt_info); 80 ((uintptr_t)tp + increment); 82 for (n = LCTF_INFO_VLEN(fp, tp 112 const ctf_type_t *tp; local 151 const ctf_type_t *tp = LCTF_INDEX_TO_TYPEPTR(fp, id); local 172 const ctf_type_t *tp; local 241 const ctf_type_t *tp = local 347 const ctf_type_t *tp; local 396 const ctf_type_t *tp; local 460 const ctf_type_t *tp; local 476 const ctf_type_t *tp; local 531 const ctf_type_t *tp; local 652 const ctf_type_t *tp; local 722 const ctf_type_t *tp; local 750 const ctf_type_t *tp; local 787 const ctf_type_t *tp; local 831 const ctf_type_t *tp; local [all...] |
/freebsd-12-stable/contrib/apr/network_io/unix/ |
H A D | inet_ntop.c | 149 char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp; local 203 tp = tmp; 207 *tp++ = ':'; 213 *tp++ = ':'; 218 if (!inet_ntop4(src+12, tp, sizeof tmp - (tp - tmp))) { 221 tp += strlen(tp); 224 tp += apr_snprintf(tp, sizeo [all...] |
/freebsd-12-stable/sys/dev/gxemul/cons/ |
H A D | gxemul_cons.c | 279 struct tty *tp; local 281 tp = tty_alloc(&gxemul_cons_ttydevsw, NULL); 282 tty_init_console(tp, 0); 283 tty_makedev(tp, NULL, "%s", "ttyu0"); 286 gxemul_cons_timeout, tp); 293 gxemul_cons_outwakeup(struct tty *tp) argument 303 len = ttydisc_getc(tp, &ch, sizeof(ch)); 315 struct tty *tp; local 318 tp = v; 319 tty_lock(tp); [all...] |
/freebsd-12-stable/contrib/netbsd-tests/lib/libm/ |
H A D | t_ceil.c | 864 ATF_TP_ADD_TCS(tp) 867 ATF_TP_ADD_TC(tp, ceil_basic); 868 ATF_TP_ADD_TC(tp, ceil_nan); 869 ATF_TP_ADD_TC(tp, ceil_inf_neg); 870 ATF_TP_ADD_TC(tp, ceil_inf_pos); 871 ATF_TP_ADD_TC(tp, ceil_zero_neg); 872 ATF_TP_ADD_TC(tp, ceil_zero_pos); 874 ATF_TP_ADD_TC(tp, ceilf_basic); 875 ATF_TP_ADD_TC(tp, ceilf_nan); 876 ATF_TP_ADD_TC(tp, ceilf_inf_ne [all...] |
H A D | t_log.c | 806 ATF_TP_ADD_TCS(tp) 809 ATF_TP_ADD_TC(tp, log10_base); 810 ATF_TP_ADD_TC(tp, log10_nan); 811 ATF_TP_ADD_TC(tp, log10_inf_neg); 812 ATF_TP_ADD_TC(tp, log10_inf_pos); 813 ATF_TP_ADD_TC(tp, log10_one_pos); 814 ATF_TP_ADD_TC(tp, log10_zero_neg); 815 ATF_TP_ADD_TC(tp, log10_zero_pos); 817 ATF_TP_ADD_TC(tp, log10f_base); 818 ATF_TP_ADD_TC(tp, log10f_na [all...] |
H A D | t_cos.c | 245 ATF_TP_ADD_TCS(tp) 248 ATF_TP_ADD_TC(tp, cos_angles); 249 ATF_TP_ADD_TC(tp, cos_nan); 250 ATF_TP_ADD_TC(tp, cos_inf_neg); 251 ATF_TP_ADD_TC(tp, cos_inf_pos); 252 ATF_TP_ADD_TC(tp, cos_zero_neg); 253 ATF_TP_ADD_TC(tp, cos_zero_pos); 255 ATF_TP_ADD_TC(tp, cosf_angles); 256 ATF_TP_ADD_TC(tp, cosf_nan); 257 ATF_TP_ADD_TC(tp, cosf_inf_ne [all...] |
H A D | t_cosh.c | 252 ATF_TP_ADD_TCS(tp) 255 ATF_TP_ADD_TC(tp, cosh_inrange); 256 ATF_TP_ADD_TC(tp, cosh_nan); 257 ATF_TP_ADD_TC(tp, cosh_inf_neg); 258 ATF_TP_ADD_TC(tp, cosh_inf_pos); 259 ATF_TP_ADD_TC(tp, cosh_zero_neg); 260 ATF_TP_ADD_TC(tp, cosh_zero_pos); 262 ATF_TP_ADD_TC(tp, coshf_inrange); 263 ATF_TP_ADD_TC(tp, coshf_nan); 264 ATF_TP_ADD_TC(tp, coshf_inf_ne [all...] |
H A D | t_sin.c | 245 ATF_TP_ADD_TCS(tp) 248 ATF_TP_ADD_TC(tp, sin_angles); 249 ATF_TP_ADD_TC(tp, sin_nan); 250 ATF_TP_ADD_TC(tp, sin_inf_neg); 251 ATF_TP_ADD_TC(tp, sin_inf_pos); 252 ATF_TP_ADD_TC(tp, sin_zero_neg); 253 ATF_TP_ADD_TC(tp, sin_zero_pos); 255 ATF_TP_ADD_TC(tp, sinf_angles); 256 ATF_TP_ADD_TC(tp, sinf_nan); 257 ATF_TP_ADD_TC(tp, sinf_inf_ne [all...] |
H A D | t_tan.c | 242 ATF_TP_ADD_TCS(tp) 245 ATF_TP_ADD_TC(tp, tan_angles); 246 ATF_TP_ADD_TC(tp, tan_nan); 247 ATF_TP_ADD_TC(tp, tan_inf_neg); 248 ATF_TP_ADD_TC(tp, tan_inf_pos); 249 ATF_TP_ADD_TC(tp, tan_zero_neg); 250 ATF_TP_ADD_TC(tp, tan_zero_pos); 252 ATF_TP_ADD_TC(tp, tanf_angles); 253 ATF_TP_ADD_TC(tp, tanf_nan); 254 ATF_TP_ADD_TC(tp, tanf_inf_ne [all...] |
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_lwp_create.c | 206 ATF_TP_ADD_TCS(tp) 208 ATF_TP_ADD_TC(tp, lwp_create_works); 209 ATF_TP_ADD_TC(tp, lwp_create_generic_fail_no_uc_cpu); 211 ATF_TP_ADD_TC(tp, lwp_create_alpha_fail_pslset); 212 ATF_TP_ADD_TC(tp, lwp_create_alpha_fail_pslclr); 215 ATF_TP_ADD_TC(tp, lwp_create_amd64_fail_untouchable_rflags); 216 ATF_TP_ADD_TC(tp, lwp_create_amd64_fail_pc_too_high); 219 ATF_TP_ADD_TC(tp, lwp_create_arm_fail_invalid_mode); 222 ATF_TP_ADD_TC(tp, lwp_create_hppa_fail_invalid_1); 223 ATF_TP_ADD_TC(tp, lwp_create_hppa_fail_invalid_ [all...] |
/freebsd-12-stable/contrib/tcpdump/ |
H A D | print-atalk.c | 413 register const struct atNBPtuple *tp = local 431 if ((const u_char *)tp > ep) { 440 if ((const u_char *)(tp + 1) > ep) { 444 (void)nbp_name_print(ndo, tp, ep); 452 if (tp->enumerator) 453 ND_PRINT((ndo, " [enum=%d]", tp->enumerator)); 454 if (EXTRACT_16BITS(&tp->net) != snet || 455 tp->node != snode || tp->skt != skt) 457 ataddr_string(ndo, EXTRACT_16BITS(&tp 504 nbp_tuple_print(netdissect_options *ndo, register const struct atNBPtuple *tp, register const u_char *ep, register u_short snet, register u_char snode, register u_char skt) argument 533 nbp_name_print(netdissect_options *ndo, const struct atNBPtuple *tp, register const u_char *ep) argument 570 register struct hnamemem *tp, *tp2; local [all...] |
/freebsd-12-stable/lib/libc/inet/ |
H A D | inet_ntop.c | 116 char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp; local 157 tp = tmp; 163 *tp++ = ':'; 168 *tp++ = ':'; 173 if (!inet_ntop4(src+12, tp, sizeof tmp - (tp - tmp))) { 177 tp += strlen(tp); 180 tp += sprintf(tp, " [all...] |
/freebsd-12-stable/sys/kern/ |
H A D | subr_terminal.c | 195 struct tty *tp; local 197 tp = tm->tm_tty; 198 if (tp == NULL) 201 tty_lock(tp); 202 tty_set_winsize(tp, &tm->tm_winsize); 203 tty_unlock(tp); 209 struct tty *tp; local 217 tp = tty_alloc(&terminal_tty_class, tm); 218 tty_makedev(tp, NULL, "%s", name); 219 tm->tm_tty = tp; 285 struct tty *tp; local 338 struct tty *tp; local 353 struct tty *tp; local 375 termtty_open(struct tty *tp) argument 384 termtty_close(struct tty *tp) argument 392 termtty_outwakeup(struct tty *tp) argument 418 termtty_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td) argument 463 termtty_mmap(struct tty *tp, vm_ooffset_t offset, vm_paddr_t * paddr, int nprot, vm_memattr_t *memattr) argument [all...] |
/freebsd-12-stable/sys/libkern/ |
H A D | inet_ntop.c | 102 char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp; local 145 tp = tmp; 151 *tp++ = ':'; 156 *tp++ = ':'; 161 if (!inet_ntop4(src+12, tp, sizeof tmp - (tp - tmp))) 163 tp += strlen(tp); 166 tp += sprintf(tp, " [all...] |
/freebsd-12-stable/usr.bin/netstat/ |
H A D | main.c | 241 struct protox *tp = NULL; /* for printing cblocks & stats */ local 360 if ((tp = name2protox(optarg)) == NULL) { 528 if (tp) { 530 printproto(tp, tp->pr_name, &first); 540 for (tp = protox; tp->pr_name; tp++) 541 printproto(tp, tp 615 printproto(struct protox *tp, const char *name, bool *first) argument 826 struct protox **tpp, *tp; local 841 struct protox *tp; local [all...] |