Searched refs:tfd (Results 1 – 3 of 3) sorted by relevance
249 int tfd; in file_pipe2file() local255 tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600); in file_pipe2file()263 tfd = mkstemp(buf); in file_pipe2file()269 if (tfd == -1) { in file_pipe2file()275 if (swrite(tfd, startbuf, nbytes) != (ssize_t)nbytes) in file_pipe2file()279 if (swrite(tfd, buf, (size_t)r) != r) in file_pipe2file()299 if ((fd = dup2(tfd, fd)) == -1) { in file_pipe2file()303 (void)close(tfd); in file_pipe2file()
604 int tfd; in _zip_create_temp_output() local615 if ((tfd=mkstemp(temp)) == -1) { in _zip_create_temp_output()621 if ((tfp=fdopen(tfd, "r+b")) == NULL) { in _zip_create_temp_output()623 close(tfd); in _zip_create_temp_output()
1260 (void)close(tfd);
Completed in 19 milliseconds