Home
last modified time | relevance | path

Searched refs:cwd (Results 1 – 25 of 65) sorted by relevance

123

/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dcombined.c58 combined_walk_data_t *cwd; in combined_walk_init() local
60 cwd = mdb_alloc(sizeof (combined_walk_data_t), UM_SLEEP); in combined_walk_init()
62 cwd->cwd_initial_walk_addr = wsp->walk_addr; in combined_walk_init()
63 cwd->cwd_current_walk = cwd->cwd_final_walk = NULL; in combined_walk_init()
64 cwd->cwd_next = cwd->cwd_prev = NULL; in combined_walk_init()
65 cwd->cwd_tag = NULL; in combined_walk_init()
66 wsp->walk_data = cwd; in combined_walk_init()
82 combined_walk_data_save(combined_walk_data_t *cwd, void *tag) in combined_walk_data_save() argument
84 cwd->cwd_next = cwd_saved; in combined_walk_data_save()
85 cwd->cwd_prev = NULL; in combined_walk_data_save()
[all …]
/titanic_44/usr/src/cmd/svr4pkg/libinst/
H A Dflex_dev.c48 char *cwd = NULL; in flex_device() local
59 if ((cwd = getcwd(NULL, PATH_MAX)) == NULL) { in flex_device()
65 if (chdir(cwd) == -1) { in flex_device()
66 progerr(gettext(ERR_CHDIR), cwd, errno); in flex_device()
67 (void) free(cwd); in flex_device()
71 (void) sprintf(new_device_name, "%s/%s", cwd, np); in flex_device()
76 (void) free(cwd); in flex_device()
85 (void) free(cwd); in flex_device()
/titanic_44/usr/src/lib/libproc/common/
H A DPexecname.c54 try_exec(struct ps_prochandle *P, const char *cwd, const char *path, char *buf, in try_exec() argument
60 (void) snprintf(buf, PATH_MAX, "%s/%s", cwd, path); in try_exec()
86 char cwd[PATH_MAX * 2]; in Pfindexec() local
120 if (realpath(aout, cwd) == NULL) in Pfindexec()
121 (void) strcpy(cwd, "."); in Pfindexec()
135 if (try_exec(P, cwd, path, buf, isexec, isdata)) in Pfindexec()
139 try_exec(P, cwd, p, buf, isexec, isdata)) in Pfindexec()
171 if (try_exec(P, cwd, path, buf, isexec, isdata)) in Pfindexec()
175 try_exec(P, cwd, p, buf, isexec, isdata)) in Pfindexec()
187 if (try_exec(P, cwd, path, buf, isexec, isdata)) in Pfindexec()
[all …]
/titanic_44/usr/src/lib/libc/port/gen/
H A Drealpath.c50 char cwd[PATH_MAX]; in realpath_impl() local
81 if (getcwd(cwd, sizeof (cwd)) == NULL) { in realpath_impl()
88 char *endcwd = cwd + strlen(cwd); in realpath_impl()
108 if (endcwd + len >= cwd + PATH_MAX) { in realpath_impl()
118 (void) strcpy(resolved_name, cwd); in realpath_impl()
/titanic_44/usr/src/test/zfs-tests/tests/functional/migration/
H A Dmigration.kshlib54 cwd=$PWD
61 cd $cwd
95 cwd=$PWD
116 cd $cwd
129 cwd=$PWD
150 cd $cwd
H A Dmigration_004_pos.ksh59 cwd=$PWD
66 cd $cwd
67 (( $? != 0 )) && log_untested "Could not change directory to $cwd"
H A Dmigration_005_pos.ksh59 cwd=$PWD
66 cd $cwd
67 (( $? != 0 )) && log_untested "Could not change directory to $cwd"
H A Dmigration_006_pos.ksh59 cwd=$PWD
66 cd $cwd
67 (( $? != 0 )) && log_untested "Could not change directory to $cwd"
/titanic_44/usr/src/cmd/ptools/pwdx/
H A Dpwdx.c41 char cwd[MAXPATHLEN], proc[128]; in show_cwd() local
55 if ((ret = readlink(proc, cwd, sizeof (cwd) - 1)) <= 0) { in show_cwd()
61 cwd[ret] = '\0'; in show_cwd()
63 (void) printf("%d:\t%s\n", (int)p.pr_pid, cwd); in show_cwd()
/titanic_44/usr/src/lib/mpss/common/
H A Dmpss.c221 fnmatch(const char *execname, char *cfgname, char *cwd) in fnmatch() argument
233 ename = (const char *)strcat(cwd, execname); in fnmatch()
306 char *cwd; in __mpssmain() local
379 cwd = getcwd(pbuf, MAXPATHLEN); in __mpssmain()
380 if (!cwd) in __mpssmain()
383 cwd = strcat(cwd, "/"); in __mpssmain()
384 cwdlen = strlen(cwd); in __mpssmain()
434 if (!fnmatch(execname, tok, cwd)) { in __mpssmain()
436 cwd[cwdlen] = '\0'; in __mpssmain()
444 cwd[cwdlen] = '\0'; in __mpssmain()
/titanic_44/usr/src/cmd/fs.d/cachefs/cachefspack/
H A Dmain.c216 char *cwd; in bld_pack_list() local
239 cwd = getcwd(NULL, MAXPATHLEN+1); in bld_pack_list()
240 sz = strlen(cwd); in bld_pack_list()
242 (strncmp(last_base, cwd, sz) != 0)) { in bld_pack_list()
243 fprintf(fd, "BASE %s\n", cwd); in bld_pack_list()
245 strncpy(last_base, cwd, sz); in bld_pack_list()
247 free(cwd); in bld_pack_list()
/titanic_44/usr/src/cmd/mailx/
H A Dmain.c82 char *cwd, *mf; in main() local
253 cwd = getcwd(NOSTR, PATHSIZE); in main()
397 if (cwd == NOSTR) in main()
398 cwd = getcwd(NOSTR, PATHSIZE); in main()
399 nstrcat(cwd, PATHSIZE, "/"); in main()
400 nstrcat(cwd, PATHSIZE, ef); in main()
401 ef = cwd; in main()
/titanic_44/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_destroy/
H A Dzpool_destroy_002_pos.ksh52 [[ -n $cwd ]] && log_must cd $cwd
78 typeset cwd=""
95 cwd=$PWD
/titanic_44/usr/src/lib/libast/common/path/
H A Dpathaccess.c42 char cwd[PATH_MAX]; in pathaccess() local
52 dirs = getcwd(cwd, sizeof(cwd)); in pathaccess()
/titanic_44/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/base/
H A DDesignerAccess.java220 private static String cwd; field in DesignerAccess
222 public static void setCWD(String cwd) { in setCWD() argument
223 DesignerAccess.cwd = cwd; in setCWD()
227 return cwd; in getCWD()
H A DUtil.java503 private static String cwd; field in Util
511 if (cwd == null) { in makeAbsolute()
512 cwd = System.getProperty(/* NOI18N */"user.dir"); in makeAbsolute()
513 if (cwd.charAt(cwd.length()-1) != separator.charAt(0)) in makeAbsolute()
514 cwd = cwd + separator; in makeAbsolute()
522 path = cwd + path; in makeAbsolute()
526 path = cwd + path; in makeAbsolute()
/titanic_44/usr/src/lib/madv/common/
H A Dmadv.c217 fnmatch(const char *execname, char *cfgname, char *cwd) in fnmatch() argument
229 ename = (const char *)strcat(cwd, execname); in fnmatch()
442 char *cwd; in __madvmain() local
502 cwd = getcwd(pbuf, MAXPATHLEN); in __madvmain()
503 if (!cwd) in __madvmain()
506 cwd = strcat(cwd, "/"); in __madvmain()
507 cwdlen = strlen(cwd); in __madvmain()
557 if (!fnmatch(execname, tok, cwd)) { in __madvmain()
559 cwd[cwdlen] = '\0'; in __madvmain()
570 cwd[cwdlen] = '\0'; in __madvmain()
/titanic_44/usr/src/lib/libtsol/common/
H A Dsetflabel.c85 static char cwd[MAXPATHLEN]; in setflabel() local
95 if (*path != '/' && cwd[0] == '\0') { in setflabel()
96 if (getcwd(cwd, MAXPATHLEN) == NULL) { in setflabel()
97 cwd[0] = '\0'; in setflabel()
105 if (abspath(cwd, path, canon) < 0) in setflabel()
/titanic_44/usr/src/lib/libtecla/common/
H A Dhomedir.c453 char *cwd = getcwd(home->buffer, home->buflen); local
467 if(pwd && cwd && stat(cwd, &cwdstat)==0 && stat(pwd, &pwdstat)==0 &&
474 if(!cwd)
479 return cwd;
/titanic_44/usr/src/lib/libadm/common/
H A Dfulldevnm.c110 char cwd[MAXPATHLEN]; in getfullname() local
118 if (getcwd(cwd, sizeof (cwd)) == NULL) in getfullname()
127 c = strrchr(cwd, '/'); in getfullname()
137 len = strlen(cwd) + strlen(path) + 2; in getfullname()
141 (void) strcpy(wa, cwd); in getfullname()
/titanic_44/usr/src/uts/common/syscall/
H A Dchdir.c168 refstr_t *cwd; in chdirec() local
232 if ((cwd = PTOU(pp)->u_cwd) != NULL && newcwd) in chdirec()
236 if (cwd && newcwd) in chdirec()
237 refstr_rele(cwd); in chdirec()
/titanic_44/usr/src/uts/common/fs/
H A Dlookup.c1406 refstr_t *cwd, *oldcwd; in dogetcwd() local
1416 if ((cwd = PTOU(p)->u_cwd) != NULL) in dogetcwd()
1417 refstr_hold(cwd); in dogetcwd()
1426 if (cwd != NULL) in dogetcwd()
1427 refstr_rele(cwd); in dogetcwd()
1432 if (cwd) { in dogetcwd()
1433 value = refstr_value(cwd); in dogetcwd()
1435 refstr_rele(cwd); in dogetcwd()
1451 refstr_rele(cwd); in dogetcwd()
1455 refstr_rele(cwd); in dogetcwd()
[all …]
/titanic_44/usr/src/cmd/fstyp/
H A Dfstyp.c220 char *cwd; in getexecpathname() local
227 cwd = getcwd(NULL, size); in getexecpathname()
228 if ((path == NULL) || (rpath == NULL) || (cwd == NULL)) { in getexecpathname()
236 (void) snprintf(path, size, "%s/%s", cwd, execname); in getexecpathname()
247 if (cwd != NULL) { in getexecpathname()
248 free(cwd); in getexecpathname()
/titanic_44/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/
H A Dzfs_unmount.kshlib72 [[ -n $cwd ]] && cd $cwd
/titanic_44/usr/src/cmd/cron/
H A Dfuncs.c239 char *cwd = getcwd(NULL, 0); in isvalid_dir() local
244 if (cwd != NULL) { in isvalid_dir()
245 (void) chdir(cwd); in isvalid_dir()

123