Home
last modified time | relevance | path

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

/PHP-8.3/ext/fileinfo/libmagic/
H A Dcompress.c457 int tfd; in file_pipe2file() local
477 tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600); in file_pipe2file()
486 tfd = mkstemp(buf); in file_pipe2file()
493 if (tfd == -1) { in file_pipe2file()
499 if (swrite(tfd, startbuf, nbytes) != CAST(ssize_t, nbytes)) in file_pipe2file()
503 if (swrite(tfd, buf, CAST(size_t, r)) != r) in file_pipe2file()
523 if ((fd = dup2(tfd, fd)) == -1) { in file_pipe2file()
527 (void)close(tfd); in file_pipe2file()
/PHP-8.3/ext/fileinfo/
H A Dlibmagic.patch1295 (void)close(tfd);

Completed in 18 milliseconds