Searched refs:tfd (Results 1 – 3 of 3) sorted by relevance
259 int tfd; in file_pipe2file() local265 tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600); in file_pipe2file()273 tfd = mkstemp(buf); in file_pipe2file()279 if (tfd == -1) { in file_pipe2file()285 if (swrite(tfd, startbuf, nbytes) != (ssize_t)nbytes) in file_pipe2file()289 if (swrite(tfd, buf, (size_t)r) != r) in file_pipe2file()309 if ((fd = dup2(tfd, fd)) == -1) { in file_pipe2file()313 (void)close(tfd); in file_pipe2file()
179 int tfd; in create_temp_output() local190 if ((tfd=mkstemp(temp)) == -1) { in create_temp_output()198 if ((tfp=fdopen(tfd, "r+b")) == NULL) { in create_temp_output()200 close(tfd); in create_temp_output()
1271 (void)close(tfd);
Completed in 14 milliseconds