Searched refs:prefix (Results 1 - 25 of 84) sorted by relevance

1234

/ast/src/cmd/dsslib/ip_t/
H A Dtestptv.c32 "[+NAME?testptv - ptv ipv6 longest prefix match test harness]"
34 "and then does a longest prefix match for each ipv6 address in each "
40 "prefix in the first space separated field. Each \aaddress-file\a must "
43 "[d:dump?Dump the prefix table before matching the addresses.]"
60 unsigned char prefix[IP6PREFIX]; local
89 error(ERROR_SYSTEM|3, "%s: cannot read prefix file", file);
93 if (strtoip6(s, 0, prefix, prefix + IP6BITS))
94 error(1, "%s: invalid prefix", s);
98 sfprintf(sfstderr, "insert %s %s\n", fmtip6(ptvmin(ptv->size, ptv->r[0], prefix, prefi
[all...]
H A Dtestiv.c32 "[+NAME?testiv - iv ipv6 longest prefix match test harness]"
34 "then does a longest prefix match for each ipv6 address in each "
37 "matching prefix and optional associated string one line per match. "
38 "\b-\b is listed instead of the prefix for unmatched addresses.]"
40 "separated fields, with the \bipv6\b prefix in the first field and an "
44 "[d:dump?Dump the prefix table before matching the addresses.]"
61 unsigned char prefix[IP6PREFIX]; member in struct:Hop_s
75 unsigned char prefix[IP6PREFIX]; local
128 error(ERROR_SYSTEM|3, "%s: cannot read prefix file", file);
132 if (ivstr(iv, s, &v, prefix, prefi
[all...]
/ast/src/lib/libast/disc/
H A Dsfdcprefix.c25 * a discipline that prepends a prefix string to each output line
36 size_t length; /* prefix length */
37 size_t empty; /* empty line prefix length */
39 char prefix[1]; /* prefix string */ member in struct:__anon258
43 * prefix write
80 sfwr(f, pfx->prefix, n > 1 ? pfx->length : pfx->empty, dp);
110 * push the prefix discipline on f
114 int sfdcprefix(Sfio_t* f, const char* prefix) argument
116 int sfdcprefix(f, prefix)
[all...]
/ast/src/cmd/ie/
H A Die.sh23 typeset env histfile show command opt prefix dll suffix ifs root path s
125 prefix=${dll%.@(dll|s[ol]*([0-9.]))}
126 suffix=${dll##$prefix}
127 prefix=${prefix#$root/}
131 env="HISTFILE='$histfile' LD_PRELOAD='$root/$prefix$suffix${LD_PRELOAD:+ $LD_PRELOAD}'"
133 *-n32) env="$env _RLDN32_LIST=$root/$prefix$suffix"
139 *) if test -f $root/$prefix-n32$suffix
145 env="$env _RLDN32_LIST=$root/$prefix-n32$suffix"
150 env="$env _RLD_LIST=$root/$prefix
[all...]
/ast/src/cmd/warp/
H A Dwarp.sh23 typeset env show command opt prefix dll suffix ifs root path s
158 prefix=${dll%.@(dll|dylib|s[ol]*([0-9.]))}
159 suffix=${dll##$prefix}
160 prefix=${prefix#$root/}
209 env="WARP='$opt$warp' LD_PRELOAD='$root/$prefix$suffix${LD_PRELOAD:+ $LD_PRELOAD}' DYLD_INSERT_LIBRARIES='$root/$prefix$suffix${DYLD_INSERT_LIBRARIES:+ $DYLD_INSERT_LIBRARIES}'"
211 *-n32) env="$env _RLDN32_LIST=$root/$prefix$suffix"
217 *) if test -f $root/$prefix-n32$suffix
223 env="$env _RLDN32_LIST=$root/$prefix
[all...]
/ast/src/cmd/INIT/
H A Drt.sh99 printf $'%s%5d %s' "$prefix" "$t" "$label"
100 prefix=
101 else prefix="$prefix..........."
116 printf $'%s%5d %s%s\n' "$prefix" "$e" "$label" "$note"
198 prefix=
233 prefix=
293 prefix=
327 prefix=
339 prefix
[all...]
/ast/src/cmd/at/
H A Dcrontab.sh25 prefix=${0##*/}
26 case $prefix in
27 *_*) prefix=${prefix%%_*}_ ;;
28 *) prefix= ;;
30 cron="${prefix}at -qc"
/ast/src/lib/libpz/
H A Dpzhead.c67 if (!(pz->flags & (PZ_READ|PZ_WRITE|PZ_STAT)) && (m = pz->prefix.count))
69 if (pz->prefix.terminator >= 0)
73 if (!sfgetr(pz->io, pz->prefix.terminator, 0))
76 (*pz->disc->errorf)(pz, pz->disc, 2, "%s: cannot read %I*u prefix record%s from data", pz->path, sizeof(pz->prefix.count), pz->prefix.count, pz->prefix.count == 1 ? "" : "s");
84 (*pz->disc->errorf)(pz, pz->disc, 2, "%s: cannot read %I*u prefix byte%s from data", pz->path, sizeof(pz->prefix.count), pz->prefix
[all...]
H A Dpzread.c110 if (pz->prefix.count)
112 if (pz->prefix.data)
114 if (z < (m = pz->prefix.count))
116 memcpy(buf, pz->prefix.data, m);
117 pz->prefix.count -= m;
118 pz->prefix.data += m;
121 pz->prefix.count = 0;
140 pz->prefix.count = m - r;
141 pz->prefix.data = (char*)x + r;
H A Dpzinflate.c131 * copy the prefix
134 if (pz->prefix.count)
136 if (!pz->prefix.skip && pz->prefix.data && sfwrite(op, pz->prefix.data, pz->prefix.count) != pz->prefix.count)
142 pz->prefix.count = 0;
/ast/src/lib/libpp/
H A Dgentab.sh28 # %flags [ prefix=<prefix> ] [ index=<index> ] [ init=<init> ]
30 # %keyword <name> [ prefix=<prefix> ] [ index=<index> ] [ init=<init> ] [ first=<id> ] [ last=<id> ]
32 # %sequence [ prefix=<prefix> ] [ index=<index> ] [ init=<init> ]
102 echo "#define $prefix$last $n"
127 prefix=""
169 1:?*) echo "#define $prefix$first $counter" ;;
190 echo "#define $prefix
[all...]
H A Dppsearch.c113 register char* prefix; local
124 prefix = 0;
125 else if ((prefix = strrchr(fp->name, '/')) && prefix > fp->name)
127 *prefix = 0;
129 *prefix = '/';
130 prefix = t;
132 message((-3, "search: %s %s%s%s%s%s%s type=%s prefix=%s flags=|%s%s%s%s%s%s start=%s=\"%s\" pre=%s lcl=%s vnd=%s std=%s cur=%s",
140 type == T_HEADER ? "<*>" : "\"*\"", prefix,
329 if (prefix
607 int prefix; local
[all...]
/ast/src/cmd/builtin/
H A Dlook.c23 * look for lines beginning with <prefix> in sorted a sorted file
35 "[+NAME?look - displays lines beginning with a given prefix]"
37 " that begin with the given prefix \aprefix\a onto the standard output."
39 " \amax-prefix\a is specified then then records matching prefixes"
40 " in the inclusive range \aprefix\a..\amax-prefix\a are displayed.]"
48 "\nprefix [- max-prefix] [file ...]\n"
95 look(Sfio_t* fp, char* prefix, char* maxprefix, int flags) argument
111 cp = dp = prefix;
116 len = strlen(prefix);
132 n = len = strlen(prefix);
[all...]
/ast/src/lib/libast/string/
H A Dwc2utf8.c38 unsigned short prefix; member in struct:Utf8_s
62 *s++ = ops[i].prefix | (w >> ops[i].shift);
/ast/src/lib/libcmd/
H A Dfmt.c65 int prefix; member in struct:Fmt_s
145 int prefix; local
148 prefix = ep - buf;
157 prefix = strlen(buf);
160 fp->outp = fp->outbuf+prefix;
164 if (fp->prefix < prefix && !isoption(fp, 'c'))
166 if (!fp->outp || prefix < fp->prefix)
167 fp->prefix
[all...]
/ast/src/cmd/ksh93/sh/
H A Dnvtree.c378 static void outtype(Namval_t *np, Namfun_t *fp, Sfio_t* out, const char *prefix) argument
388 outtype(np,fp,out,prefix);
392 if(prefix && *prefix=='t')
394 else if(!prefix)
410 void nv_attribute(register Namval_t *np,Sfio_t *out,char *prefix,int noname) argument
434 if(prefix && *prefix)
437 sfprintf(out,"%s -C ",prefix);
439 sfputr(out,prefix,' ');
814 genvalue(char **argv, const char *prefix, int n, struct Walk *wp) argument
[all...]
/ast/src/cmd/std/
H A Dsplit.c36 "[+?If \aprefix\a is specified it will be used as a prefix for each"
38 " is specified, the prefix \bx\b will be used.]"
108 "[+?The output file names consist of a prefix followed by a suffix. By"
114 " input file, in order. The default output file name prefix is \bxx\b.]"
120 "[f:prefix?Use \aprefix\a to generate the file name prefix.]:[prefix:=\bxx\b]"
225 * set up file name generator whose form is <prefix>... where ... is
232 setfname(const char* prefix, char* format, int suflen, int low, int high) argument
240 flen = strlen(prefix);
489 char* prefix; local
[all...]
H A Dshar.sh69 [o:output-prefix]:[prefix?Save the archive files \aprefix\a\b.01\b
115 usage='ab:[bits]cd:[delim]fg:[level]l#[size]n:[name]o:[prefix]pqs:[who]tzBDL#[size]MQSXTZ files ...'
123 flags= prefix= mode=M arg=
143 o) prefix=$OPTARG
440 if [[ $prefix ]]
442 then split -b $size -f "$prefix" /tmp/shar$$.1
444 then head -c $size /tmp/shar$$.1 > $prefix.01
445 else cp /tmp/shar$$.1 "$prefix.01"
/ast/src/cmd/mailx/
H A Dsend.c88 part(register struct parse* pp, FILE* op, struct part* ap, off_t size, char* prefix, int prefixlen, int emptylen, unsigned long flags) argument
125 if (prefix) {
150 if (fwrite(prefix, 1, i, op) != i || fwrite(pp->buf, 1, n, op) != n)
182 * prefix is a string to prepend to each output line.
185 copy(register struct msg* mp, FILE* op, Dt_t** ignore, char* prefix, unsigned long flags) argument
199 return imap_copy(mp, op, ignore, prefix, flags);
202 * Compute the prefix string, without trailing whitespace
205 if (prefix) {
206 prefixlen = strlen(prefix);
207 s = prefix
[all...]
/ast/src/lib/libast/misc/
H A Dglob.c293 register char* prefix; local
328 prefix = dirname = ap->gl_path + gp->gl_extra;
329 first = (rescan == prefix);
350 c = (*gp->gl_type)(gp, prefix, 0);
353 addmatch(gp, NiL, prefix, NiL, rescan - 1, anymeta);
355 else if ((anymeta || !(gp->gl_flags & GLOB_NOCHECK)) && (*gp->gl_type)(gp, prefix, 0))
356 addmatch(gp, NiL, prefix, NiL, NiL, anymeta);
402 if (pat == prefix)
404 prefix = 0;
415 if (pat == prefix
[all...]
/ast/src/lib/libtksh/tcl/
H A DtclLoad.c30 char *packageName; /* Name of package prefix for the package,
524 char *prefix;
531 prefix = "{";
534 Tcl_AppendResult(interp, prefix, (char *) NULL);
538 prefix = " {";
556 prefix = "{";
559 Tcl_AppendResult(interp, prefix, (char *) NULL);
563 prefix = " {";
521 char *prefix; local
/ast/src/lib/libjcl/
H A Dpath.c33 char* prefix; member in struct:Map_s
225 * longest matching prefix match function
243 map.prefix = buf;
259 for (j = i; name[j] == mp->prefix[j]; j++)
265 message((-9, "match[%d] %s %s %d", state.matched, name, mp->prefix, mp->length));
268 if (!mp->prefix[j] && (!mp->tail || tail(mp->tail, &name[j], 0)))
273 message((-9, "maybe[%d] %s %s %d", state.matched, name, mp->prefix, mp->length));
442 (*disc->errorf)(NiL, disc, 2, "%s: prefix map [suffix] expected", op);
492 state.mapdisc.key = offsetof(Map_t, prefix);
508 (*disc->errorf)(NiL, disc, 2, "%s: duplicate map prefix", ar
[all...]
/ast/src/lib/libast/cdt/
H A Dcdtlib.h73 char* prefix; /* name prefix */ member in struct:_dtlib_s
95 n = strlen(cdt_lib_##m.prefix); \
96 if (!strncmp(type, cdt_lib_##m.prefix, n)) \
112 n = strlen(cdt_lib_/**/m.prefix); \
113 if (!strncmp(type, cdt_lib_/**/m.prefix, n)) \
/ast/src/cmd/ksh93/bltins/
H A Dtypeset.c51 char *prefix; member in struct:tdata
99 tdata.prefix = command;
119 if(tdata.prefix)
120 sfputr(sfstdout,tdata.prefix,' ');
129 if(!tdata.sh->prefix)
130 tdata.sh->prefix = "";
158 tdata.prefix = argv[0];
285 tdata.prefix = opt_info.arg;
324 tdata.prefix = argv[0];
416 if(!tdata.prefix)
[all...]
/ast/src/cmd/ksh93/data/
H A Dbash_pre_rc.sh98 typeset prefix remaining=${.sh.value} var= n= k=
100 do prefix=${remaining%%'\'*}
101 remaining=${remaining#$prefix}
102 var+="$prefix"

Completed in 37 milliseconds

1234