| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/ |
| H A D | loopctl.t | 49 last TEST1; 54 last TEST1; 58 last TEST1; 74 last TEST2; 79 last TEST2; 100 last TEST3; 105 last TEST3; 123 last TEST4; 127 last; 128 last TEST4; [all …]
|
| H A D | index.t | 16 $last = substr($foo,rindex($foo,'the'),100); 17 is($last, "their country."); 19 $last = substr($foo,index($foo,'Now'),2); 20 is($last, "No"); 22 $last = substr($foo,rindex($foo,'Now'),2); 23 is($last, "No"); 25 $last = substr($foo,index($foo,'.'),100); 26 is($last, "."); 28 $last = substr($foo,rindex($foo,'.'),100); 29 is($last, ".");
|
| /onnv-gate/usr/src/lib/libast/common/comp/ |
| H A D | dirname.c | 35 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 D | basename.c | 35 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()
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Locale/Codes/t/ |
| H A D | all.t | 46 last; 52 last; 57 last; 72 last; 78 last; 83 last; 98 last; 104 last; 109 last; 124 last; [all …]
|
| /onnv-gate/usr/src/lib/libcmd/common/ |
| H A D | dirname.c | 68 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 D | basename.c | 64 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 …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/lib/warnings/ |
| H A D | pp_ctl | 15 s/ab/last/e ; 19 sub fred { last } 23 { eval "last" } 26 @a = (1,2) ; @b = sort { last } @a ; 30 last fred: 33 s/ab/last fred/e ; 38 sub fred { last joe } 42 fred: { eval "last fred" } 45 @a = (1,2) ; fred: @b = sort { last fred } @a ; 89 s/ab/last/e ; [all …]
|
| /onnv-gate/usr/src/lib/udapl/udapl_tavor/common/ |
| H A D | dapl_llist.c | 133 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 …]
|
| /onnv-gate/usr/src/lib/libast/common/cdt/ |
| H A D | dtflatten.c | 37 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;
|
| /onnv-gate/usr/src/lib/libtecla/common/ |
| H A D | ioutil.c | 108 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 …]
|
| /onnv-gate/usr/src/lib/libparted/common/libparted/fs/fat/ |
| H A D | clstdup.c | 130 get_first_underlay (const FatOpContext* ctx, int first, int last) in get_first_underlay() argument 135 PED_ASSERT (first <= last, return 0); in get_first_underlay() 138 for (old = first + 1; old <= last; old++) { in get_first_underlay() 151 get_last_underlay (const FatOpContext* ctx, int first, int last) in get_last_underlay() argument 156 PED_ASSERT (first <= last, return 0); in get_last_underlay() 158 new = ctx->buffer_map [last]; in get_last_underlay() 159 for (old = last - 1; old >= first; old--) { in get_last_underlay() 174 quick_group_write_read_underlay (FatOpContext* ctx, int first, int last) in quick_group_write_read_underlay() argument 181 PED_ASSERT (first <= last, return 0); in quick_group_write_read_underlay() 183 first_underlay = get_first_underlay (ctx, first, last); in quick_group_write_read_underlay() [all …]
|
| /onnv-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/ |
| H A D | picld_pluginutil.c | 217 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 …]
|
| /onnv-gate/usr/src/lib/libast/common/tm/ |
| H A D | tmxduration.c | 39 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()
|
| /onnv-gate/usr/src/cmd/adbgen/common/ |
| H A D | adbgen4.c | 52 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()
|
| /onnv-gate/usr/src/lib/libc/port/gen/ |
| H A D | nftw.c | 135 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 …]
|
| /onnv-gate/usr/src/cmd/dtrace/demo/sched/ |
| H A D | xwork.d | 27 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;
|
| /onnv-gate/usr/src/lib/libpkg/common/ |
| H A D | canonize.c | 40 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()
|
| /onnv-gate/usr/src/lib/libresolv2/common/isc/ |
| H A D | ev_waits.c | 63 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 …]
|
| /onnv-gate/usr/src/ucbcmd/tr/ |
| H A D | tr.c | 52 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()
|
| /onnv-gate/usr/src/cmd/svr4pkg/libinst/ |
| H A D | eptstat.c | 71 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()
|
| /onnv-gate/usr/src/lib/libinstzones/common/ |
| H A D | zones_paths.c | 95 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()
|
| /onnv-gate/usr/src/lib/libsip/common/ |
| H A D | sip_timeout.c | 97 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 …]
|
| /onnv-gate/usr/src/cmd/oamuser/group/ |
| H A D | gid.c | 59 gid_t last, next; in findnextgid() local 82 last = MAXUID; /* upper limit */ in findnextgid() 89 if (last != DEFRID + 1) in findnextgid() 94 if ((gid = next + 1) != last) { in findnextgid() 97 if (gid > 0 && gid < last) in findnextgid() 102 last = next; in findnextgid()
|
| /onnv-gate/usr/src/lib/libast/common/string/ |
| H A D | strelapsed.c | 47 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()
|