Searched refs:tmpf (Results 1 – 3 of 3) sorted by relevance
| /plan9/sys/src/cmd/ip/httpd/ |
| H A D | netlib_history.c | 67 char buf[500], pair[2][500], tmpf[2][30], *f; in netlibhistory() local 81 snprint(tmpf[i], sizeof(tmpf[0]), "/tmp/d%x", tmpcnt); in netlibhistory() 84 fd = create(tmpf[i], OWRITE, 0666); in netlibhistory() 110 gunzip(f, tmpf[toggle]); in netlibhistory() 111 strcpy(f, tmpf[toggle]); in netlibhistory() 145 remove(tmpf[0]); in netlibhistory() 146 remove(tmpf[1]); in netlibhistory()
|
| /plan9/sys/src/cmd/lp/ |
| H A D | lpsend.c | 183 char tmpf[20]; in tempfile() local 186 sprint(tmpf, "/tmp/lp%d.%d", getpid(), tindx++); in tempfile() 187 if((tmpfd=create(tmpf, in tempfile() 192 error(0, "cannot create temp file %s\n", tmpf); in tempfile() 196 if((tmpfd=open(tmpf, ORDWR in tempfile() 201 error(0, "cannot open temp file %s\n", tmpf); in tempfile()
|
| H A D | lpdaemon.c | 135 char tmpf[sizeof(TMPDIR)+64]; in tempfile() local 138 sprintf(tmpf, "%s/lp%d.%d", TMPDIR, getpid(), tindx++); in tempfile() 139 if((crtfd=creat(tmpf, 0666)) < 0) { in tempfile() 140 error("cannot create temp file %s\n", tmpf); in tempfile() 144 if((tmpfd=open(tmpf, 2)) < 0) { in tempfile() 145 error("cannot open temp file %s\n", tmpf); in tempfile() 150 unlink(tmpf); /* comment out for debugging */ in tempfile()
|