Use _fcntl() (not fcntl()) inside of fcntl().

Reported by:	green
This commit is contained in:
jasone 2000-01-28 22:10:27 +00:00
parent 6cf8b95157
commit 4348040c0e
3 changed files with 9 additions and 9 deletions

View File

@ -152,14 +152,14 @@ fcntl(int fd, int cmd,...)
case F_DUPFD:
case F_SETFD:
case F_SETFL:
ret = fcntl(fd, cmd, va_arg(ap, int));
ret = _fcntl(fd, cmd, va_arg(ap, int));
break;
case F_GETFD:
case F_GETFL:
ret = fcntl(fd, cmd);
ret = _fcntl(fd, cmd);
break;
default:
ret = fcntl(fd, cmd, va_arg(ap, void *));
ret = _fcntl(fd, cmd, va_arg(ap, void *));
}
va_end(ap);

View File

@ -152,14 +152,14 @@ fcntl(int fd, int cmd,...)
case F_DUPFD:
case F_SETFD:
case F_SETFL:
ret = fcntl(fd, cmd, va_arg(ap, int));
ret = _fcntl(fd, cmd, va_arg(ap, int));
break;
case F_GETFD:
case F_GETFL:
ret = fcntl(fd, cmd);
ret = _fcntl(fd, cmd);
break;
default:
ret = fcntl(fd, cmd, va_arg(ap, void *));
ret = _fcntl(fd, cmd, va_arg(ap, void *));
}
va_end(ap);

View File

@ -152,14 +152,14 @@ fcntl(int fd, int cmd,...)
case F_DUPFD:
case F_SETFD:
case F_SETFL:
ret = fcntl(fd, cmd, va_arg(ap, int));
ret = _fcntl(fd, cmd, va_arg(ap, int));
break;
case F_GETFD:
case F_GETFL:
ret = fcntl(fd, cmd);
ret = _fcntl(fd, cmd);
break;
default:
ret = fcntl(fd, cmd, va_arg(ap, void *));
ret = _fcntl(fd, cmd, va_arg(ap, void *));
}
va_end(ap);