Searched defs:tp (Results 1 - 25 of 104) sorted by relevance

12345

/ast/src/lib/libast/vmalloc/
H A Dvmclear.c42 Block_t *tp; local
62 tp = SEGBLOCK(seg);
63 size = seg->baddr - ((Vmuchar_t*)tp) - 2*sizeof(Head_t);
65 SEG(tp) = seg;
66 SIZE(tp) = size;
68 seg->free = tp;
70 { SIZE(tp) |= BUSY|JUNK;
71 LINK(tp) = CACHE(vd)[C_INDEX(SIZE(tp))];
72 CACHE(vd)[C_INDEX(SIZE(tp))]
[all...]
H A Dvmpool.c50 reg Block_t *tp, *next; local
66 if((tp = vd->free) ) /* there is a ready free block */
67 { vd->free = SEGLINK(tp);
74 for(tp = NIL(Block_t*), seg = vd->seg; seg; seg = seg->next)
75 { if((tp = seg->free) &&
76 (s = (SIZE(tp) & ~BITS) + sizeof(Head_t)) >= size )
80 if((tp = (*_Vmextend)(vm,ROUND(size,vd->incr),NIL(Vmsearch_f))) )
81 { s = (SIZE(tp) & ~BITS) + sizeof(Head_t);
82 seg = SEG(tp);
87 got_blk: /* if get here, (tp,
122 Block_t *bp, *tp; local
[all...]
H A Dvmprivate.c50 reg Block_t *bp, *tp, *np; local
107 else REMOVE(vd,bp,INDEX(SIZE(bp)),tp,(*searchf));
163 tp = NEXT(bp);
164 SEG(tp) = seg;
165 SIZE(tp) = BUSY;
168 if((tp = vd->wild) && (seg = SEG(tp)) != vd->seg)
169 { np = NEXT(tp);
172 { SIZE(tp) |= BUSY|JUNK;
173 LINK(tp)
[all...]
H A Dvmlast.c44 Block_t *tp, *next; local
54 { if(!(tp = seg->free) || (SIZE(tp)+sizeof(Head_t)) < size)
65 if((tp = (*_Vmextend)(vm,size,NIL(Vmsearch_f))) )
66 { seg = SEG(tp);
72 if((s = SIZE(tp)) >= size)
73 { next = (Block_t*)((Vmuchar_t*)tp+size);
80 vd->free = seg->last = tp;
83 (*_Vmtrace)(vm, NIL(Vmuchar_t*), (Vmuchar_t*)tp, orgsize, 0);
88 return (Void_t*)tp;
145 Block_t *tp; local
[all...]
/ast/src/cmd/cs/vcs_src/
H A Dvcs_cmd.h38 tag_t* tp; member in struct:version_t
H A Dvcs_dir.c28 static rdirent_t* add_entry(head, tp)
30 tag_t* tp;
41 if (R_ISLINK(tp))
42 link = rs_readlink(tp->version);
44 marker = (R_ISMARKER(tp) ? 1 : 0);
54 if ((dp->tag->stat.st_ctime < tp->stat.st_ctime) && markermatch(dp->tag->version, tp->version))
64 if ((result = strcmp(dp->tag->version, tp->version)) == 0)
67 if (dp->tag->domain == tp->domain)
69 if (dp->tag->stat.st_ctime > tp
112 register tag_t* tp; local
[all...]
H A Dvcs_marker.c34 tag_t* tp; local
39 tp = NULL;
40 if (from && *from && search_tag(rp->fd, rp->ap, from, 0, &tp, G_LINK, &dir))
52 sfsprintf(buf, sizeof(buf), "%s%c%s", to, CHRMARKER, (tp ? tp->version : NULL));
67 tp = &tag;
68 new_tag(tp, st, buf, 0, 0, LOG | MARKER);
69 tp->stat.st_mtime = expire;
71 sfwrite(rp->fd, (char *)tp, tp
[all...]
H A Dvcs_checkout.c32 tag_t* tp; local
43 if (vp->tp == NULL)
45 vp->tp = tp = (tag_t *)malloc(sizeof(tag_t));
50 if (lookup_tag(NULL, rp->fd, ap, vp->version, vp->domain, &tp, 0))
53 if (search_tag(rp->fd, ap, vp->version, vp->domain, &tp, G_LINK, &dir))
55 if ((marker = getmarkerbyfrom(dir, vp->tp->version)))
70 tp = vp->tp;
84 if (ISBASE(tp))
[all...]
/ast/src/lib/libast/hash/
H A Dhashfree.c47 Hash_table_t* tp; local
109 if ((tp = tab->root->references) != tab)
111 for (; tp; tp = tp->next)
112 if (tp->next == tab)
114 tp->next = tab->next;
118 else if (!(tab->root->references = tp->next))
140 if (tp = tab->scope) tp
[all...]
/ast/src/cmd/3d/
H A Dlink3d.c32 register char* tp; local
52 if (!(tp = pathreal(target, P_PATHONLY|P_NOOPAQUE|P_SAFE, NiL)))
55 if ((r = LINK(sp, tp)) && errno == ENOENT && (t = strrchr(tp, '/')))
58 r = fs3d_mkdir(tp, S_IRWXU|S_IRWXG|S_IRWXO);
63 r = LINK(sp, tp);
69 if (mp && !LSTAT(tp, &state.path.st))
71 if (tp != tmp)
73 if (!(tp = pathreal(target, P_PATHONLY|P_NOOPAQUE|P_ABSOLUTE, NiL)))
75 tp
[all...]
H A Dsymlink3d.c30 register char* tp; local
48 if (!(tp = pathreal(target, P_PATHONLY|P_NOOPAQUE, NiL)))
51 if ((r = SYMLINK(sp, tp)) && errno == ENOENT && (t = strrchr(tp, '/')))
54 r = fs3d_mkdir(tp, S_IRWXU|S_IRWXG|S_IRWXO);
59 r = SYMLINK(sp, tp);
67 if (tp != tmp)
69 if (!(tp = pathreal(target, P_PATHONLY|P_NOOPAQUE|P_ABSOLUTE, NiL)))
71 tp = strncpy(tmp, tp, PATH_MA
[all...]
H A Dexecve3d.c61 char* tp; local
115 tp = strcopy(ep, var_3d);
116 size = mapdump(NiL, tp, MAP_EXEC);
117 if (!keep(tp, size, 1))
/ast/src/cmd/coshell/
H A Djob.c41 Sfio_t* tp; local
69 if (tp = state.con[fd].info.pass.serialize)
72 cswrite(state.con[fd].info.pass.fd, sfstrbase(tp), sfstrtell(tp));
73 sfstrclose(tp);
/ast/src/lib/libast/tm/
H A Dtmxmake.c42 register struct tm* tp; local
120 if ((tp = tmlocaltime(&now)) && ((tm->tm_isdst = tp->tm_isdst) || o))
H A Dtminit.c132 register struct tm* tp; local
142 if (!(tp = gmtime(clock)))
150 tp = gmtime(clock);
152 n = tp->tm_yday;
153 h = tp->tm_hour;
154 m = tp->tm_min;
160 tp = tmlocaltime(clock);
161 if (n = tp->tm_yday - n)
168 *isdst = tp->tm_isdst;
169 return (h - tp
216 struct tm* tp; local
[all...]
/ast/src/lib/libcmd/
H A Dtee.c94 tee_cleanup(register Tee_t* tp) argument
99 if (tp)
102 if (tp->line >= 0)
103 sfset(sfstdout, SF_LINE, tp->line);
104 for (hp = tp->fd; (n = *hp) >= 0; hp++)
112 register Tee_t* tp = 0; local
120 if (context && (tp = (Tee_t*)sh_context(context)->data))
123 tee_cleanup(tp);
170 if (tp = (Tee_t*)stakalloc(sizeof(Tee_t) + argc * sizeof(int)))
172 memset(&tp
[all...]
/ast/src/lib/libcs/
H A Dcsattr.c50 register Hash_table_t* tp; local
54 if (tp = hashalloc(NiL, HASH_set, HASH_ALLOCATE, HASH_name, "state->info", 0))
64 if (!(ip = (Info_t*)hashlook(tp, h, HASH_CREATE|HASH_SIZE(sizeof(Info_t)+strlen(s)+1), NiL)))
66 hashfree(tp);
67 tp = 0;
75 return tp;
96 static Hash_table_t* tp; local
101 if (!tp && !(tp = load(state)))
111 if (!pt && !(pt = hashscan(tp,
[all...]
H A Dcspoll.c59 struct timeval* tp; local
66 tp = &tv;
68 else tp = 0;
104 messagef((state->id, NiL, -6, "poll: %s num=%d ms=%d sec=%d usec=%d", fmttime("%K", CSTIME()), num, ms, tp ? tp->tv_sec : 0, tp ? tp->tv_usec : 0));
105 num = select(width + 1, rp, wp, ep, tp);
/ast/src/lib/libodelta/
H A Dmtchstring.c46 register char *sp, *tp; local
49 for(sp = src+n_match, tp = tar+n_match; sp > src; --sp, --tp)
50 if(*sp != *tp)
57 tp = tar+n_match+1;
58 for(; sp < endsrc && tp < endtar; ++sp, ++tp)
59 if(*sp != *tp)
62 return tp-tar;
/ast/src/lib/libpp/
H A Dppcall.c59 struct pptuple* tp; local
101 if (tp = mac->tuple)
129 if (streq(pp.token, tp->token))
131 if (!(tp = tp->match))
133 if (!tp->nomatch)
138 PUSH_TUPLE(sym, tp->token);
143 else if (!(tp = tp->nomatch))
146 if (!tp)
[all...]
/ast/src/cmd/dsslib/netflow/
H A Dflow-dumpv9.c80 register Netflow_template_t* tp; local
135 for (tp = mp->templates; tp && tp->id != n; tp = tp->next);
136 if (!tp || !tp->size)
147 if (tp->options)
152 pp->template = tp;
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dulimit.c53 register const Limit_t* tp; local
55 for (tp = shtab_limits; tp->option; tp++)
57 sfprintf(sp, "[%c=%d:%s?The %s", tp->option, tp - shtab_limits + 1, tp->name, tp->description);
58 if(tp->type != LIM_COUNT)
59 sfprintf(sp, " in %ss", e_units[tp
77 const Limit_t* tp; local
[all...]
/ast/src/lib/libast/string/
H A Dbase64.c54 register unsigned char* tp; local
71 if (tp = (unsigned char*)tb)
73 te = tp + tz - B64_EC + 1;
82 tp = tmp;
83 te = tp + sizeof(tmp) - B64_EC + 1;
88 tc = tp + B64_EC * B64_CHUNK;
93 if (tp >= te)
98 *tn = tp;
99 n = tp - (unsigned char*)tb + 1;
100 tp
165 register unsigned char* tp; local
[all...]
/ast/src/lib/libcoshell/
H A Dcoexec.c248 Sfio_t* tp; local
250 tp = sp;
252 sp = tp;
296 if (sp != tp)
298 sfprintf(tp, "%s -c '", state.sh);
301 coquote(tp, s, 0);
302 sfprintf(tp, "'");
304 sp = tp;
314 Sfio_t* tp; local
316 tp
[all...]
H A Dcoinit.c128 Sfio_t* tp; local
180 tp = 0;
277 if (tp)
278 sfstrclose(tp);
313 tp = 0;
314 else if (!(tp = sfstropen()))
337 sfputc(tp, n);
339 if (!(s = costash(tp)))
343 if (tp)
344 sfstrclose(tp);
[all...]

Completed in 43 milliseconds

12345