Home
last modified time | relevance | path

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

/PHP-7.2/ext/fileinfo/libmagic/
H A Dcompress.c342 int tfd; in file_pipe2file() local
348 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()
/PHP-7.2/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.2/ext/fileinfo/
H A Dlibmagic.patch1282 (void)close(tfd);

Completed in 18 milliseconds