defined sys::RC_XXX items in awk

This commit is contained in:
2019-08-25 06:21:32 +00:00
parent b419965310
commit cfd39c4280
3 changed files with 213 additions and 120 deletions

View File

@ -1429,8 +1429,8 @@ BEGIN {
n = sys::read (p0, k, 3);
if (n <= 0)
{
if (n == -2) continue;
if (n <= -1) print "ERROR: " sys::errmsg();
if (n == sys::RC_EAGAIN) continue; ## nonblock but data not available
if (n != 0) print "ERROR: " sys::errmsg();
break;
}
print k;