Searched defs:last (Results 1 - 25 of 125) sorted by relevance

12345

/ast/src/lib/libast/comp/
H A Ddirname.c35 register char *last; local
37 for(last=pathname; *last; last++);
39 while(last>pathname && *--last=='/');
41 for(;last>pathname && *last!='/';last--);
42 if(last
[all...]
H A Dbasename.c35 register char *first, *last; local
36 for(first=last=pathname; *last; last++);
38 if(last>first)
39 while(*--last=='/' && last > first);
40 if(last==first && *last=='/')
44 if(*++last
[all...]
/ast/src/cmd/mailx/port/
H A Ddtextract.c82 reg Dtlink_t *t, *last, *list, **slot, **eslot; local
89 { list = last = NIL(Dtlink_t*);
95 if(last)
96 last->right = t;
97 else list = last = t;
98 while((t = last->right) )
99 last = t;
H A Ddtflatten.c83 reg Dtlink_t *r, *t, *list, *last, **slot, **eslot; local
89 list = last = NIL(Dtlink_t*);
95 if(last)
96 last->right = t;
97 else list = last = t;
98 while((t = last->right) )
99 last = t;
100 *slot = last;
107 last = last
[all...]
/ast/src/lib/libcodex/
H A Dcodexmeth.c37 Codexmeth_t* last; local
51 last = meth;
68 last->next = meth;
/ast/src/lib/libast/misc/
H A Dsetenviron.c48 static char** last; /* last free slot (0) */ local
76 if (!p || (last - p + 1) < n)
89 last = p + n - 1;
107 else if (next == last)
109 n = last - v + INCREMENT + 1;
112 last = p + n - 1;
113 next = last - INCREMENT;
/ast/src/lib/libast/string/
H A Dstrelapsed.c47 const char* last; local
53 if (!*(last = s))
60 last = s + 1;
74 last = s;
77 if (s == last + 1)
141 last = s - 1;
152 *e = (char*)last;
/ast/src/lib/libast/tm/
H A Dtmxduration.c39 char* last; local
49 ns = tmxdate(s, &last, now) - now;
52 ns = strtod(s, &last) * TMX_RESOLUTION;
53 if (*last && (f = sfstropen()))
58 if ((i = x - t - 6) > (last - s))
60 last = (char*)s + i;
68 if ((i = x - t - 1) > (last - s))
70 last = (char*)s + i;
78 *e = last;
/ast/src/lib/libast/vmalloc/
H A Dvmclose.c42 Vmalloc_t *v, *last; local
61 for(last = Vmheap, v = last->next; v; last = v, v = v->next)
63 { last->next = v->next;
H A Dvmprivate.c196 reg Seg_t* last; local
232 last = NIL(Seg_t*);
235 { for(last = vd->seg; last->next != seg; last = last->next)
237 last->next = seg->next;
245 if(last)
246 { seg->next = last->next;
247 last
[all...]
H A Dvmlast.c30 /* Allocation with freeing and reallocing of last allocated block only.
45 Seg_t *seg, *last; local
53 for(last = NIL(Seg_t*), seg = vd->seg; seg; last = seg, seg = seg->next)
56 if(last)
57 { last->next = seg->next;
80 vd->free = seg->last = tp;
126 seg->last = NIL(Block_t*);
175 (seg->last && (Vmuchar_t*)data > (Vmuchar_t*)seg->last) )
[all...]
/ast/src/lib/libcmd/
H A Dbasename.c44 "characters in \astring\a, all characters up to and including the last "
71 register char *first, *last; local
73 for(first=last=pathname; *last; last++);
75 if(last>first)
76 while(*--last=='/' && last > first);
77 if(last==first && *last
[all...]
H A Ddirname.c37 "the last component from \astring\a.]"
45 "Otherwise, all characters following the last \b/\b are removed. "
68 register const char *last; local
70 for(last=pathname; *last; last++);
72 while(last>pathname && *--last=='/');
74 for(;last>pathname && *last!
[all...]
H A Dchmod.c168 char* last; local
254 mode = strperm(amode, &last, 0);
255 if (*last)
295 mode = strperm(amode, &last, ent->fts_statp->st_mode);
/ast/src/lib/libcs/
H A Dcsbind.c215 static unsigned int last = IPPORT_RESERVED; local
223 port = last;
226 if (--last <= IPPORT_RESERVED / 2)
228 if (last == port)
234 if ((fd = portbind(state, type, 0L, last)) >= 0)
/ast/src/lib/libpp/
H A Dppargs.c181 * if last!=0 then argv[opt_info.index]==0 with return(0)
186 * use last=0 if the preprocessor is combined with other passes
191 ppargs(char** argv, int last) argument
206 for (; c = optget(argv, usage); last = 0) switch (c)
462 if (!last)
578 * and this is the last option
600 if (!last) return(1);
/ast/src/cmd/msgcc/
H A Dmsgcpp.c109 msgppargs(char** argv, int last) argument
118 if (!last)
126 if (!last)
134 if (!last)
/ast/src/lib/libast/astsa/
H A Dvmalloc.h52 long last; member in struct:Vmalloc_s
/ast/src/lib/libast/hash/
H A Dhashlook.c41 register Hash_last_t* last; local
77 last = &tab->root->last;
80 last->table = tab;
83 last->bucket = (Hash_bucket_t*)name;
84 name = hashname(last->bucket);
86 else last->bucket = 0;
87 last->name = name;
88 if (flags & HASH_BUCKET) n = last->bucket->hash;
96 last
[all...]
/ast/src/lib/libast/sfio/
H A Dsfpool.c60 reg Sfpool_t *p, *last = &_Sfpool; local
63 for(last = &_Sfpool, p = last->next; p; last = p, p = p->next)
71 { POOLMTXLOCK(last);
74 { POOLMTXUNLOCK(last);
83 last->next = p;
85 POOLMTXUNLOCK(last);
H A Dsftmp.c43 ** that temp files will be removed after the last handle is closed.
65 reg File_t *ff, *last; local
75 for(last = NIL(File_t*), ff = File; ff; last = ff, ff = ff->next)
79 { if(!last)
81 else last->next = ff->next;
/ast/src/cmd/ksh93/bltins/
H A Dcd_pwd.c157 char *last=(char*)stakfreeze(1); local
163 stakputs(last+PATH_OFFSET);
H A Dulimit.c141 char *last; local
143 if((i=strtol(limit,&last,0))!=INFINITY && !*last)
145 else if((i=strton(limit,&last,NiL,0))==INFINITY || *last)
147 if((i=sh_strnum(limit,&last,2))==INFINITY || *last)
/ast/src/cmd/ksh93/sh/
H A Dfcin.c73 * If last is non-zero, and the stream is a file, 0 is returned when
80 register unsigned char *last=_Fcin.fclast, *ptr=_Fcin.fcptr; local
90 if(last)
92 if( ptr<last && ptr>_Fcin.fcbuff && *(ptr-1)==0)
95 *last = _Fcin.fcchar;
96 if(ptr > last)
97 _Fcin.fcptr = ptr = last;
104 if(!last)
/ast/src/lib/libz/
H A Dinffast.c74 unsigned char FAR *last; /* while in < last, enough input available */ local
101 last = in + (strm->avail_in - 5);
286 } while (in < last && out < end);
297 strm->avail_in = (unsigned)(in < last ? 5 + (last - in) : 5 - (in - last));

Completed in 76 milliseconds

12345