Home
last modified time | relevance | path

Searched refs:currentdir (Results 1 – 5 of 5) sorted by relevance

/titanic_44/usr/src/tools/cscope-fast/
H A Dvpinit.c48 vpinit(char *currentdir) in vpinit() argument
57 if (currentdir != NULL && vpndirs > 0) { in vpinit()
71 if (currentdir == NULL && (currentdir = mygetwd(buf)) == NULL) { in vpinit()
77 for (i = 0; vpath[i] == currentdir[i] && vpath[i] != '\0'; ++i) { in vpinit()
81 (currentdir[i] != '/' && currentdir[i] != '\0')) { in vpinit()
84 suffix = &currentdir[i]; in vpinit()
H A Dmain.c71 char currentdir[PATHLEN + 1]; /* current directory */ variable
151 if (mygetwd(currentdir) == NULL) { in main()
154 (void) strcpy(currentdir, "<unknown>"); in main()
157 vpinit(currentdir); in main()
547 (void) puts(currentdir); in main()
969 (void) strcpy(newdir, currentdir); in build()
970 if (strcmp(currentdir, home) == 0) { in build()
972 } else if (strncmp(currentdir, home, strlen(home)) == 0) { in build()
973 (void) sprintf(newdir, "$HOME%s", currentdir + strlen(home)); in build()
984 (strcmp(olddir, currentdir) == 0 || /* remain compatible */ in build()
H A Dlibrary.h55 void vpinit(char *currentdir);
H A Dglobal.h80 extern char currentdir[]; /* current directory */
/titanic_44/usr/src/lib/auditd_plugins/binfile/
H A Dbinfile.c447 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()
[all …]