| /plan9/sys/src/cmd/gs/src/ |
| H A D | gxblend.c | 355 art_s32 tmp; in art_blend_pixel_8() local 357 tmp = ((art_s32) backdrop[i]) - ((art_s32) src[i]); in art_blend_pixel_8() 358 dst[i] = tmp < 0 ? -tmp : tmp; in art_blend_pixel_8() 422 byte tmp[4]; in art_blend_pixel_8() local 430 art_blend_luminosity_rgb_8(tmp, src, backdrop); in art_blend_pixel_8() 431 art_blend_saturation_rgb_8(dst, tmp, backdrop); in art_blend_pixel_8() 434 art_blend_luminosity_cmyk_8(tmp, src, backdrop); in art_blend_pixel_8() 435 art_blend_saturation_cmyk_8(dst, tmp, backdrop); in art_blend_pixel_8() 549 art_s32 tmp; in art_blend_pixel() local 551 tmp = ((art_s32) backdrop[i]) - ((art_s32) src[i]); in art_blend_pixel() [all …]
|
| /plan9/sys/src/cmd/spin/ |
| H A D | pangen3.c | 71 { SRC *tmp; in putskip() local 73 for (tmp = skip; tmp; tmp = tmp->nxt) in putskip() 74 if (tmp->st == m) in putskip() 76 tmp = (SRC *) emalloc(sizeof(SRC)); in putskip() 77 tmp->st = m; in putskip() 78 tmp->nxt = skip; in putskip() 79 skip = tmp; in putskip() 84 { SRC *tmp, *lst=(SRC *)0; in unskip() local 86 for (tmp = skip; tmp; lst = tmp, tmp = tmp->nxt) in unskip() 87 if (tmp->st == m) in unskip() [all …]
|
| H A D | structs.c | 34 { UType *tmp; in setuname() local 39 for (tmp = Unames; tmp; tmp = tmp->nxt) in setuname() 40 if (!strcmp(owner->name, tmp->nm->name)) in setuname() 42 tmp->nm->name); in setuname() 46 tmp = (UType *) emalloc(sizeof(UType)); in setuname() 47 tmp->nm = owner; in setuname() 48 tmp->cn = n; in setuname() 49 tmp->nxt = Unames; in setuname() 50 Unames = tmp; in setuname() 54 putUname(FILE *fd, UType *tmp) in putUname() argument [all …]
|
| H A D | spinlex.c | 175 { IType *tmp; in def_inline() local 180 for (tmp = seqnames; tmp; cnt++, tmp = tmp->nxt) in def_inline() 181 if (!strcmp(s->name, tmp->nm->name)) in def_inline() 183 tmp->nm->name); in def_inline() 184 tmp->cn = (Lextok *) nw; in def_inline() 185 tmp->params = nms; in def_inline() 186 tmp->dln = ln; in def_inline() 187 tmp->dfn = Fname; in def_inline() 190 tmp = (IType *) emalloc(sizeof(IType)); in def_inline() 191 tmp->nm = s; in def_inline() [all …]
|
| /plan9/sys/src/libdraw/ |
| H A D | egetrect.c | 9 static Image *tmp[4]; variable 77 freeimage(tmp[0]); in freetmp() 78 freeimage(tmp[1]); in freetmp() 79 freeimage(tmp[2]); in freetmp() 80 freeimage(tmp[3]); in freetmp() 82 tmp[0] = tmp[1] = tmp[2] = tmp[3] = red = nil; in freetmp() 91 if(up && tmp[0]!=nil) in edrawgetrect() 92 if(Dx(tmp[0]->r)<Dx(rc) || Dy(tmp[2]->r)<Dy(rc)) in edrawgetrect() 95 if(tmp[0] == 0){ in edrawgetrect() 97 tmp[0] = allocimage(display, r, screen->chan, 0, -1); in edrawgetrect() [all …]
|
| H A D | getrect.c | 10 static Image *tmp[4]; variable 78 freeimage(tmp[0]); in freetmp() 79 freeimage(tmp[1]); in freetmp() 80 freeimage(tmp[2]); in freetmp() 81 freeimage(tmp[3]); in freetmp() 83 tmp[0] = tmp[1] = tmp[2] = tmp[3] = red = nil; in freetmp() 107 if(up && tmp[0]!=nil) in drawgetrect() 108 if(Dx(tmp[0]->r)<Dx(rc) || Dy(tmp[2]->r)<Dy(rc)) in drawgetrect() 110 if(tmp[0] == 0){ in drawgetrect() 112 tmp[0] = allocimage(display, r, screen->chan, 0, -1); in drawgetrect() [all …]
|
| /plan9/sys/src/cmd/cifs/ |
| H A D | trans.c | 117 char tmp[1024]; in RAPshareenum() local 156 gmem(p, tmp, 13); /* name */ in RAPshareenum() 157 tmp[13] = 0; in RAPshareenum() 158 q->name = estrdup9p(tmp); in RAPshareenum() 174 char tmp[1024]; in RAPshareinfo() local 209 gmem(p, tmp, 13); in RAPshareinfo() 210 tmp[13] = 0; in RAPshareinfo() 212 si2p->name = estrdup9p(tmp); in RAPshareinfo() 214 gconv(p, conv, tmp, sizeof tmp); in RAPshareinfo() 215 si2p->comment = estrdup9p(tmp); in RAPshareinfo() [all …]
|
| /plan9/sys/src/cmd/page/ |
| H A D | nrotate.c | 41 Image *tmp; in rot180() local 43 tmp = xallocimage(display, img->r, img->chan, 0, DNofill); in rot180() 44 if(tmp == nil) in rot180() 47 reverse(img, tmp, Xaxis); in rot180() 48 reverse(img, tmp, Yaxis); in rot180() 50 freeimage(tmp); in rot180() 56 reverse(Image *img, Image *tmp, int axis) in reverse() argument 90 shuffle(img, tmp, axis, d, mask, i, 0); in reverse() 99 shuffle(Image *img, Image *tmp, int axis, int imgdim, Image *mask, int maskdim) in shuffle() argument 115 swapadjacent(img, tmp, axis, imgdim - slop, mask, maskdim); in shuffle() [all …]
|
| /plan9/sys/src/cmd/fossil/ |
| H A D | conf.rc | 37 rm -f /tmp/fossilconf.$pid 41 {echo fossil config; cat $2} >/tmp/fossilconf.$pid || exit oops 42 if(! test -s /tmp/fossilconf.$pid){ 46 if(test `{ls -l /tmp/fossilconf.$pid | awk '{print $6}'} -gt 1024){ 51 >/tmp/_fossilconf.old || exit backup 52 dd -quiet 1 -count 2 </dev/zero >>/tmp/fossilconf.$pid || exit dd 53 dd -quiet 1 -bs 1024 -count 1 -if /tmp/fossilconf.$pid \ 59 aux/zerotrunc >/tmp/fossilconf.$pid 61 if(! cmp -s <{sed 1q /tmp/fossilconf.$pid} <{echo fossil config}){ 66 sed 1d /tmp/fossilconf.$pid
|
| /plan9/386/bin/fossil/ |
| H A D | conf | 40 rm -f /tmp/fossilconf.$pid 44 {echo fossil config; cat $2} >/tmp/fossilconf.$pid || exit oops 45 if(! test -s /tmp/fossilconf.$pid){ 49 if(test `{ls -l /tmp/fossilconf.$pid | awk '{print $6}'} -gt 1024){ 54 >/tmp/_fossilconf.old || exit backup 55 dd -quiet 1 -count 2 </dev/zero >>/tmp/fossilconf.$pid || exit dd 56 dd -quiet 1 -bs 1024 -count 1 -if /tmp/fossilconf.$pid \ 62 aux/zerotrunc >/tmp/fossilconf.$pid 64 if(! cmp -s <{sed 1q /tmp/fossilconf.$pid} <{echo fossil config}){ 69 sed 1d /tmp/fossilconf.$pid
|
| /plan9/sys/src/libc/9sys/ |
| H A D | rerrstr.c | 7 char tmp[ERRMAX]; in rerrstr() local 9 tmp[0] = 0; in rerrstr() 10 errstr(tmp, sizeof tmp); in rerrstr() 11 utfecpy(buf, buf+nbuf, tmp); in rerrstr() 12 errstr(tmp, sizeof tmp); in rerrstr()
|
| /plan9/sys/src/cmd/unix/drawterm/libmp/ |
| H A D | mpeuclid.c | 14 mpint *tmp, *x0, *x1, *x2, *y0, *y1, *y2, *q, *r; in mpeuclid() local 17 tmp = a; in mpeuclid() 19 b = tmp; in mpeuclid() 20 tmp = x; in mpeuclid() 22 y = tmp; in mpeuclid() 54 tmp = a; in mpeuclid() 57 r = tmp; in mpeuclid() 58 tmp = x2; in mpeuclid() 61 x0 = tmp; in mpeuclid() 62 tmp = y2; in mpeuclid() [all …]
|
| /plan9/sys/src/libmp/port/ |
| H A D | mpeuclid.c | 14 mpint *tmp, *x0, *x1, *x2, *y0, *y1, *y2, *q, *r; in mpeuclid() local 20 tmp = a; in mpeuclid() 22 b = tmp; in mpeuclid() 23 tmp = x; in mpeuclid() 25 y = tmp; in mpeuclid() 57 tmp = a; in mpeuclid() 60 r = tmp; in mpeuclid() 61 tmp = x2; in mpeuclid() 64 x0 = tmp; in mpeuclid() 65 tmp = y2; in mpeuclid() [all …]
|
| /plan9/386/bin/venti/ |
| H A D | conf | 44 {echo venti config; cat $2} >/tmp/venticonf.$pid || exit oops 45 if(! test -s /tmp/venticonf.$pid){ 49 if(test `{ls -l /tmp/venticonf.$pid | awk '{print $6}'} -gt 8192){ 54 >/tmp/_venticonf.old || exit backup 55 dd -quiet 1 -count 2 </dev/zero >> /tmp/venticonf.$pid || exit dd 56 dd -quiet 1 -bs 1024 -count 8 -if /tmp/venticonf.$pid \ 62 aux/zerotrunc >/tmp/venticonf.$pid 64 if(! cmp <{sed 1q /tmp/venticonf.$pid} <{echo venti config}){ 69 sed 1d /tmp/venticonf.$pid
|
| /plan9/sys/src/cmd/venti/srv/ |
| H A D | conf.rc | 41 {echo venti config; cat $2} >/tmp/venticonf.$pid || exit oops 42 if(! test -s /tmp/venticonf.$pid){ 46 if(test `{ls -l /tmp/venticonf.$pid | awk '{print $6}'} -gt 8192){ 51 >/tmp/_venticonf.old || exit backup 52 dd -quiet 1 -count 2 </dev/zero >> /tmp/venticonf.$pid || exit dd 53 dd -quiet 1 -bs 1024 -count 8 -if /tmp/venticonf.$pid \ 59 aux/zerotrunc >/tmp/venticonf.$pid 61 if(! cmp <{sed 1q /tmp/venticonf.$pid} <{echo venti config}){ 66 sed 1d /tmp/venticonf.$pid
|
| /plan9/sys/src/libsec/port/ |
| H A D | desECB.c | 14 uchar tmp[8]; in desECBencrypt() local 23 tmp[i] = i; in desECBencrypt() 24 block_cipher(s->expanded, tmp, 0); in desECBencrypt() 26 p[i] ^= tmp[i]; in desECBencrypt() 34 uchar tmp[8]; in desECBdecrypt() local 43 tmp[i] = i; in desECBdecrypt() 44 block_cipher(s->expanded, tmp, 0); in desECBdecrypt() 46 p[i] ^= tmp[i]; in desECBdecrypt()
|
| H A D | des3ECB.c | 14 uchar tmp[8]; in des3ECBencrypt() local 23 tmp[i] = i; in des3ECBencrypt() 24 triple_block_cipher(s->expanded, tmp, DES3EDE); in des3ECBencrypt() 26 p[i] ^= tmp[i]; in des3ECBencrypt() 34 uchar tmp[8]; in des3ECBdecrypt() local 43 tmp[i] = i; in des3ECBdecrypt() 44 triple_block_cipher(s->expanded, tmp, DES3EDE); in des3ECBdecrypt() 46 p[i] ^= tmp[i]; in des3ECBdecrypt()
|
| /plan9/sys/src/cmd/unix/drawterm/libsec/ |
| H A D | desECB.c | 14 uchar tmp[8]; in desECBencrypt() local 23 tmp[i] = i; in desECBencrypt() 24 block_cipher(s->expanded, tmp, 0); in desECBencrypt() 26 p[i] ^= tmp[i]; in desECBencrypt() 34 uchar tmp[8]; in desECBdecrypt() local 43 tmp[i] = i; in desECBdecrypt() 44 block_cipher(s->expanded, tmp, 0); in desECBdecrypt() 46 p[i] ^= tmp[i]; in desECBdecrypt()
|
| H A D | des3ECB.c | 14 uchar tmp[8]; in des3ECBencrypt() local 23 tmp[i] = i; in des3ECBencrypt() 24 triple_block_cipher(s->expanded, tmp, DES3EDE); in des3ECBencrypt() 26 p[i] ^= tmp[i]; in des3ECBencrypt() 34 uchar tmp[8]; in des3ECBdecrypt() local 43 tmp[i] = i; in des3ECBdecrypt() 44 triple_block_cipher(s->expanded, tmp, DES3EDE); in des3ECBdecrypt() 46 p[i] ^= tmp[i]; in des3ECBdecrypt()
|
| /plan9/sys/src/cmd/upas/fs/ |
| H A D | plan9.c | 62 char tmp[64]; in readmessage() local 73 if(fd2path(inb->fd, tmp, sizeof tmp) < 0) in readmessage() 74 strcpy(tmp, "unknown mailbox"); in readmessage() 75 fprint(2, "error reading '%s': %r\n", tmp); in readmessage() 168 String *tmp; in _readmbox() local 190 tmp = s_copy(mb->path); in _readmbox() 191 s_append(tmp, ".tmp"); in _readmbox() 192 if(sysrename(s_to_c(tmp), mb->path) == 0){ in _readmbox() 193 s_free(tmp); in _readmbox() 196 s_free(tmp); in _readmbox() [all …]
|
| /plan9/sys/src/cmd/aux/vga/ |
| H A D | vga.c | 187 ulong tmp; in init() local 247 tmp = mode->ehb>>3; in init() 248 vga->crt[0x03] = 0x80|(tmp & 0x1F); in init() 249 if(tmp & 0x20) in init() 280 tmp = vt-2; in init() 281 vga->crt[0x06] = tmp; in init() 282 if(tmp & 0x100) in init() 284 if(tmp & 0x200) in init() 287 tmp = vrs; in init() 288 vga->crt[0x10] = tmp; in init() [all …]
|
| /plan9/rc/bin/ |
| H A D | fax | 47 script=/tmp/fax.$pid 48 header=/tmp/faxh.$pid 50 tmp=/tmp/fax.g3.$pid 51 tmpin=/tmp/fax.in.$pid 52 tmpps=/tmp/fax.ps.$pid 60 rm -f $tmp.* $script $header $header.* $tmpin $tmpps 84 gs -dSAFER '-sDEVICE=dfaxlow' '-sOUTPUTFILE='$tmp'.'$#a'.%03d' \ 86 g3files=($g3files $tmp.$#a.*) 89 gs -dSAFER '-sDEVICE=dfaxlow' '-sOUTPUTFILE='$tmp'.'$#a'.%03d' \ 91 g3files=($g3files $tmp.$#a.*)
|
| H A D | psfax | 25 script=/tmp/fax.$pid 26 header=/tmp/faxh.$pid 28 tmp=/tmp/page.$pid 29 tmpin=/tmp/page.in.$pid 44 gs -dSAFER '-sDEVICE=dfaxlow' '-sOUTPUTFILE='$tmp'.%.3d' -dNOPAUSE -dQUIET $tmpin quit.ps 46 gs -dSAFER '-sDEVICE=dfaxlow' '-sOUTPUTFILE='$tmp'.%.3d' -dNOPAUSE -dQUIET $* quit.ps 49 pages=`{echo $tmp.*|wc -w} 78 for(i in $header.* $tmp.*){ 87 page $header.* $tmp.*
|
| /plan9/sys/src/9/pc/ |
| H A D | vganvidia.c | 103 int tmp; in nvidiaenable() local 127 tmp = *q; in nvidiaenable() 128 if (tmp & 0x0100) { in nvidiaenable() 129 scr->storage = ((tmp >> 12) & 0x0F) * 1024 + 1024 * 2; in nvidiaenable() 131 tmp &= 0x03; in nvidiaenable() 132 if (tmp) in nvidiaenable() 133 scr->storage = (1024*1024*2) << tmp; in nvidiaenable() 140 tmp = pcicfgr32(p, 0x7C); in nvidiaenable() 141 scr->storage = (((tmp >> 6) & 31) + 1) * 1024 * 1024; in nvidiaenable() 145 tmp = pcicfgr32(p, 0x84); in nvidiaenable() [all …]
|
| /plan9/sys/src/9/port/ |
| H A D | mkrootall | 10 tmp=mkroot.$pid.out 12 rm -f $tmp 24 cp $file $tmp 25 t=`{file $tmp} 28 strip $tmp 29 aux/data2s $cname < $tmp
|