Previously, FIFO pseudo-files (named pipes) did not have callbacks of stat() (used on FIFO filenames) and hstat() (used on FIFO handles/FDs). This breaks some apps that want to double-check that the file they have opened or want to open is a FIFO, using the stat() or fstat() syscalls. There was no good reason to skip those callbacks, so this commit adds their dummy implementations.
Fixes #1896.
How to test this PR?
Added some sub-tests in LibOS, and activated read03 in LTP.
Description of the changes
Previously, FIFO pseudo-files (named pipes) did not have callbacks of
stat()
(used on FIFO filenames) andhstat()
(used on FIFO handles/FDs). This breaks some apps that want to double-check that the file they have opened or want to open is a FIFO, using thestat()
orfstat()
syscalls. There was no good reason to skip those callbacks, so this commit adds their dummy implementations.Fixes #1896.
How to test this PR?
Added some sub-tests in LibOS, and activated
read03
in LTP.This change is![Reviewable](https://reviewable.io/review_button.svg)