Searched refs:pathname (Results 1 - 25 of 93) sorted by relevance

1234

/osnet-11/usr/src/lib/libast/common/comp/
H A Ddirname.c33 extern char *dirname(register char *pathname) argument
37 for(last=pathname; *last; last++);
39 while(last>pathname && *--last=='/');
41 for(;last>pathname && *last!='/';last--);
42 if(last==pathname)
54 for(;*last=='/' && last > pathname; last--);
56 if(last==pathname && *pathname=='/' && pathname[1]=='/')
60 return(pathname);
[all...]
H A Dbasename.c33 extern char *basename(register char *pathname) argument
36 for(first=last=pathname; *last; last++);
49 for(first=last++;first>pathname && *first!='/';first--);
/osnet-11/usr/src/lib/libcmd/common/
H A Ddirname.c28 * print the dirname of a pathname
66 static void l_dirname(register Sfio_t *outfile, register const char *pathname) argument
70 for(last=pathname; *last; last++);
72 while(last>pathname && *--last=='/');
74 for(;last>pathname && *last!='/';last--);
75 if(last==pathname)
78 if(*pathname!='/')
79 last = pathname = ".";
84 for(;*last=='/' && last > pathname; last--);
87 if(last!=pathname
[all...]
H A Dbasename.c26 * namebase pathname [suffix]
28 * print the namebase of a pathname
50 "pathname is printed on a separate line on the standard output.]"
52 "pathname, with \asuffix\a removed if it exists, is printed on a "
69 static void namebase(Sfio_t *outfile, register char *pathname, char *suffix) argument
73 for(first=last=pathname; *last; last++);
86 for(first=last++;first>pathname && *first!='/';first--);
/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/Bin/
H A Ddiskhits12 # USAGE: diskhits pathname
50 USAGE: diskhits pathname
64 pathname=$1
65 if [[ ! -e $pathname ]]; then
66 print "ERROR2: file $pathname not found" >&2
72 set -- `ls -l $pathname`
85 inline string PATHNAME = "'$pathname'";
H A Drfileio.d52 self->pathname = cleanpath(args[0]->v_path);
53 @rio[self->pathname, "logical"] = count();
62 @rbytes[self->pathname, "logical"] =
66 self->pathname = 0;
72 @rio[self->pathname, "physical"] = count();
73 @rbytes[self->pathname, "physical"] = sum(args[0]->b_bcount);
H A Dopensnoop8 # USAGE: opensnoop [-a|-A|-ceghsvxZ] [-f pathname] [-n name] [-p PID]
21 # -f pathname # file pathname to snoop
37 # PATH pathname for file open
80 opt_zone=0; opt_cwd=0; opt_failonly=0; opt_err=0; filter=0; pathname=.
92 f) opt_file=1; pathname=$OPTARG ;;
100 USAGE: opensnoop [-a|-A|-ceghsvxZ] [-f pathname]
112 -f pathname # pathname name to snoop
153 inline string PATHNAME = "'$pathname'";
[all...]
H A Dstatsnoop8 # USAGE: statsnoop [-a|-A|-ceghlsvxZ] [-f pathname] [-t syscall]
23 # -f pathname # file pathname to snoop
42 # PATH pathname for file stat
78 opt_zone=0; opt_cwd=0; opt_failonly=0; opt_err=0; filter=0; pathname=.
90 f) opt_file=1; pathname=$OPTARG ;;
100 USAGE: statsnoop [-a|-A|-ceghlsvxZ] [-f pathname] [-t syscall]
113 -f pathname # pathname name to snoop
158 inline string PATHNAME = "'$pathname'";
[all...]
/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/Disk/
H A Ddiskhits12 # USAGE: diskhits pathname
50 USAGE: diskhits pathname
64 pathname=$1
65 if [[ ! -e $pathname ]]; then
66 print "ERROR2: file $pathname not found" >&2
72 set -- `ls -l $pathname`
85 inline string PATHNAME = "'$pathname'";
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetcwd.c30 * getcwd() returns the pathname of the current working directory.
43 getcwd(char *pathname, size_t size) argument
52 if (pathname == NULL) {
53 if ((pathname = malloc(size)) == NULL) {
60 if (syscall(SYS_getcwd, pathname, size) == 0)
61 return (pathname);
64 free(pathname);
H A Dgetwd.c39 getwd(char *pathname) argument
48 if ((c = getcwd(pathname, val)) == NULL) {
50 (void) strcpy(pathname,
53 (void) strcpy(pathname, "getwd: buffer too small");
55 (void) strcpy(pathname, "getwd: failure occurred");
H A Disaexec.c46 char *pathname; local
81 * Allocate a full pathname buffer. The sum of the lengths of the
85 if ((pathname = malloc(len)) == NULL) {
94 (void) strcpy(pathname, execname);
95 if ((str = strrchr(pathname, '/')) != NULL) {
97 fname = execname + (str - pathname);
100 *pathname = '\0';
102 len = strlen(pathname);
113 (void) strcpy(pathname + len, str);
114 (void) strcat(pathname
[all...]
/osnet-11/usr/src/lib/libc/port/sys/
H A Dinst_sync.c35 inst_sync(char *pathname, int flags) argument
37 return (syscall(SYS_inst_sync, pathname, flags));
/osnet-11/usr/src/lib/libfedfs/common/
H A Dpathtools.c38 pathname4 pathname; local
44 bzero(&pathname, sizeof (pathname4));
45 if (!xdr_pathname4(&xdrs, &pathname))
48 for (i = 0; i < pathname.pathname4_len; i++) {
49 path = utf8_to_str(&pathname.pathname4_val[i], &len, NULL);
56 xdr_free(xdr_pathname4, (char *)&pathname);
65 pathname4 pathname; local
69 (void) make_pathname4(path, &pathname);
70 size = xdr_sizeof(xdr_pathname4, &pathname);
75 if (!xdr_pathname4(&xdrs, &pathname))
[all...]
/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/FS/
H A Drfileio.d52 self->pathname = cleanpath(args[0]->v_path);
53 @rio[self->pathname, "logical"] = count();
62 @rbytes[self->pathname, "logical"] =
66 self->pathname = 0;
72 @rio[self->pathname, "physical"] = count();
73 @rbytes[self->pathname, "physical"] = sum(args[0]->b_bcount);
/osnet-11/usr/src/lib/libkmf/include/
H A Dkmfmapper.h51 char *pathname; member in struct:__anon1836
56 * The presently open mapper pathname and options. Can be based on the
/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/
H A Dopensnoop8 # USAGE: opensnoop [-a|-A|-ceghsvxZ] [-f pathname] [-n name] [-p PID]
21 # -f pathname # file pathname to snoop
37 # PATH pathname for file open
80 opt_zone=0; opt_cwd=0; opt_failonly=0; opt_err=0; filter=0; pathname=.
92 f) opt_file=1; pathname=$OPTARG ;;
100 USAGE: opensnoop [-a|-A|-ceghsvxZ] [-f pathname]
112 -f pathname # pathname name to snoop
153 inline string PATHNAME = "'$pathname'";
[all...]
H A Dstatsnoop8 # USAGE: statsnoop [-a|-A|-ceghlsvxZ] [-f pathname] [-t syscall]
23 # -f pathname # file pathname to snoop
42 # PATH pathname for file stat
78 opt_zone=0; opt_cwd=0; opt_failonly=0; opt_err=0; filter=0; pathname=.
90 f) opt_file=1; pathname=$OPTARG ;;
100 USAGE: statsnoop [-a|-A|-ceghlsvxZ] [-f pathname] [-t syscall]
113 -f pathname # pathname name to snoop
158 inline string PATHNAME = "'$pathname'";
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/kern/emu/
H A Dhostfs.c42 char pathname[len1 + 1 + len2 + 1 + 13]; local
43 strcpy (pathname, path);
46 if (len1 > 0 && pathname[len1 - 1] != '/')
47 strcat (pathname, "/");
49 strcat (pathname, name);
52 if (stat (pathname, &st))
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkrbfileio.c56 krb5_create_secure_file(krb5_context context, const char *pathname) argument
63 fd = THREEPARAMOPEN(pathname, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600);
/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dtest.c50 auto void get_fileinfo (char *pathname);
63 char *filename, *pathname; local
101 pathname = grub_strchr (path, ')');
102 if (! pathname)
103 pathname = path;
105 pathname++;
108 while (*pathname && pathname[grub_strlen (pathname) - 1] == '/')
109 pathname[grub_strle
[all...]
/osnet-11/usr/src/grub/grub2/util/
H A Dgrub-mount.c122 char *filename, *pathname, *path2; local
165 pathname = xstrdup (pathname_t);
168 while (*pathname && pathname[grub_strlen (pathname) - 1] == '/')
169 pathname[grub_strlen (pathname) - 1] = 0;
172 filename = grub_strrchr (pathname, '/');
176 filename = pathname;
181 path2 = grub_strdup (pathname);
278 char *pathname; local
[all...]
/osnet-11/usr/src/lib/libresolv2/common/dst/
H A Dsupport.c307 char pathname[PATH_MAX]; local
309 if (strlen(filename) + strlen(dst_path) >= sizeof(pathname))
313 strcpy(pathname, dst_path);
314 strcat(pathname, filename);
316 strcpy(pathname, filename);
318 fp = fopen(pathname, mode);
320 chmod(pathname, perm);
/osnet-11/usr/src/cmd/sendmail/src/
H A Dmci.c1108 ** Recursively find all the mci host files in `pathname'. Default to
1110 ** Call (*action)(pathname, host) for each file found.
1120 ** pathname -- root of tree. If null, use main host status
1131 mci_traverse_persistent(action, pathname)
1133 char *pathname;
1139 if (pathname == NULL)
1140 pathname = HostStatDir;
1141 if (pathname == NULL)
1145 sm_dprintf("mci_traverse: pathname is %s\n", pathname);
[all...]
/osnet-11/usr/src/lib/libpkg/common/
H A Ddevtype.c47 devp->dirname = devp->pathname = devp->mount = NULL;
102 name = devattr(alias, "pathname");
107 devp->pathname = alias;
113 devp->pathname = name;

Completed in 35 milliseconds

1234