Searched defs:cwd (Results 1 - 11 of 11) sorted by relevance

/osnet-11/usr/src/lib/libast/common/path/
H A Dpathaccess.c54 char cwd[PATH_MAX]; local
64 dirs = getcwd(cwd, sizeof(cwd));
/osnet-11/usr/src/lib/libtsol/common/
H A Dsetflabel.c83 static char cwd[MAXPATHLEN]; local
93 if (*path != '/' && cwd[0] == '\0') {
94 if (getcwd(cwd, MAXPATHLEN) == NULL) {
95 cwd[0] = '\0';
103 if (abspath(cwd, path, canon) < 0)
/osnet-11/usr/src/lib/libproc/common/
H A DPexecname.c46 * Once we've computed a cwd and a relative path, we use try_exec() to
51 try_exec(struct ps_prochandle *P, const char *cwd, const char *path, char *buf, argument
57 (void) snprintf(buf, PATH_MAX, "%s/%s", cwd, path);
83 char cwd[PATH_MAX * 2]; local
100 * interpreted as the directory to use as an alternate cwd for
113 * At this point 'aout' is either "." or an alternate cwd. We use
117 if (realpath(aout, cwd) == NULL)
118 (void) strcpy(cwd, ".");
124 * basename appended to our cwd. If that also fails, and the process
125 * is in a zone, try again with the zone path instead of our cwd
267 char cwd[PATH_MAX]; local
[all...]
/osnet-11/usr/src/lib/libadm/common/
H A Dfulldevnm.c110 char cwd[MAXPATHLEN]; local
118 if (getcwd(cwd, sizeof (cwd)) == NULL)
126 /* strip the last directory component from cwd */
127 c = strrchr(cwd, '/');
137 len = strlen(cwd) + strlen(path) + 2;
141 (void) strcpy(wa, cwd);
/osnet-11/usr/src/lib/libpkg/common/
H A Dverify.c401 char cwd[MAXPATHLEN]; local
423 if (getcwd(cwd, MAXPATHLEN) == NULL) {
457 chdir(cwd);
467 chdir(cwd);
475 if (chdir(cwd) != 0)
476 reperr(pkg_gt(ERR_CHDIR), cwd); local
484 if (chdir(cwd) != 0) {
485 reperr(pkg_gt(ERR_CHDIR), cwd); local
H A Dpkgtrans.c941 char cwd[MAXPATHLEN + 1]; local
1137 /* save cwd and change to symlink dir for cpio invocation */
1138 if (getcwd(cwd, MAXPATHLEN + 1) == NULL) {
1168 if (chdir(cwd)) {
1170 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
/osnet-11/usr/src/lib/mpss/common/
H A Dmpss.c221 fnmatch(const char *execname, char *cfgname, char *cwd) argument
233 ename = (const char *)strcat(cwd, execname);
306 char *cwd; local
379 cwd = getcwd(pbuf, MAXPATHLEN);
380 if (!cwd)
383 cwd = strcat(cwd, "/");
384 cwdlen = strlen(cwd);
434 if (!fnmatch(execname, tok, cwd)) {
436 cwd[cwdle
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Net/
H A DFTP.pm533 sub cwd subroutine
535 @_ == 1 || @_ == 2 or croak 'usage: $ftp->cwd( [ DIR ] )';
657 if($pwd && $ftp->cwd($dir))
660 $ftp->cwd($pwd);
1236 $ftp->cwd("/pub")
1385 =item cwd ( [ DIR ] )
/osnet-11/usr/src/lib/madv/common/
H A Dmadv.c216 fnmatch(const char *execname, char *cfgname, char *cwd) argument
228 ename = (const char *)strcat(cwd, execname);
441 char *cwd; local
501 cwd = getcwd(pbuf, MAXPATHLEN);
502 if (!cwd)
505 cwd = strcat(cwd, "/");
506 cwdlen = strlen(cwd);
556 if (!fnmatch(execname, tok, cwd)) {
558 cwd[cwdle
[all...]
/osnet-11/usr/src/grub/grub2/util/
H A Dgetroot.c642 char *cwd; local
651 cwd = xgetcwd ();
652 res = xmalloc (strlen (cwd) + strlen (ent->d_name) + 3);
653 sprintf (res, template, cwd, ent->d_name);
655 free (cwd);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/
H A DCPAN.pm140 my $cwd = CPAN::anycwd();
203 chdir $cwd or $CPAN::Frontend->mydie(qq{Could not chdir to "$cwd": $!});
230 chdir $cwd or $CPAN::Frontend->mydie(qq{Could not chdir to "$cwd": $!});
661 $getcwd = $CPAN::Config->{'getcwd'} || 'cwd';
665 #-> sub CPAN::cwd ;
666 sub cwd {Cwd::cwd();} subroutine
914 my($cwd)
[all...]

Completed in 45 milliseconds