| 176 | |
| 177 | |
| 178 | void PIO_close(jrd_file* main_file) |
| 179 | { |
| 180 | /************************************** |
| 181 | * |
| 182 | * P I O _ c l o s e |
| 183 | * |
| 184 | ************************************** |
| 185 | * |
| 186 | * Functional description |
| 187 | * NOTE: This routine does not lock any mutexes on |
| 188 | * its own behalf. It is assumed that mutexes will |
| 189 | * have been locked before entry. |
| 190 | * |
| 191 | **************************************/ |
| 192 | |
| 193 | for (jrd_file* file = main_file; file; file = file->fil_next) |
| 194 | { |
| 195 | if (file->fil_desc && file->fil_desc != -1) |
| 196 | { |
| 197 | close(file->fil_desc); |
| 198 | file->fil_desc = -1; |
| 199 | } |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | |
| 204 | jrd_file* PIO_create(thread_db* tdbb, const PathName& file_name, |
no outgoing calls
no test coverage detected