Lines Matching refs:tfd
75 int rc, i, j, ac, ofd, tfd, nargc, rval, nfiles, tmplen;
153 tfd = mkstemps(tf[j].tfile, suff ? strlen(suff) : 0);
155 if (tfd == -1) {
161 if ((nwritten = write(tfd, buf, nread)) != nread) {
178 (void) touch(tfd, NULL, &tf[j].omtim);
180 rc = fstat(tfd, &sb);
186 close(tfd);
219 if ((tfd = open(tf[i].tfile, O_RDONLY, 0644)) != -1) {
221 rc = fstat(tfd, &sb);
233 if (tfd != -1)
234 close(tfd);
247 close(tfd);
257 close(tfd);
260 while ((nread = read(tfd, buf, sizeof(buf))) > 0) {