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