Searched refs:cwd (Results 26 - 50 of 60) sorted by relevance

123

/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/
H A Dzfs_acl_tar_001_pos.ksh57 (( ${#cwd} != 0 )) && cd $cwd
71 cwd=$PWD
H A Dzfs_acl_chmod_xattr_001_pos.ksh52 cd $cwd
214 typeset cwd=$PWD
H A Dzfs_acl_chmod_xattr_002_pos.ksh50 cd $cwd
209 typeset cwd=$PWD
H A Dzfs_acl_tar_002_pos.ksh59 (( ${#cwd} != 0 )) && cd $cwd
73 cwd=$PWD
H A Dzfs_acl_mv_001_pos.ksh49 (( ${#cwd} != 0 )) && cd $cwd
138 cwd=$PWD
H A Dzfs_acl_chmod_delete_001_pos.ksh68 (( ${#cwd} != 0 )) && cd $cwd
274 typeset cwd=$PWD
/illumos-gate/usr/src/uts/common/fs/
H A Dlookup.c787 * are currently in '/proc/self/fd', then '/proc/self/cwd' will compare
1294 * which is the behavior of {cwd/root}. Trying to resolve this path
1295 * will result in /proc/pid/cwd instead of whatever the real working
1469 refstr_t *cwd, *oldcwd; local
1475 * Check to see if there is a cached version of the cwd. If so, lookup
1479 if ((cwd = PTOU(p)->u_cwd) != NULL)
1480 refstr_hold(cwd);
1489 if (cwd != NULL)
1490 refstr_rele(cwd);
1495 if (cwd) {
[all...]
/illumos-gate/usr/src/lib/libtnfctl/
H A Dutil.c447 char *cwd; local
450 cwd = getcwd(NULL, MAXPATHLEN);
451 if (!cwd) {
454 if ((strlen(cwd) + 1 + strlen(trace_file_name) + 1) >
459 (void) sprintf(path, "%s/%s", cwd, trace_file_name);
461 free(cwd);
/illumos-gate/usr/src/lib/libpkg/common/
H A Dverify.c400 char cwd[MAXPATHLEN]; local
422 if (getcwd(cwd, MAXPATHLEN) == NULL) {
456 (void) chdir(cwd);
466 (void) chdir(cwd);
474 if (chdir(cwd) != 0)
475 reperr(pkg_gt(ERR_CHDIR), cwd); local
483 if (chdir(cwd) != 0) {
484 reperr(pkg_gt(ERR_CHDIR), cwd); local
H A Dpkgtrans.c935 char cwd[MAXPATHLEN + 1]; local
1125 /* save cwd and change to symlink dir for cpio invocation */
1126 if (getcwd(cwd, MAXPATHLEN + 1) == NULL) {
1156 if (chdir(cwd)) {
1158 logerr(pkg_gt(MSG_CHDIR), cwd); local
1868 char cwd[MAXPATHLEN + 1]; local
1878 if (getcwd(cwd, MAXPATHLEN + 1) == NULL) {
1908 if (chdir(cwd)) {
1910 logerr(pkg_gt(MSG_CHDIR), cwd); local
/illumos-gate/usr/src/cmd/fs.d/udfs/fsdb/
H A Dfsdb_yacc.y58 char cwd[MAXPATHLEN] = "/";
206 strcpy(temp_cwd, cwd);
211 gettext("cwd is invalid"
247 strcpy(cwd, temp_cwd);
258 (void) strcpy(cwd, "/");
298 if ((strlen(cwd) == 1) &&
299 (cwd[0] == '/')) {
302 strcpy(find_dir, cwd);
440 fprintf(stdout, gettext("%s\n"), cwd);
/illumos-gate/usr/src/boot/sys/boot/fdt/
H A Dfdt_loader_cmd.c113 static char cwd[FDT_CWD_LEN] = "/"; variable
816 /* Handle path specification relative to cwd */
817 len = strlen(cwd) + strlen(path) + 1;
821 strcpy(tmp, cwd);
834 strcpy(cwd, path);
906 path = cwd;
933 if (strcmp(cwd, "/") == 0)
1340 o = fdt_path_offset(fdtp, cwd);
1342 path = (char *)&cwd;
1346 path = cwd;
[all...]
/illumos-gate/usr/src/cmd/fm/scripts/
H A Dfmsim.ksh31 cwd=$PWD
222 cd $cwd || exit $1
291 cd $cwd
/illumos-gate/usr/src/cmd/chmod/
H A Dchmod.c970 rest_cwd(int cwd) argument
972 if (cwd != -1) {
973 if (fchdir(cwd) != 0) {
977 (void) close(cwd);
1076 int cwd; local
1111 if ((cwd = save_cwd()) < 0) {
1119 (void) close(cwd);
1145 rest_cwd(cwd);
/illumos-gate/usr/src/cmd/fs.d/ufs/df/
H A Ddf.c770 static char cwd[MAXPATHLEN]; local
781 if (*path != '/' && cwd[0] == '\0') {
782 if (getcwd(cwd, MAXPATHLEN) == NULL) {
783 cwd[0] = '\0';
798 if (abspath(cwd, path, scratch) < 0)
/illumos-gate/usr/src/cmd/sh/
H A Dpwd.c64 cwd(unsigned char *dir) function
H A Dbltin.c224 cwd(curstak());
H A Djobs.c630 allocjob(char *cmd, uchar_t *cwd, int monitor) argument
640 cwdlen = strlen(cwd) + 1;
648 strcpy(jp->j_pwd, cwd);
/illumos-gate/usr/src/cmd/mailx/
H A Dcmd3.c238 char cwd[PATHSIZE], file[PATHSIZE]; local
249 if (getcwd(cwd, (int)sizeof (cwd)) == 0) {
251 gettext("Can't get current directory: %s\n"), cwd);
263 snprintf(file, sizeof (file), "%s/%s", cwd, editfile);
268 snprintf(file, sizeof (file), "%s/%s", cwd, mailname);
/illumos-gate/usr/src/cmd/man/
H A Dman.c844 char *cwd = NULL; local
858 cwd = getcwd(NULL, MAXPATHLEN);
862 if (cwd) {
863 /* Relative manpath with cwd: make absolute */
864 if (asprintf(&p, "%s/%s", cwd, b->path) == -1)
869 /* Relative manpath but no cwd: omit path entry */
878 free(cwd);
/illumos-gate/usr/src/cmd/isns/isnsd/xml/
H A Ddata.c790 char *cwd = NULL; local
826 cwd = getcwd(NULL, MAXPATHLEN);
827 if (cwd == NULL) {
842 (void) chdir(cwd);
843 free(cwd);
/illumos-gate/usr/src/lib/libdtrace/common/
H A Dprocfs.d.in356 inline string cwd = curthread->t_procp->p_user.u_cdir->v_path == NULL ?
358 #pragma D attributes Stable/Stable/Common cwd
359 #pragma D binding "1.0" cwd
/illumos-gate/usr/src/cmd/device_remap/
H A Ddevice_remap.pl376 cwd() ne "/" or die "can't run on root directory\n";
/illumos-gate/usr/src/uts/common/os/
H A Dexit.c345 refstr_t *cwd; local
769 cwd = PTOU(p)->u_cwd;
870 if (cwd)
871 refstr_rele(cwd);
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c193 static void rest_cwd(int cwd);
2056 int cwd; local
2089 cwd = save_cwd();
2098 rest_cwd(cwd);
2163 cwd = save_cwd();
2174 rest_cwd(cwd);
2183 rest_cwd(cwd);
3383 int cwd; local
3558 cwd = -1;
3564 cwd
3928 retry_open_attr(int pdirfd, int cwd, char *fullname, char *pattr, char *name, int oflag, mode_t mode) argument
4087 open_attr_dir(char *attrname, char *dirp, int cwd, char *attr_parent, int *attr_parentfd, int *rw_sysattr) argument
4183 int cwd; local
8225 rest_cwd(int cwd) argument
[all...]

Completed in 1795 milliseconds

123