NTSYNC_MAX_WAIT_COUNT
int fds[NTSYNC_MAX_WAIT_COUNT + 1];
int objs[NTSYNC_MAX_WAIT_COUNT + 1], fd, ret;
for (i = 1; i < NTSYNC_MAX_WAIT_COUNT + 1; ++i)
ret = wait_any(fd, NTSYNC_MAX_WAIT_COUNT, objs, 123, &index);
ret = wait_any(fd, NTSYNC_MAX_WAIT_COUNT + 1, objs, 123, &index);