/ast/src/lib/libtk/library/demos/ |
H A D | puzzle.tcl | 13 proc puzzleSwitch {w num} { 15 if {(($ypos($num) >= ($ypos(space) - .01)) 16 && ($ypos($num) <= ($ypos(space) + .01)) 17 && ($xpos($num) >= ($xpos(space) - .26)) 18 && ($xpos($num) <= ($xpos(space) + .26))) 19 || (($xpos($num) >= ($xpos(space) - .01)) 20 && ($xpos($num) <= ($xpos(space) + .01)) 21 && ($ypos($num) >= ($ypos(space) - .26)) 22 && ($ypos($num) <= ($ypos(space) + .26)))} { 24 set xpos(space) $xpos($num) [all...] |
/ast/src/cmd/pax/ |
H A D | pax-gzip.c | 32 unsigned char num[4]; local 36 if ((pos = lseek(ap->io->fd, (off_t)0, SEEK_CUR)) < 0 || lseek(ap->io->fd, (off_t)-4, SEEK_END) <= 0 || read(ap->io->fd, num, sizeof(num)) != sizeof(num)) 39 ap->uncompressed = (num[0]) | 40 (num[1] << 8) | 41 (num[2] << 16) | 42 (num[3] << 24);
|
H A D | pax-rpm.c | 84 long num; local 129 num = 0; 132 num = 256; 133 if (paxread(pax, ap, NiL, (off_t)num, (off_t)num, 0) <= 0) 135 error(2, "%s: %s format header %ld byte data block expected", ap->name, fp->name, num); 152 num = (ap->io->count - 2) & 7; 153 message((-2, "%s: align pad=%ld", ap->name, num ? (8 - num) : num)); [all...] |
/ast/src/lib/libast/port/ |
H A D | mc.c | 275 mc->num = sfgetu(ip); 286 if (!(mc->set = vmnewof(vm, 0, Mcset_t, mc->num + 1, 0))) 290 if (!(mp = vmnewof(vm, 0, char*, mc->nmsgs + mc->num + 1, 0))) 301 if (i > mc->num) 304 mc->set[i].num = n; 313 for (i = 1; i <= mc->num; i++) 314 for (j = 1; j <= mc->set[i].num; j++) 339 * return the <set,num> message in mc 345 mcget(register Mc_t* mc, int set, int num, const char* msg) argument 351 if (!mc || set < 0 || set > mc->num || nu 373 mcput(register Mc_t* mc, int set, int num, const char* msg) argument [all...] |
/ast/src/lib/libcmd/ |
H A D | expr.c | 172 long num; member in struct:Node_s 207 np->num = (ep = strpbrk(cp, ep)) ? (ep - cp + 1) : 0; 217 np->num = strlen(cp); 278 np->num = strtol(np->str,&ep,10); 309 sfsprintf(cp=state->buf,sizeof(state->buf),"%d",np->num); 310 np->num = 0; 323 np->num = strtol(np->str,&cp,10); 331 np->num = match[0].rm_eo - match[0].rm_so; 356 if (op && rp.num==0) 361 np->num * [all...] |
/ast/src/lib/libast/vec/ |
H A D | vecargs.c | 51 int num; local 54 if ((num = (char**)(*(vec - 1)) - vec) > 0) 56 if (!(argv = newof(0, char*, num + *argcp + 1, 0)))
|
/ast/src/cmd/msgcc/ |
H A D | msggen.c | 216 int num; local 278 for (set = 1; set <= mc->num; set++) 279 if (mc->set[set].num) 282 for (num = 1; num <= mc->set[set].num; num++) 283 if (s = mc->set[set].msg[num]) 284 sfprintf(sfstdout, "%d \"%s\"\n", num, fmtfmt(s)); 296 for (set = 1; set <= mc->num; se [all...] |
H A D | msgget.c | 59 int num; local 82 set = num = 0; 84 mcindex(s, NiL, &set, &num); 104 s = mcget(mc, set, num, msg);
|
H A D | msgadmin.sh | 162 while read -r num txt 163 do if [[ $num == +([0-9]) ]] 165 if [[ $n != $num ]] 166 then if (( n == $num-1 )) 168 else print -u2 "$file: [$n-$(($num-1))] missing" 170 n=$num
|
/ast/src/lib/libcs/ |
H A D | cspoll.c | 44 cspoll(Cs_t* state, Cspoll_t* fds, int num, int ms) argument 74 for (mp = (pp = fds) + num; pp < mp; pp++) 104 messagef((state->id, NiL, -6, "poll: %s num=%d ms=%d sec=%d usec=%d", fmttime("%K", CSTIME()), num, ms, tp ? tp->tv_sec : 0, tp ? tp->tv_usec : 0)); 105 num = select(width + 1, rp, wp, ep, tp); 109 messagef((state->id, NiL, -6, "poll: %s num=%d ms=%d", fmttime("%K", CSTIME()), num, ms); 110 num = select(width + 1, rp, wp, ms); 112 messagef((state->id, NiL, -6, "poll: %s num=%d", fmttime("%K", CSTIME()), num)); [all...] |
/ast/src/lib/libast/include/ |
H A D | mc.h | 67 int num; member in struct:Mcset_s 74 int num; member in struct:Mc_s
|
/ast/src/lib/libast/string/ |
H A D | strsearch.c | 32 * name in the (*comparf*)() sorted tab of num elements of 40 strsearch(const void* tab, size_t num, size_t siz, Strcmp_f comparf, const char* name, void* context) argument 43 register char* hi = lo + (num - 1) * siz;
|
H A D | strperm.c | 49 int num; local 64 op = num = who = typ = 0; 250 num = (num << 3) | (c - '0'); 255 typ |= modei(num); 256 num = 0;
|
H A D | strpsearch.c | 40 * name in the CC_ASCII sorted tab of num elements of 53 strpsearch(const void* tab, size_t num, size_t siz, const char* name, char** next) argument 56 register char* hi = lo + (num - 1) * siz;
|
/ast/src/cmd/tests/vmalloc/ |
H A D | tsharemem.c | 47 static int working(char* store, char* type, char* num, ssize_t size) argument 54 tinfo("Process %s[pid=%d]: about to open region for %s", num, pid, store); 56 terror("Process %s[pid=%d]: can't open %s allocation region on %s", num, pid, type, store); 57 tinfo("Process %s[pid=%d]: %s region successfully opened for %s", num, pid, type, store); 61 terror("Process %s[pid=%d]: vmalloc failed", num, pid); 70 terror("Process %s[pid=%d]: vmfree failed", num, pid); 77 terror("Process %s[pid=%d]: vmstat failed", num, pid); 79 num, pid, vmst.extent, vmst.n_busy, vmst.s_busy, vmst.n_free, vmst.s_free); 89 char num[64], *argv[6]; local 91 sprintf(num, " [all...] |
/ast/src/cmd/tests/cdt/ |
H A D | tvsafehash.c | 114 static Dt_t* opendictionary(int num, pid_t pid, char* store) argument 125 terror("Process[num=%d,pid=%d]: Couldn't create vmalloc region", num, pid); 142 terror("Process[num=%d,pid=%d]: Can't open dictionary for %s", num, pid, store); 149 static pid_t makeprocess(char* proc, int num, char* aso) argument 157 terror("Process[num=%d]: Could not fork() a subprocess", num); 161 { sprintf(text, "%d", num); 172 terror("Process[num 180 int k, p, num, dir, n_move; local [all...] |
H A D | tvsaferehash.c | 112 static Dt_t* opendictionary(int num, pid_t pid, char* store) argument 123 terror("Process[num=%d,pid=%d]: Couldn't create vmalloc region", num, pid); 144 terror("Process[num=%d,pid=%d]: Can't open dictionary for %s", num, pid, store); 151 static pid_t makeprocess(char* proc, int num, char* aso) argument 159 terror("Process[num=%d]: Could not fork() a subprocess", num); 163 { sprintf(text, "%d", num); 174 terror("Process[num 182 int k, p, num, dir, n_move; local [all...] |
H A D | tvsafetree.c | 113 static Dt_t* opendictionary(int num, pid_t pid, char* store) argument 124 terror("Process[num=%d,pid=%d]: Couldn't create vmalloc region", num, pid); 141 terror("Process[num=%d,pid=%d]: Can't open dictionary for %s", num, pid, store); 148 static pid_t makeprocess(char* proc, int num, char* aso) argument 156 terror("Process[num=%d]: Could not fork() a subprocess", num); 160 { sprintf(text, "%d", num); 171 terror("Process[num 179 int k, p, num, dir, n_move; local [all...] |
H A D | tvsharemem.c | 203 static Dt_t* opendictionary(char* actor, char* type, int num, pid_t pid, char* store) argument 212 terror("%s %s [num=%d,pid=%d]: Couldn't create vmalloc region", actor, type, num, pid); 230 terror("%s %s [num=%d,pid=%d]: Can't open dictionary", actor, type, num, pid); 232 terror("%s %s [num=%d,pid=%d]: Can't customize dictionary", actor, type, num, pid); 238 static pid_t makeprocess(char* proc, char* type, char* actor, int num, char* aso) argument 246 terror("%s %s [num=%d]: Could not fork() a subprocess", actor, type, num); 271 int i, k, p, num, base, insert, delete, search, unsrch, undel, unins, walk, first, size; local [all...] |
/ast/src/cmd/tw/ |
H A D | xargs.c | 179 argmax = opt_info.num ? opt_info.num : 1; 183 argmax = opt_info.num; 189 size = opt_info.num; 201 error_info.trace = -opt_info.num;
|
/ast/src/cmd/kshlib/cmdtst/ |
H A D | xargs.c | 190 argmax = opt_info.num ? opt_info.num : 1; 194 argmax = opt_info.num; 200 size = opt_info.num; 212 error_info.trace = -opt_info.num;
|
/ast/src/lib/libast/misc/ |
H A D | magic.c | 82 unsigned long num; member in union:Entry::__anon285 490 unsigned long num; local 564 num = 0; 566 num = ep->offset + off; 571 num = strexpr(ep->expr, NiL, indirect, mp) + off; 574 num = st->st_atime; 578 num = iblocks(st); 582 num = st->st_ctime; 597 num = st->st_gid; 609 num [all...] |
/ast/src/lib/libdss/ |
H A D | cxmap.c | 167 num2str(Cx_t* cx, Cxmap_t* map, Sfio_t* sp, Cxunsigned_t num, int del) argument 182 num >>= map->shift; 183 num &= map->mask; 188 if (map->num2str && (item = (Cxitem_t*)dtmatch(map->num2str, &num))) 196 n = num; 245 cxnum2str(Cx_t* cx, Cxformat_t* format, Cxunsigned_t num, char** p) argument 254 if (!num2str(cx, format->map, cx->tp, num, del)) 258 sfprintf(cx->tp, "|%I*u", sizeof(num), num); 271 str2num(Cx_t* cx, Cxmap_t* map, const char* str, Cxunsigned_t* num) argument [all...] |
/ast/src/lib/libsum/ |
H A D | sum.h | 44 uint32_t num; member in struct:Sumdata_s
|
/ast/src/lib/libtksh/src/ |
H A D | debug.c | 43 void __dprintfNum(char *before, int num, char *after) argument 45 sfprintf(outFile, "%s%d%s", before,num,after);
|