if( _SysFInfo(fd, &info, 0) != 0 )
return NULL;
-
-
- return NULL;
+ DIR *ret = malloc(sizeof(DIR));
+ ret->fd = fd;
+ ret->pos = 0;
+ return ret;
}
DIR *opendir(const char *name)
errno = EINVAL;
return -1;
}
+ _SysClose(dp->fd);
+ free(dp);
return 0;
}