/titanic_44/usr/src/cmd/rexd/ |
H A D | where.c | 78 char curdir[MAXPATHLEN]; local 99 if (getcwd(curdir, MAXPATHLEN) == NULL) { 101 curdir); 106 chdir(curdir); 112 chdir(curdir); 116 strcpy(qualpn, curdir);
|
H A D | on.c | 207 char curdir[MAXPATHLEN]; in main() local 393 if (getcwd(curdir, MAXPATHLEN) == (char *)NULL) { in main() 394 fprintf(stderr, "on: can't find . (%s)\n", curdir); in main() 398 if (findmount(curdir, wdhost, fsname, dirwithin) == 0) { in main() 403 curdir, wdhost); in main() 409 curdir, dirwithin); in main() 415 curdir, wdhost, fsname); in main()
|
/titanic_44/usr/src/cmd/backup/restore/ |
H A D | interactive.c | 73 char curdir[MAXCOMPLEXLEN]; in runcmdshell() local 78 curdir[0] = '\0'; in runcmdshell() 81 canon("/", curdir, sizeof (curdir)); in runcmdshell() 91 getcmd(curdir, cmd, sizeof (cmd), name, sizeof (name), &alist); in runcmdshell() 130 (void) strncpy(curdir, name, sizeof (curdir)); in runcmdshell() 131 curdir[sizeof (curdir) - 1] = '\0'; in runcmdshell() 203 printlist(name, ino, curdir, *cmd == 'm'); in runcmdshell() 212 if (curdir[1] == '\0') { in runcmdshell() 215 (void) fprintf(stderr, "%s\n", &curdir[1]); in runcmdshell() 344 getcmd(curdir, cmd, cmdsiz, name, namesiz, ap) in getcmd() argument [all …]
|
/titanic_44/usr/src/cmd/make/lib/vroot/ |
H A D | report.cc | 253 char curdir[MAXPATHLEN]; in report_search_path() local 270 getcwd(curdir, sizeof(curdir)); in report_search_path() 271 if (strcmp(curdir, sdir) != 0 && strlen(iflag) > 2 && in report_search_path() 275 newiflag = (char *)malloc(strlen(iflag) + strlen(curdir) + 2); in report_search_path() 276 sprintf(newiflag, "-%c%s/%s", iflag[1], curdir, &iflag[2]); in report_search_path()
|
/titanic_44/usr/src/lib/libxcurses/src/libc/gen/ |
H A D | base.c | 52 static char curdir[] = "."; variable 74 return curdir; /* arg NULL, empty, ".", or ".." in DIRNAME */ in basedir() 98 return (type==DIRNAME)?curdir:path; in basedir()
|
/titanic_44/usr/src/cmd/svc/configd/ |
H A D | configd.c | 558 char curdir[PATH_MAX]; in main() local 573 if (getcwd(curdir, sizeof (curdir)) == NULL) { in main() 586 doorpath = regularize_path(curdir, optarg, doortmp); in main() 610 dbpath = regularize_path(curdir, optarg, dbtmp); in main() 614 npdbpath = regularize_path(curdir, optarg, npdbtmp); in main()
|
/titanic_44/usr/src/cmd/modload/ |
H A D | add_drv.c | 499 struct drvmod_dir *curdir = NULL; in module_not_found() local 512 curdir = moddir; in module_not_found() 513 while (curdir != NULL) { in module_not_found() 516 "%s/drv/%s/%s", next, curdir->direc, drv_name); in module_not_found() 539 curdir = curdir->next; in module_not_found()
|
/titanic_44/usr/src/lib/libast/common/misc/ |
H A D | fts.c | 53 FTSENT* curdir; \ 471 if (!(f = fts->curdir) || f->fts_level < 0) in popdirs() 885 fts->curdir = fts->cd ? 0 : f->fts_parent; in fts_read() 897 fts->curdir = fts->cd ? 0 : f->fts_parent; in fts_read() 982 fts->curdir = fts->cd < 0 ? 0 : f; in fts_read() 1117 || f != fts->curdir in fts_read() 1130 fts->curdir = fts->cd ? 0 : f; in fts_read() 1178 if (f == fts->curdir) in fts_read() 1181 fts->curdir = t; in fts_read() 1200 fts->curdir = fts->cd ? 0 : t; in fts_read() [all …]
|
/titanic_44/usr/src/tools/ctf/dwarf/common/ |
H A D | pro_section.c | 444 Dwarf_P_Inc_Dir curdir = 0; in _dwarf_pro_generate_debugline() local 474 curdir = dbg->de_inc_dirs; in _dwarf_pro_generate_debugline() 475 while (curdir) { in _dwarf_pro_generate_debugline() 476 prolog_size += strlen(curdir->did_name) + 1; in _dwarf_pro_generate_debugline() 477 curdir = curdir->did_next; in _dwarf_pro_generate_debugline() 559 curdir = dbg->de_inc_dirs; in _dwarf_pro_generate_debugline() 560 while (curdir) { in _dwarf_pro_generate_debugline() 561 strcpy((char *) data, curdir->did_name); in _dwarf_pro_generate_debugline() 562 data += strlen(curdir->did_name) + 1; in _dwarf_pro_generate_debugline() 563 curdir = curdir->did_next; in _dwarf_pro_generate_debugline()
|
/titanic_44/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | utilities.c | 653 getpathname(caddr_t namebuf, fsck_ino_t curdir, fsck_ino_t ino) in getpathname() argument 663 curdir, ino); in getpathname() 665 if ((curdir == 0) || (!INO_IS_DVALID(curdir))) { in getpathname() 670 if ((curdir == UFSROOTINO) && (ino == UFSROOTINO)) { in getpathname() 693 dp = ginode(curdir); in getpathname() 695 idesc.id_number = curdir; in getpathname() 716 if (curdir != ino) { in getpathname() 717 idesc.id_parent = curdir; in getpathname()
|
/titanic_44/usr/src/cmd/format/ |
H A D | startup.c | 1306 char curdir[MAXPATHLEN]; in do_search() local 1316 if (getcwd(curdir, sizeof (curdir)) == NULL) { in do_search() 1427 if (chdir(curdir) == -1) { in do_search() 1429 curdir, strerror(errno)); in do_search()
|
/titanic_44/usr/src/cmd/ls/ |
H A D | ls.c | 221 static char *curdir; /* the current directory */ variable 1138 curdir = name; in pdirectory() 1177 pname = makename(curdir, ap->ln.lname); in pdirectory()
|
/titanic_44/usr/src/cmd/cpio/ |
H A D | cpio.c | 1825 char *curdir; in creat_spec() local 1893 curdir = strrchr(nam_p, '.'); in creat_spec() 1895 if (curdir != NULL && curdir[1] == NULL) { in creat_spec()
|