Searched refs:tfd (Results 1 – 3 of 3) sorted by relevance
342 int tfd; in file_pipe2file() local348 tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600); in file_pipe2file()356 tfd = mkstemp(buf); in file_pipe2file()362 if (tfd == -1) { in file_pipe2file()368 if (swrite(tfd, startbuf, nbytes) != (ssize_t)nbytes) in file_pipe2file()372 if (swrite(tfd, buf, (size_t)r) != r) in file_pipe2file()392 if ((fd = dup2(tfd, fd)) == -1) { in file_pipe2file()396 (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()
1920 (void)close(tfd);
Completed in 27 milliseconds