|
StuBS
|
#include <fs/file_descriptor_table.h>
Public Member Functions | |
| FD_Table () | |
| bool | insert_file (File *file) |
| File * | remove_file (int fd) |
| File * | get_file (int fd) |
Private Attributes | |
| char | bitmap [kBitmapSize] |
| File * | file_descriptor_table [fd_table_size] |
Static Private Attributes | |
| static const int | max_files = 1024 |
| static const size_t | kBitmapSize = (max_files + 7) / 8 |
| static const int | fd_table_size = 8 |
|
inline |
| bool FD_Table::insert_file | ( | File * | file | ) |
| File * FD_Table::remove_file | ( | int | fd | ) |
| File * FD_Table::get_file | ( | int | fd | ) |
|
staticprivate |
|
private |
|
staticprivate |
|
private |