Home
last modified time | relevance | path

Searched refs:last (Results 1 – 25 of 686) sorted by relevance

12345678910>>...28

/titanic_44/usr/src/lib/libast/common/comp/
H A Ddirname.c35 register char *last; in dirname() local
37 for(last=pathname; *last; last++); in dirname()
39 while(last>pathname && *--last=='/'); in dirname()
41 for(;last>pathname && *last!='/';last--); in dirname()
42 if(last==pathname) in dirname()
45 if(*last!='/') in dirname()
46 *last = '.'; in dirname()
48 else if(last[1]=='/') in dirname()
49 last++; in dirname()
54 for(;*last=='/' && last > pathname; last--); in dirname()
[all …]
H A Dbasename.c35 register char *first, *last; in basename() local
36 for(first=last=pathname; *last; last++); in basename()
38 if(last>first) in basename()
39 while(*--last=='/' && last > first); in basename()
40 if(last==first && *last=='/') in basename()
44 if(*++last=='/') /* keep leading // */ in basename()
45 last++; in basename()
49 for(first=last++;first>pathname && *first!='/';first--); in basename()
53 *last = 0; in basename()
/titanic_44/usr/src/lib/libcmd/common/
H A Ddirname.c68 register const char *last; in l_dirname() local
70 for(last=pathname; *last; last++); in l_dirname()
72 while(last>pathname && *--last=='/'); in l_dirname()
74 for(;last>pathname && *last!='/';last--); in l_dirname()
75 if(last==pathname) in l_dirname()
79 last = pathname = "."; in l_dirname()
84 for(;*last=='/' && last > pathname; last--); in l_dirname()
87 if(last!=pathname && pathname[0]=='/' && pathname[1]=='/') in l_dirname()
89 while(pathname[2]=='/' && pathname<last) in l_dirname()
91 …if(last!=pathname && pathname[0]=='/' && pathname[1]=='/' && *astconf("PATH_LEADING_SLASHES",NiL,N… in l_dirname()
[all …]
H A Dbasename.c64 register char *first, *last; in namebase() local
66 for(first=last=pathname; *last; last++); in namebase()
68 if(last>first) in namebase()
69 while(*--last=='/' && last > first); in namebase()
70 if(last==first && *last=='/') in namebase()
74 if(*++last=='/') /* keep leading // */ in namebase()
75 last++; in namebase()
79 for(first=last++;first>pathname && *first!='/';first--); in namebase()
83 if(suffix && (n=strlen(suffix)) && n<(last-first)) in namebase()
85 if(memcmp(last-n,suffix,n)==0) in namebase()
[all …]
/titanic_44/usr/src/cmd/mandoc/
H A Dmdoc_validate.c393 if (MDOC_VALID & mdoc->last->flags) in mdoc_valid_post()
395 mdoc->last->flags |= MDOC_VALID; in mdoc_valid_post()
397 switch (mdoc->last->type) { in mdoc_valid_post()
410 if (NULL == mdoc_valids[mdoc->last->tok].post) in mdoc_valid_post()
412 for (p = mdoc_valids[mdoc->last->tok].post; *p; p++) in mdoc_valid_post()
426 if (mdoc->last->type != type) in check_count()
432 if (mdoc->last->nchild < val) in check_count()
437 if (mdoc->last->nchild > val) in check_count()
442 if (val == mdoc->last->nchild) in check_count()
451 mandoc_vmsg(t, mdoc->parse, mdoc->last->line, mdoc->last->pos, in check_count()
[all …]
H A Dman_macro.c133 while (man->last != to) { in man_unscope()
140 n = man->last->parent; in man_unscope()
141 rew_warn(man, man->last, er); in man_unscope()
144 man->last = n; in man_unscope()
145 assert(man->last); in man_unscope()
148 rew_warn(man, man->last, er); in man_unscope()
253 for (n = man->last; n; n = n->parent) { in rew_scope()
298 for (nn = man->last->parent; nn; nn = nn->parent) in blk_close()
342 for (n = man->last; n; n = n->parent) { in blk_exp()
383 n = man->last; in blk_imp()
[all …]
H A Deqn.c380 eqn_eqn(struct eqn_node *ep, struct eqn_box *last) in eqn_eqn() argument
385 bp = eqn_box_alloc(ep, last); in eqn_eqn()
395 eqn_matrix(struct eqn_node *ep, struct eqn_box *last) in eqn_matrix() argument
402 bp = eqn_box_alloc(ep, last); in eqn_matrix()
415 switch (bp->last->pile) { in eqn_matrix()
444 eqn_list(struct eqn_node *ep, struct eqn_box *last) in eqn_list() argument
451 bp = eqn_box_alloc(ep, last); in eqn_list()
488 eqn_box(struct eqn_node *ep, struct eqn_box *last) in eqn_box() argument
520 if (EQN_DESCOPE != (c = eqn_eqn(ep, last))) { in eqn_box()
537 if (EQN_OK == (c = eqn_list(ep, last))) in eqn_box()
[all …]
/titanic_44/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_llist.c133 DAPL_LLIST_ENTRY *last; in dapl_llist_add_tail() local
141 last = (*head)->blink; in dapl_llist_add_tail()
142 entry->flink = last->flink; in dapl_llist_add_tail()
143 entry->blink = last; in dapl_llist_add_tail()
144 last->flink->blink = entry; in dapl_llist_add_tail()
145 last->flink = entry; in dapl_llist_add_tail()
163 DAPL_LLIST_ENTRY *last; in dapl_llist_add_entry() local
171 last = entry->blink; in dapl_llist_add_entry()
173 last->flink = new_entry; in dapl_llist_add_entry()
176 new_entry->blink = last; in dapl_llist_add_entry()
[all …]
/titanic_44/usr/src/lib/libast/common/cdt/
H A Ddtflatten.c37 reg Dtlink_t *t, *r, *list, *last, **s, **ends; local
43 list = last = NIL(Dtlink_t*);
47 { if(last)
48 last->right = t;
49 else list = last = t;
50 while(last->right)
51 last = last->right;
52 *s = last;
61 for(list = last = r, r = r->right; r; last = r, r = r->right)
66 last->right = r;
/titanic_44/usr/src/lib/libtecla/common/
H A Dioutil.c108 int last = start; /* The column number of the last character written */ in _io_display_text() local
150 last = start; in _io_display_text()
155 if(indentation > 0 && last < indentation) { in _io_display_text()
156 if(_io_pad_line(write_fn, data, fill_char, indentation - last)) in _io_display_text()
158 last = indentation; in _io_display_text()
164 if(prefix_len > 0 && last < margin_width) { in _io_display_text()
165 int pstart = last - indentation; in _io_display_text()
169 last = margin_width; in _io_display_text()
183 for(i=ndone; string[i] && (last+i-ndone < term_width - suffix_len || in _io_display_text()
184 (nnew==0 && last==margin_width)); i++) { in _io_display_text()
[all …]
/titanic_44/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil.c217 char *last; in parse_version() local
221 tok = strtok_r(line, WHITESPACE, &last); in parse_version()
226 vertok = strtok_r(last, WHITESPACE, &last); in parse_version()
238 tok = strtok_r(last, WHITESPACE, &last); in parse_version()
265 char *last; in parse_path() local
267 pathtok = strtok_r(line, WHITESPACE, &last); in parse_path()
272 tok = strtok_r(last, WHITESPACE, &last); in parse_path()
315 char *last; in parse_node() local
318 tok = strtok_r(line, WHITESPACE, &last); in parse_node()
323 nametok = strtok_r(last, WHITESPACE, &last); in parse_node()
[all …]
/titanic_44/usr/src/cmd/adbgen/common/
H A Dadbgen4.c52 char *cur, *last, *cp1, *cp2, *ep, *t; in main() local
56 last = buf1; in main()
59 if (goodstart(cur) && goodstart(last)) { in main()
99 ep = last + strlen(last); in main()
112 puts(last); in main()
114 cur = last; in main()
115 last = t; in main()
117 puts(last); in main()
/titanic_44/usr/src/lib/libast/common/tm/
H A Dtmxduration.c39 char* last; in tmxduration() local
49 ns = tmxdate(s, &last, now) - now; in tmxduration()
52 ns = strtod(s, &last) * TMX_RESOLUTION; in tmxduration()
53 if (*last && (f = sfstropen())) in tmxduration()
58 if ((i = x - t - 6) > (last - s)) in tmxduration()
60 last = (char*)s + i; in tmxduration()
68 if ((i = x - t - 1) > (last - s)) in tmxduration()
70 last = (char*)s + i; in tmxduration()
78 *e = last; in tmxduration()
/titanic_44/usr/src/lib/libc/port/gen/
H A Dnftw.c135 struct Save *last; member
173 int depth, struct Save *last, struct Var *vp) in walk() argument
190 this.last = last; in walk()
192 if ((vp->curflags & FTW_CHDIR) && last) in walk()
193 comp = last->comp; in walk()
216 if ((*vp->statf)(comp, &statb, last, _AT_TRIGGER) >= 0) { in walk()
220 (void) oldclose(last); in walk()
222 if (errno == EMFILE && oldclose(last) && in walk()
263 (cdlstat(comp, &statb, last, 0) >= 0) && in walk()
266 (nocdlstat(comp, &statb, last, 0) >= 0) && in walk()
[all …]
/titanic_44/usr/src/cmd/dtrace/demo/sched/
H A Dxwork.d27 self int last; variable
30 /self->last && args[0]->pr_stype == SOBJ_CV/
32 @[stringof(args[1]->pr_fname)] = sum(vtimestamp - self->last);
33 self->last = 0;
37 /execname == "Xsun" && self->last == 0/
39 self->last = vtimestamp;
/titanic_44/usr/src/lib/libresolv2/common/isc/
H A Dev_waits.c63 if (wl->last != NULL) in evWaitFor()
64 wl->last->next = new; in evWaitFor()
67 wl->last = new; in evWaitFor()
92 if (ctx->waitDone.last != NULL) in evDo()
93 ctx->waitDone.last->next = first; in evDo()
96 ctx->waitDone.last = wl->last; in evDo()
125 if (wl->last == this) in evUnwait()
126 wl->last = prev; in evUnwait()
144 if (ctx->waitDone.last == this) in evUnwait()
145 ctx->waitDone.last = prev; in evUnwait()
[all …]
/titanic_44/usr/src/lib/libpkg/common/
H A Dcanonize.c40 char *pt, *last; in canonize() local
49 last = pt; in canonize()
52 last += 2; in canonize()
53 if (*last) in canonize()
54 last++; in canonize()
55 } while (isdotdot(last)); in canonize()
65 (void) strcpy(pt, last); in canonize()
/titanic_44/usr/src/ucbcmd/tr/
H A Dtr.c52 struct string { int last, max; char *p; } string1, string2; member
63 string1.last = string2.last = 0; in main()
139 if(s->last++ < s->max) in next()
140 return(s->last); in next()
141 s->max = s->last = 0; in next()
143 if(s->last && *s->p=='-') { in next()
150 if(s->max < s->last) { in next()
151 s->last = s->max-1; in next()
156 return(s->last = nextc(s)); in next()
/titanic_44/usr/src/lib/libsip/common/
H A Dsip_timeout.c97 sip_timeout_t *current, *last; in sip_untimeout() local
99 last = NULL; in sip_untimeout()
113 last->sip_timeout_next = in sip_untimeout()
117 timeout_current_end = last; in sip_untimeout()
129 last = current; in sip_untimeout()
138 last = NULL; in sip_untimeout()
146 last->sip_timeout_next = in sip_untimeout()
160 last = current; in sip_untimeout()
177 sip_timeout_t *last; in sip_timeout() local
214 last = current = timeout_list; in sip_timeout()
[all …]
/titanic_44/usr/src/cmd/svr4pkg/libinst/
H A Deptstat.c71 struct pinfo *pinfo, *last, *me, *myparent; in eptstat() local
76 me = myparent = last = (struct pinfo *)0; in eptstat()
87 myparent = last; in eptstat()
91 last = pinfo; in eptstat()
105 if (me == last) in eptstat()
106 last = myparent; in eptstat()
141 if (last) in eptstat()
142 last->next = me; /* add to end */ in eptstat()
/titanic_44/usr/src/lib/libinstzones/common/
H A Dzones_paths.c95 char *last; in z_path_canonize() local
104 last = pt; in z_path_canonize()
107 last += 2; in z_path_canonize()
108 if (*last) { in z_path_canonize()
109 last++; in z_path_canonize()
111 } while (isdotdot(last)); in z_path_canonize()
123 (void) strcpy(pt, last); in z_path_canonize()
/titanic_44/usr/src/lib/libast/common/string/
H A Dstrelapsed.c47 const char* last; in strelapsed() local
53 if (!*(last = s)) in strelapsed()
60 last = s + 1; in strelapsed()
74 last = s; in strelapsed()
77 if (s == last + 1) in strelapsed()
141 last = s - 1; in strelapsed()
152 *e = (char*)last; in strelapsed()
/titanic_44/usr/src/uts/common/io/aggr/
H A Daggr_recv.c84 mblk_t *cmp, *last, *head; in aggr_recv_cb() local
89 last = NULL; in aggr_recv_cb()
102 last->b_next = NULL; in aggr_recv_cb()
113 last = NULL; in aggr_recv_cb()
128 ASSERT(last == NULL); in aggr_recv_cb()
135 ASSERT(last != NULL); in aggr_recv_cb()
137 last->b_next = NULL; in aggr_recv_cb()
149 last = NULL; in aggr_recv_cb()
152 last = cmp; in aggr_recv_cb()
/titanic_44/usr/src/cmd/krb5/krb5kdc/
H A Dreplay.c74 register krb5_kdc_replay_ent *eptr, *last, *hold; in kdc_check_lookaside() local
87 for (last = &root_ptr, eptr = root_ptr.next; in kdc_check_lookaside()
107 last->next = eptr->next; in kdc_check_lookaside()
108 eptr = last; in kdc_check_lookaside()
112 last = eptr; in kdc_check_lookaside()
163 register krb5_kdc_replay_ent *eptr, *last, *hold; in kdc_free_lookaside() local
165 for (last = &root_ptr, eptr = root_ptr.next; in kdc_free_lookaside()
170 last->next = eptr->next; in kdc_free_lookaside()
171 eptr = last; in kdc_free_lookaside()
/titanic_44/usr/src/cmd/sh/
H A Dservice.c319 unsigned char *last; in trim() local
327 last = at; in trim()
331 *last++ = c; in trim()
337 memcpy(last, current, len); in trim()
338 last += len; in trim()
349 *last++ = c; in trim()
353 memcpy(last, current, len); in trim()
354 last += len; in trim()
360 *last = 0; in trim()
369 unsigned char *last; local
[all …]

12345678910>>...28