Lines Matching refs:currentdir
447 dirlist_t *currentdir = *lastOpenDir_ptr; in close_log() local
449 if ((currentdir == NULL) || (currentdir->dl_fd == -1)) in close_log()
460 assert(currentdir->dl_filename != NULL); in close_log()
462 (void) strlcpy(oldname, currentdir->dl_filename, in close_log()
477 (void) write_file_token(currentdir->dl_fd, newname); in close_log()
478 if (currentdir->dl_fd >= 0) { in close_log()
479 (void) fsync(currentdir->dl_fd); in close_log()
480 (void) close(currentdir->dl_fd); in close_log()
482 currentdir->dl_fd = -1; in close_log()
483 (void) rename(currentdir->dl_filename, oldname); in close_log()
487 freedirlist(currentdir); in close_log()