/illumos-gate/usr/src/cmd/sendmail/db/txn/ |
H A D | txn.c | 588 tp = NULL; 596 tp = NULL; 598 *tdp = tp; 867 DB_TXNMGR *tp; in __txn_validate_region() 871 if (tp->reginfo.size == tp->region->hdr.size) 879 tp->region = tp->reginfo.addr; 880 tp->mem = &tp->region[1]; 887 DB_TXNMGR *tp; in __txn_grow_region() 897 (u_int8_t *)tp->mutexp - (u_int8_t *)tp->region : 0; 902 tp->region = tp->reginfo.addr; [all …]
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | lufs_debug.c | 132 threadtrans_t *tp; in top_begin_debug() local 141 if (tp == NULL) { in top_begin_debug() 145 tp->topid = topid; in top_begin_debug() 146 tp->esize = size; in top_begin_debug() 147 tp->rsize = 0; in top_begin_debug() 155 threadtrans_t *tp; in top_end_debug() local 161 ASSERT((tp->dev == ul->un_dev) && (tp->topid == topid) && in top_end_debug() 164 ASSERT(((ul->un_debug & MT_SIZE) == 0) || (tp->rsize <= tp->esize)); in top_end_debug() 174 tp->rsize; in top_end_debug() 178 tp->rsize; in top_end_debug() [all …]
|
H A D | lufs_top.c | 75 if (tp) { in top_delta() 76 tp->any_deltas = 1; in top_delta() 194 threadtrans_t *tp; in top_begin_sync() local 214 if (tp && (tp->last_async_tid != mtm->mtm_tid) && in top_begin_sync() 356 threadtrans_t *tp; in top_begin_async() local 360 tp = tsd_get(topkey); in top_begin_async() 361 if (tp == NULL) { in top_begin_async() 365 tp->deltas_size = 0; in top_begin_async() 366 tp->any_deltas = 0; in top_begin_async() 591 ASSERT(tp); in top_end_async() [all …]
|
/illumos-gate/usr/src/cmd/units/ |
H A D | units.c | 336 for(tp = &table[0]; tp < &table[NTAB]; tp++) { in init() 361 tp = hash(np); in init() 362 if(tp->name) in init() 364 tp->name = np; in init() 481 struct table *tp; in hash() local 491 tp = &table[h]; in hash() 493 if(tp->name == 0) in hash() 494 return(tp); in hash() 496 return(tp); in hash() 497 tp++; in hash() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/inet/ |
H A D | inet_net_pton.c | 277 endp = tp + NS_IN6ADDRSZ; in inet_net_pton_ipv6() 307 colonp = tp; in inet_net_pton_ipv6() 311 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6() 314 *tp++ = (u_char) val & 0xff; in inet_net_pton_ipv6() 322 tp += NS_INADDRSZ; in inet_net_pton_ipv6() 332 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6() 335 *tp++ = (u_char) val & 0xff; in inet_net_pton_ipv6() 352 const int n = tp - colonp; in inet_net_pton_ipv6() 355 if (tp == endp) in inet_net_pton_ipv6() 361 tp = endp; in inet_net_pton_ipv6() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/hash/ |
H A D | hashfree.c | 47 Hash_table_t* tp; in hashfree() local 109 if ((tp = tab->root->references) != tab) in hashfree() 111 for (; tp; tp = tp->next) in hashfree() 112 if (tp->next == tab) in hashfree() 114 tp->next = tab->next; in hashfree() 118 else if (!(tab->root->references = tp->next)) in hashfree() 140 if (tp = tab->scope) tp->frozen--; in hashfree() 143 return(tp); in hashfree()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | typegraph.c | 1438 for (tp = *list; tp != NULL; tp = tp->tgt_next) { in typegraph_node_addtype() 1451 *list = tp; in typegraph_node_addtype() 1798 for (tp = node->tgn_typelist; tp != NULL; tp = tp->tgt_next) { in typegraph_pass2_node() 1989 for (tp = *list; tp != NULL; tp = tp->tgt_next) { in typegraph_pass3() 1997 for (tp = *list; tp != NULL; tp = next) { in typegraph_pass3() 2603 for (; tp != NULL; tp = tp->tgt_next) { in whattype() 2638 for (tp = node->tgn_typelist; tp != NULL; tp = tp->tgt_next) { in whattype() 2652 for (tp = node->tgn_fraglist; tp != NULL; tp = tp->tgt_next) { in whattype() 3026 for (tp = node->tgn_typelist; tp != NULL; tp = tp->tgt_next) { in findlocks_node() 3078 for (tp = node->tgn_fraglist; tp != NULL; tp = tp->tgt_next) { in findlocks_node() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | tail.c | 275 tp->fifo = 0; in init() 276 if (tp->sp) in init() 280 tp->sp = 0; in init() 284 if (!tp->name || streq(tp->name, "-")) in init() 287 tp->sp = sfstdin; in init() 289 else if (!(tp->sp = sfopen(tp->sp, tp->name, "r"))) in init() 323 tp->fifo = 1; in init() 330 pipetail(tp->sp ? tp->sp : sfstdin, op, number, delim); in init() 339 tp->cur = tp->end = offset; in init() 353 sfclose(tp->sp); in init() [all …]
|
/illumos-gate/usr/src/cmd/streams/log/ |
H A D | strace.c | 115 getid(int ac, char **av, struct trace_ids *tp) in getid() argument 124 tp->ti_mid = convarg(getarg()); in getid() 125 tp->ti_sid = convarg(getarg()); in getid() 126 tp->ti_level = convarg(getarg()); in getid() 163 tp->ti_mid = convarg(av[index++]); in getid() 164 tp->ti_sid = convarg(av[index++]); in getid() 165 tp->ti_level = convarg(av[index++]); in getid() 182 struct trace_ids *tp; in main() local 198 tp = tid; in main() 207 while (getid(ac, av, tp)) { in main() [all …]
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cpupart.c | 681 cpu_t *boundcpu = tp->t_bound_cpu ? tp->t_bound_cpu : in cpupart_movable_thread() 717 thread_lock(tp); in cpupart_move_thread() 719 thread_unlock(tp); in cpupart_move_thread() 743 lgrp_move_thread(tp, &tp->t_cpupart->\ in cpupart_move_thread() 752 lgrp_move_thread(tp, lgrp_choose(tp, tp->t_cpupart), in cpupart_move_thread() 758 ASSERT((tp->t_lpl >= tp->t_cpupart->cp_lgrploads) && in cpupart_move_thread() 759 (tp->t_lpl < tp->t_cpupart->cp_lgrploads + in cpupart_move_thread() 765 cpu_surrender(tp); in cpupart_move_thread() 768 setbackdq(tp); in cpupart_move_thread() 776 aston(tp); in cpupart_move_thread() [all …]
|
H A D | priocntl.c | 842 *argp->pcmp_cidp = tp->t_cid; in threadcmp() 849 *argp->pcmp_retthreadp = tp; in threadcmp() 950 schedctl_set_cidpri(tp); in setthreadnice() 959 kthread_t *tp; in setprocnice() local 985 } while ((tp = tp->t_forw) != pp->p_tlist); in setprocnice() 1086 id_t oldcid = tp->t_cid; in setthreadprio() 1099 schedctl_set_cidpri(tp); in setthreadprio() 1111 pcprio->pc_cid = tp->t_cid; in setthreadprio() 1120 schedctl_set_cidpri(tp); in setthreadprio() 1129 kthread_t *tp; in setprocprio() local [all …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmutil.c | 94 char *tp = tbuf; in check_cmd() local 100 (void) strcpy(tp, cmd); in check_cmd() 101 (void) strtok(tp, " \t"); in check_cmd() 102 if (*tp != '/') { in check_cmd() 103 log("error -- must specify full path name for \"%s\".", tp); in check_cmd() 106 if (access(tp, 0) == 0) { in check_cmd() 107 if (stat(tp, &statbuf) < 0) { in check_cmd() 108 log("stat(%s) failed.", tp); in check_cmd() 112 log("error -- \"%s\" not executable\n", tp); in check_cmd() 116 log("error -- \"%s\" not a regular file", tp); in check_cmd() [all …]
|
/illumos-gate/usr/src/lib/libdisasm/common/ |
H A D | dis_sparc.c | 225 const table_t *tp = &initial_table; in dis_sparc_disassemble() local 253 idx = dis_get_bits(instr, tp->tbl_field, tp->tbl_len); in dis_sparc_disassemble() 254 inp = &tp->tbl_inp[idx]; in dis_sparc_disassemble() 256 inp = dis_get_overlay(dhp, tp, idx); in dis_sparc_disassemble() 263 tp = inp->in_data.in_tbl; in dis_sparc_disassemble() 270 if (tp->tbl_fmt(dhp, instr, inp, idx) == 0) in dis_sparc_disassemble() 303 const inst_t *ip = &tp->tbl_inp[idx]; in dis_get_overlay() 306 if (tp->tbl_ovp == NULL) in dis_get_overlay() 309 for (i = 0; tp->tbl_ovp[i].ov_idx != -1; ++i) { in dis_get_overlay() 310 if (tp->tbl_ovp[i].ov_idx != idx) in dis_get_overlay() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmpool.c | 50 reg Block_t *tp, *next; local 67 { vd->free = SEGLINK(tp); 75 { if((tp = seg->free) && 81 { s = (SIZE(tp) & ~BITS) + sizeof(Head_t); 82 seg = SEG(tp); 88 next = (Block_t*)((Vmuchar_t*)tp+size); 105 if(!local && (vd->mode&VM_TRACE) && _Vmtrace && tp) 110 return (Void_t*)tp; 122 Block_t *bp, *tp; local 145 if(bp == tp) [all …]
|
H A D | vmlast.c | 44 Block_t *tp, *next; local 54 { if(!(tp = seg->free) || (SIZE(tp)+sizeof(Head_t)) < size) 66 { seg = SEG(tp); 88 return (Void_t*)tp; 145 Block_t *tp; local 218 { tp = vd->free; 220 { vd->free = tp; 231 SEG(tp) = seg; 233 seg->free = tp; 250 SEG(tp) = seg; [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | server.c | 125 tp++; in server() 259 while (*tp) in install() 260 tp++; in install() 392 otp = tp; in sendf() 409 tp--; in sendf() 415 tp = otp; in sendf() 843 tp--; in recvf() 1320 otp = tp; in clean() 1337 tp--; in clean() 1361 tp = otp; in clean() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | pplex.c | 194 char* tp; in ppcpp() local 220 tp = op; in ppcpp() 251 tp = op; in ppcpp() 281 c = *tp; in ppcpp() 382 tp = op; in ppcpp() 396 while (*tp != '/') tp++; in ppcpp() 821 c = *tp; in ppcpp() 881 tp = op; in ppcpp() 1333 bp = tp; in ppcpp() 1335 while (tp > bp && ppisidig(*(tp - 1))) tp--; in ppcpp() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | pset.c | 302 kthread_t *tp; in pset_bind_process() local 311 tp = pp->p_tlist; in pset_bind_process() 312 if (tp != NULL) { in pset_bind_process() 320 } while ((tp = tp->t_forw) != pp->p_tlist); in pset_bind_process() 411 kthread_t *tp; in pset_unbind() local 424 tp = pp->p_tlist; in pset_unbind() 442 } while ((tp = tp->t_forw) != pp->p_tlist); in pset_unbind() 478 kthread_t *tp; in pset_bind_lwp() local 493 tp = curthread; in pset_bind_lwp() 535 kthread_t *tp; in pset_bind() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | test.c | 201 r = e3(tp); in expr() 202 while(tp->ap < tp->ac) in expr() 208 tp->ap--; in expr() 217 tp->ap--; in expr() 238 if(tp->ap >= tp->ac) in nxtarg() 242 tp->ap++; in nxtarg() 247 return(tp->av[tp->ap++]); in nxtarg() 256 arg=nxtarg(tp,0); in e3() 280 tp->ap--; in e3() 299 tp->ap--; in e3() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | tftp.c | 415 cp = (char *)&tp->th_stuff; in makerequest() 418 cpend = (char *)tp + SEGSIZE; in makerequest() 435 return (cp - (char *)tp); in makerequest() 623 struct tftphdr *tp; in nak() local 627 tp = &ackbuf.tb_hdr; in nak() 635 tp->th_code = EUNDEF; in nak() 641 tpacket("sent", tp, length); in nak() 665 tpend = (char *)tp + n; in tpacket() 666 n -= sizeof (tp->th_opcode); in tpacket() 688 n - sizeof (tp->th_opcode) - sizeof (tp->th_block)); in tpacket() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | class.h | 159 #define CL_FORK(tp, ct, bufp) (*(tp)->t_clfuncs->cl_fork)(tp, ct, bufp) argument 187 #define CL_PREEMPT(tp) (*(tp)->t_clfuncs->cl_preempt)(tp) argument 189 #define CL_SETRUN(tp) (*(tp)->t_clfuncs->cl_setrun)(tp) argument 191 #define CL_SLEEP(tp) (*(tp)->t_clfuncs->cl_sleep)(tp) argument 222 #define CL_YIELD(tp) (*(tp)->t_clfuncs->cl_yield)(tp) argument
|
H A D | thread.h | 636 ((tp)->t_state = state, (tp)->t_lockp = lp) 642 #define THREAD_TRANSITION(tp) thread_transition(tp); argument 647 #define THREAD_TRANSITION_NOLOCK(tp) ((tp)->t_lockp = &transition_lock) argument 653 #define THREAD_RUN(tp, lp) THREAD_SET_STATE(tp, TS_RUN, lp) argument 659 #define THREAD_WAIT(tp, lp) THREAD_SET_STATE(tp, TS_WAIT, lp) argument 665 #define THREAD_SWAP(tp, lp) THREAD_SET_STATE(tp, TS_RUN, lp) argument 671 #define THREAD_ZOMB(tp) THREAD_SET_STATE(tp, TS_ZOMB, NULL) argument 678 #define THREAD_ONPROC(tp, cpu) \ argument 685 #define THREAD_SLEEP(tp, lp) { \ argument 687 tlp = (tp)->t_lockp; \ [all …]
|
/illumos-gate/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_sec_mechs.c | 150 void *tp; in list_copy() local 169 *tpp++ = tp; in list_copy() 319 char *tp; in parse_line() local 328 if (!(tp = strdup(cp))) { in parse_line() 333 *tpp = tp; in parse_line() 463 if (mp && tp) { in equal_entries() 494 if (!mp || !tp) in sf_copy_mech_ent() 500 tp->keylen = mp->keylen; in sf_copy_mech_ent() 504 return (tp); in sf_copy_mech_ent() 957 if (!mp || !tp) in mf_copy_ent() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | tty | 45 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD) 49 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD) 50 # define cfgetispeed(tp) ((tp)->c_cflag & CBAUD) 51 # define cfsetispeed(tp,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val)) 52 # define cfsetospeed(tp,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val))
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | tick.c | 31 time_t tp; in tick() local 33 time(&tp); in tick() 36 start = tp; in tick() 43 time_t tp; in tock() local 48 time(&tp); in tock() 49 lap = (tp - start)/60.; in tock()
|