Home
last modified time | relevance | path

Searched refs:tfd (Results 1 – 3 of 3) sorted by relevance

/PHP-7.1/ext/fileinfo/libmagic/
H A Dcompress.c259 int tfd; in file_pipe2file() local
265 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()
/PHP-7.1/ext/zip/lib/
H A Dzip_source_filep.c179 int tfd; in create_temp_output() local
190 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()
/PHP-7.1/ext/fileinfo/
H A Dlibmagic.patch1271 (void)close(tfd);

Completed in 14 milliseconds