Home
last modified time | relevance | path

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

12345678910>>...32

/titanic_50/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_50/usr/src/lib/iconv_modules/vi/common/
H A Dtcvn%UTF-8.c38 unsigned short last; member
104 if (st->last != 0) { in _icv_iconv()
119 unidx = binsearch(st->last, vi_comb_data, VOWEL_NUM); in _icv_iconv()
125 st->last = 0; in _icv_iconv()
128 if (st->last < 0x80) { in _icv_iconv()
129 *(*outbuf)++ = (char)st->last; in _icv_iconv()
131 } else if (st->last >= 0x0080 && st->last <= 0x07ff) { in _icv_iconv()
136 *(*outbuf)++ = (char)((st->last >> 6) & 0x1f) | 0xc0; in _icv_iconv()
137 *(*outbuf)++ = (char)(st->last & 0x3f) | 0x80; in _icv_iconv()
139 } else if (st->last >= 0x0800) { in _icv_iconv()
[all …]
H A Dtcvn%viscii.c40 unsigned short last; member
60 st->last = 0; in _icv_open()
108 if (st->last != 0) { in _icv_iconv()
113 idx = binsearch(st->last, tcvn_comb_data, VOWEL_NUM); in _icv_iconv()
120 st->last = 0; in _icv_iconv()
122 tcvn_2_viscii(st->last, &chout); in _icv_iconv()
123 if (st->last != 0x0 && chout == 0x0) { in _icv_iconv()
132 st->last = 0; in _icv_iconv()
141 st->last = ch; in _icv_iconv()
164 st->last = 0; in _icv_iconv()
[all …]
H A Dtcvn%UCS-2.c38 unsigned long last; member
65 st->last = 0; in _icv_open()
112 if (st->last != 0) { in _icv_iconv()
127 unidx = binsearch(st->last, vi_comb_data, VOWEL_NUM); in _icv_iconv()
134 st->last = 0; in _icv_iconv()
137 SET_UCS(st->last); in _icv_iconv()
140 st->last = 0; in _icv_iconv()
148 st->last = uni; in _icv_iconv()
163 st->last = 0; in _icv_iconv()
166 if (st->last!=0 ) { in _icv_iconv()
[all …]
/titanic_50/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_50/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_50/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_50/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_50/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_50/usr/src/cmd/mandoc/
H A Dman_macro.c103 n = man->last; in man_unscope()
122 man->last = n; in man_unscope()
124 man_node_delete(man, man->last); in man_unscope()
141 man->last = n; in man_unscope()
153 man->next = (man->last == to) ? in man_unscope()
251 for (n = man->last; n; n = n->parent) { in rew_scope()
290 for (nn = man->last->parent; nn; nn = nn->parent) in blk_close()
314 for (nn = man->last->parent; nn; nn = nn->parent) in blk_close()
323 line = man->last->line; in blk_close()
324 ppos = man->last->pos; in blk_close()
[all …]
H A Dmdoc_validate.c326 n = mdoc->last; in mdoc_valid_post()
351 if (n->last != NULL) in mdoc_valid_post()
352 n->last->flags &= ~MDOC_DELIMO; in mdoc_valid_post()
406 for (node = mdoc->last->parent; node; node = node->parent) in pre_display()
779 np = mdoc->last; in post_bf()
837 n = mdoc->last->child; in post_lb()
855 n = mdoc->last; in post_eoln()
870 n = mdoc->last->child; in post_fname()
891 n = mdoc->last; in post_fo()
901 if (n->child != n->last) { in post_fo()
[all …]
H A Dman.c124 if (man->last->type != MAN_EQN || ln > man->last->line) in man_parseln()
151 man->last = mandoc_calloc(1, sizeof(struct man_node)); in man_alloc1()
152 man->first = man->last; in man_alloc1()
153 man->last->type = MAN_ROOT; in man_alloc1()
154 man->last->tok = MAN_MAX; in man_alloc1()
163 assert(man->last); in man_node_append()
169 man->last->next = p; in man_node_append()
170 p->prev = man->last; in man_node_append()
171 p->parent = man->last->parent; in man_node_append()
174 man->last->child = p; in man_node_append()
[all …]
/titanic_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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()

12345678910>>...32