Summary: these print as errors when compiling hhvm opensource
Test Plan: none
Reviewed By: tudorb@fb.com
FB internal diff:
D1195649
// errno of ENOMEM. We can also get an EAGAIN, theoretically.
// EINVAL means either an invalid alignment or length, or that some
// of the pages are locked or shared. Neither should occur.
- int e = errno;
- assert(e == EAGAIN || e == ENOMEM);
+ assert(errno == EAGAIN || errno == ENOMEM);
}
}
char buf[PATH_MAX + 100]; // Long enough for any line
LineReader reader(fd, buf, sizeof(buf));
- char fileNameBuf[PATH_MAX];
-
while (remaining != 0) {
StringPiece line;
if (reader.readLine(line) != LineReader::kReading) {