Hi,
Minoru is trying to extend Ruby standard API coverage on OSv, by porting testsuite of Ruby API to OSv.
He reported that on some tests fails on Ruby's pipe API (IO.pipe).
I looked into Ruby source code, it's something like this:
int pipes[2];
struct stat buf;
pipe(pipes);
if (fstat(pipes[0], &buf) != 0 && errno == EBADF)
abort();
if (fstat(pipes[1], &buf) != 0 && errno == EBADF)
abort();
The testcase seems to getting EBADF on fstat(2).
Can we currently able to stat pipe file descriptor, or do we have any limitation on pipe(2)?