* Open the library file once using stdio. Keep it open, but * keep track of the file position. */
| 229 | * keep track of the file position. |
| 230 | */ |
| 231 | staticfn boolean |
| 232 | lib_dlb_init(void) |
| 233 | { |
| 234 | /* zero out array */ |
| 235 | (void) memset((char *) &dlb_libs[0], 0, sizeof(dlb_libs)); |
| 236 | #ifdef VERSION_IN_DLB_FILENAME |
| 237 | build_dlb_filename((const char *) 0); |
| 238 | #endif |
| 239 | /* To open more than one library, add open library calls here. */ |
| 240 | if (!open_library(DLBFILE, &dlb_libs[0])) |
| 241 | return FALSE; |
| 242 | #ifdef DLBFILE2 |
| 243 | if (!open_library(DLBFILE2, &dlb_libs[1])) { |
| 244 | close_library(&dlb_libs[0]); |
| 245 | return FALSE; |
| 246 | } |
| 247 | #endif |
| 248 | return TRUE; |
| 249 | } |
| 250 | |
| 251 | staticfn void |
| 252 | lib_dlb_cleanup(void) |
nothing calls this directly
no test coverage detected