/ast/src/lib/libast/path/ |
H A D | pathtemp.c | 56 * / as first pfx char provides tmp file generation control 60 * automatic (default) cycled with each tmp file 81 #define TMP1 "/tmp" 82 #define TMP2 "/usr/tmp" 99 } tmp = { S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH }; variable in typeref:struct:__anon300 125 tmp.manual = 1; 126 if (tmp.dir && !*tmp.dir++) 127 tmp.dir = tmp [all...] |
H A D | pathgetlink.c | 61 char tmp[PATH_MAX]; local 64 t = tmp; 75 n = t - tmp; 76 strcpy(buf, tmp); 80 if (t >= &tmp[sizeof(tmp)]) break; 82 if (!match && t < &tmp[sizeof(tmp) - univ_size + 1]) for (n = 0; n < UNIV_MAX; n++)
|
H A D | pathfind.c | 89 char tmp[PATH_MAX]; local 138 sfsprintf(tmp, sizeof(tmp), "%s/%s", dp->dir, name); 139 if (pathpath(tmp, "", PATH_REGULAR, buf, size)) 143 sfsprintf(tmp, sizeof(tmp), "%s/%s.%s", dp->dir, name, type); 144 if (pathpath(tmp, "", PATH_REGULAR, buf, size)) 157 sfsprintf(tmp, sizeof(tmp), "lib/%s/%s", lib, name); 158 if (pathpath(tmp, "", PATH_REGULA [all...] |
/ast/src/cmd/pax/ |
H A D | delta2patch.sh | 57 tmp=/tmp/d2p-$$ 58 trap "rm -rf $tmp" 0 59 mkdir $tmp $tmp/old $tmp/new || exit 60 pax --nosummary -rf $base -s ",.*,$tmp/old/&," $changes 61 pax --nosummary -rf $delta -z $base -s ",.*,$tmp/new/&," $changes 62 diff -r -N -u $tmp/old $tmp/ne [all...] |
/ast/src/lib/libcoshell/ |
H A D | procrun.c | 37 register Sfio_t* tmp; local 42 if (!(tmp = sfstropen())) 44 sfputr(tmp, path ? path : "sh", -1); 47 sfputr(tmp, " '", -1); 48 coquote(tmp, s, 0); 49 sfputc(tmp, '\''); 51 if (!(s = costash(tmp))) 54 sfstrclose(tmp);
|
H A D | cosync.c | 45 char tmp[PATH_MAX]; local 60 b = t = tmp; 61 while (t < &tmp[sizeof(tmp) - 1]) 68 while (t < &tmp[sizeof(tmp) - 1] && (*t++ = *s++)); 70 if ((td = open(tmp, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, 0)) >= 0) 72 unlink(tmp); 119 strcpy(tmp, file); 120 fd = strlen(tmp) [all...] |
/ast/src/cmd/INIT/ |
H A D | filter.sh | 24 tmp=/tmp/$command$$ 40 not modified; \acommand\a is run on copies in \b/tmp\b.] 80 trap 'rm -f $tmp$suf' 0 1 2 3 15 82 0) cat > $tmp 83 $cmd $tmp 91 cp $file $tmp$suf || exit 1 92 chmod u+rwx $tmp$suf || exit 1 93 $cmd $tmp$suf || exit 1 94 cat $tmp [all...] |
/ast/src/lib/libast/features/ |
H A D | sig.sh | 30 int xxx;" > $tmp.c 31 $cc -c $tmp.c >/dev/null 2>$tmp.e 64 }" > $tmp.c 65 if $cc -c $tmp.c >/dev/null 67 else e=`wc -l $tmp.e` 71 do $cc -c -DTYPE=$i -DARG=$j $tmp.c >/dev/null 2>$tmp.e || continue 72 case `wc -l $tmp.e` in
|
H A D | param.sh | 42 F_stat_F() { V_stat_V.st_mode = 0; }" > $tmp.c 43 if $cc -c $tmp.c >/dev/null
|
/ast/src/cmd/ksh93/tests/ |
H A D | namespace.sh | 31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; } 32 trap "cd /; rm -rf $tmp" EXIT 46 mkdir -p $tmp/global/bin $tmp/local/bin 47 cat > $tmp/global/xfun <<- \EOF 53 cat > $tmp/local/xfun <<- \EOF 59 chmod +x "$tmp/global/xfun" "$tmp/local/xfun" 60 print 'print local prog $1' > $tmp/local/bin/run 61 print 'print global prog $1' > $tmp/globa [all...] |
H A D | io.sh | 31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; } 32 trap "cd /; rm -rf $tmp" EXIT 43 print 'read -r a; print -r -u$1 -- "$a"' > $tmp/mycat 44 chmod 755 $tmp/mycat 47 eval "a=\$(print foo | $tmp/mycat" $i $i'>&1 > /dev/null |cat)' 2> /dev/null 53 cd $tmp || { err_exit "cd $tmp failed"; exit ; } 176 cat > $tmp/1 <<- ++EOF++ 177 script=$tmp/2 192 chmod +x $tmp/ [all...] |
H A D | select.sh | 31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; } 32 trap "cd /; rm -rf $tmp" EXIT 36 cat > $tmp/1 <<\! 63 done 3>&2 2> $tmp/2 <<!
|
H A D | basic.sh | 31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; } 32 trap "cd /; rm -rf $tmp" EXIT 62 cd $tmp || { err_exit "cd $tmp failed"; exit 1; } 118 cat > $tmp/script <<- ! 122 chmod 755 $tmp/script 123 if [[ $($tmp/script) != "$tmp/script" ]] 136 cd /tmp 137 cd ../../tmp || err_exi [all...] |
H A D | exit.sh | 31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; } 32 trap "cd /; rm -rf $tmp" EXIT 45 cd $tmp || { err_exit "cd $tmp failed"; exit 1; }
|
H A D | functions.sh | 36 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; } 37 trap "cd /; rm -rf $tmp" EXIT 93 > $tmp/test1 96 if [ -r $tmp/test1 ] 97 then rm -r $tmp/test1 123 cd $tmp 142 cat > $tmp/script <<-\! 145 chmod +x $tmp/script 148 $tmp/script "$@" 153 cat > $tmp/scrip [all...] |
H A D | alias.sh | 31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; } 32 trap "cd /; rm -rf $tmp" EXIT 88 then PATH=$tmp:/bin:/usr/bin 90 do print ':' > $tmp/$i 91 chmod +x $tmp/$i 93 [[ $(hash) == $i=$tmp/$i ]] || err_exit "hash -r -- $i failed, expected $i=$tmp/$i, got $(hash)"
|
/ast/src/lib/libtk/generic/ |
H A D | tkCanvUtil.c | 77 double tmp; 79 tmp = x - canvasPtr->drawableXOrigin; 80 if (tmp > 0) { 81 tmp += 0.5; 83 tmp -= 0.5; 85 if (tmp > 32767) { 87 } else if (tmp < -32768) { 90 *drawableXPtr = tmp; 93 tmp = y - canvasPtr->drawableYOrigin; 94 if (tmp > 75 double tmp; local 135 double tmp; local [all...] |
/ast/src/lib/libcs/ |
H A D | csauth.c | 57 char tmp[PATH_MAX + 1]; local 100 s = tmp + sfsprintf(tmp, sizeof(tmp) - 1, "%lu %d", (unsigned long)st.st_mtime, m); 103 b = tmp + sizeof(tmp) - 1; 113 n = s - tmp; 114 if (cswrite(state, wfd, tmp, n) != n) 116 messagef((state->id, NiL, -1, "auth: `%-.*s': key write error", n - 1, tmp)); 127 if (state->addr == csaddr(state, NiL)) b = tmp [all...] |
/ast/src/cmd/3d/features/ |
H A D | syscall.sh | 47 tmpall="$tmp.[$tmpall]" 73 #include \"${tmp}s.h\" 81 main() { return(i==0); }" > $tmp.c 89 int x;" > ${tmp}s.c 90 if $cc -c ${tmp}s.c </dev/null >/dev/null 94 " >> $tmp.f 100 #endif" > ${tmp}s.c 101 if $cc -c ${tmp}s.c 103 echo "int ${l}() { return 0; }" > ${tmp}s.c 104 if $cc -c ${tmp} [all...] |
/ast/src/lib/libast/comp/ |
H A D | conf.sh | 82 tmp=conf.tmp 111 rm -f $tmp.* 113 '') trap "code=\$?; rm -f $tmp.*; exit \$code" 0 1 2 ;; 118 cat > $tmp.c <<! 130 if $cc -o $tmp.exe $tmp.c >/dev/null 2>&1 && ./$tmp.exe 137 cat > $tmp.c <<! 152 if $cc -o $tmp [all...] |
/ast/src/lib/libcodex/ |
H A D | codexmeth.c | 41 char tmp[CODEX_NAME]; local 64 sfsprintf(tmp, sizeof(tmp), "%-.*s", s - name, name); 65 if (dll = dllplug("codex", tmp, NiL, RTLD_LAZY, NiL, 0))
|
/ast/src/cmd/tests/cdt/ |
H A D | tstringset.c | 48 char *ks, tmp[16]; /* max 7-digit numbers */ local 77 { sprintf(tmp, Pat, ((unsigned int)rand())%(i+1)); 78 if(!(ks = (char*)dtsearch(dt,tmp)) ) 79 terror("Not finding '%s'", tmp); 96 { sprintf(tmp, Pat, ((unsigned int)rand())%N_obj); 97 if(!(ks = (char*)dtsearch(dt,tmp)) ) 99 if(strcmp(ks,tmp) == 0) 107 { sprintf(tmp, Pat, i); 108 if(!(ks = (char*)dtsearch(dt,tmp)) ) 109 terror("Not finding '%s'", tmp); [all...] |
/ast/src/lib/libast/string/ |
H A D | swapget.c | 43 unsigned char tmp[sizeof(intmax_t)]; local 47 if (op) swapmem(op, b, d = tmp, n);
|
H A D | swapop.c | 44 char tmp[sizeof(intmax_t)]; local 52 if (!memcmp(internal, swapmem(op, external, tmp, z), z))
|
/ast/src/cmd/nmake/ |
H A D | option.c | 338 sfputc(internal.tmp, c); 339 op = (Option_t*)hashget(opt.table, sfstruse(internal.tmp)); 357 sfputc(internal.tmp, c); 358 hashput(opt.table, strdup(sfstruse(internal.tmp)), (char*)op); 493 sfputc(internal.tmp, OPT(op->flags)); 494 sfputc(internal.tmp, OPT_SEP); 495 declarestr(internal.tmp, op->name); 497 sfputc(internal.tmp, 'a'); 499 sfputc(internal.tmp, 'b'); 501 sfputc(internal.tmp, ' 573 static char* tmp; local 956 Sfio_t* tmp; local [all...] |