/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | dirname.c | 33 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 D | basename.c | 33 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 D | dirname.c | 28 * 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 D | basename.c | 26 * 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 D | diskhits | 12 # 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 D | rfileio.d | 52 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 D | opensnoop | 8 # 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 D | statsnoop | 8 # 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 D | diskhits | 12 # 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 D | getcwd.c | 30 * 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 D | getwd.c | 39 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 D | isaexec.c | 46 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 D | inst_sync.c | 35 inst_sync(char *pathname, int flags) argument 37 return (syscall(SYS_inst_sync, pathname, flags));
|
/osnet-11/usr/src/lib/libfedfs/common/ |
H A D | pathtools.c | 38 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 D | rfileio.d | 52 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 D | kmfmapper.h | 51 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 D | opensnoop | 8 # 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 D | statsnoop | 8 # 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 D | hostfs.c | 42 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 D | krbfileio.c | 56 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 D | test.c | 50 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 D | grub-mount.c | 122 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 D | support.c | 307 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 D | mci.c | 1108 ** 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 D | devtype.c | 47 devp->dirname = devp->pathname = devp->mount = NULL; 102 name = devattr(alias, "pathname"); 107 devp->pathname = alias; 113 devp->pathname = name;
|