Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/titanic_51/usr/src/uts/common/sys/
H A Dpathname.h55 * to the underlying storage; routines which manipulate the pathname
60 typedef struct pathname { struct
62 char *pn_path; /* remaining pathname */ argument
69 extern void pn_alloc(struct pathname *); argument
70 extern void pn_alloc_sz(struct pathname *, size_t);
71 extern int pn_get(char *, enum uio_seg, struct pathname *);
72 extern int pn_get_buf(char *, enum uio_seg, struct pathname *,
74 extern int pn_set(struct pathname *, char *);
75 extern int pn_insert(struct pathname *, struct pathname *, size_
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Ddirname.c28 * print the dirname of a pathname
66 static void l_dirname(register Sfio_t *outfile, register const char *pathname) in l_dirname() argument
70 for(last=pathname; *last; last++); in l_dirname()
72 while(last>pathname && *--last=='/'); in l_dirname()
74 for(;last>pathname && *last!='/';last--); in l_dirname()
75 if(last==pathname) in l_dirname()
78 if(*pathname!='/') in l_dirname()
79 last = pathname = "."; in l_dirname()
84 for(;*last=='/' && last > pathname; last--); in l_dirname()
87 if(last!=pathname in l_dirname()
[all...]
/titanic_51/usr/src/lib/libcmd/common/
H A Ddirname.c66 static void l_dirname(register Sfio_t *outfile, register const char *pathname) in l_dirname() argument
70 for(last=pathname; *last; last++); in l_dirname()
72 while(last>pathname && *--last=='/'); in l_dirname()
74 for(;last>pathname && *last!='/';last--); in l_dirname()
75 if(last==pathname) in l_dirname()
78 if(*pathname!='/') in l_dirname()
79 last = pathname = "."; in l_dirname()
84 for(;*last=='/' && last > pathname; last--); in l_dirname()
87 if(last!=pathname && pathname[0]=='/' && pathname[1]=='/') in l_dirname()
89 while(pathname[2]=='/' && pathname<last) in l_dirname()
[all …]
/titanic_51/usr/src/tools/cscope-fast/
H A Dcompath.c34 * compath(pathname)
41 * WARNING: since pathname is altered by this function, it should
50 compath(char *pathname) in compath() argument
63 if (strchr(pathname, '/') == 0) in compath()
64 return (pathname); in compath()
70 for (lastchar = pathname + 1; *lastchar != '\0'; lastchar++) in compath()
96 for (lastchar = pathname + 1; *lastchar != '\0'; lastchar++) in compath()
98 ((lastchar - 1 == pathname) || (*(lastchar - 2) == '/'))) { in compath()
115 for (lastchar = pathname + 1; *lastchar != '\0'; lastchar++) in compath()
116 if ((lastchar != pathname) in compath()
[all...]
/titanic_51/usr/src/lib/libast/common/comp/
H A Ddirname.c33 extern char *dirname(register char *pathname) in dirname() argument
37 for(last=pathname; *last; last++); in dirname()
39 while(last>pathname && *--last=='/'); in dirname()
41 for(;last>pathname && *last!='/';last--); in dirname()
42 if(last==pathname) in dirname()
54 for(;*last=='/' && last > pathname; last--); in dirname()
56 if(last==pathname && *pathname=='/' && pathname[1]=='/') in dirname()
60 return(pathname); in dirname()
/titanic_51/usr/src/contrib/ast/src/lib/libast/comp/
H A Ddirname.c33 extern char *dirname(register char *pathname) in dirname() argument
37 for(last=pathname; *last; last++); in dirname()
39 while(last>pathname && *--last=='/'); in dirname()
41 for(;last>pathname && *last!='/';last--); in dirname()
42 if(last==pathname) in dirname()
54 for(;*last=='/' && last > pathname; last--); in dirname()
56 if(last==pathname && *pathname=='/' && pathname[1]=='/') in dirname()
60 return(pathname); in dirname()
[all...]
/titanic_51/usr/src/lib/libc/port/gen/
H A Disaexec.c50 char *pathname; in isaexec() local
84 * Allocate a full pathname buffer. The sum of the lengths of the in isaexec()
88 if ((pathname = malloc(len)) == NULL) { in isaexec()
97 (void) strcpy(pathname, execname); in isaexec()
98 if ((str = strrchr(pathname, '/')) != NULL) { in isaexec()
100 fname = execname + (str - pathname); in isaexec()
103 *pathname = '\0'; in isaexec()
105 len = strlen(pathname); in isaexec()
116 (void) strcpy(pathname + len, str); in isaexec()
117 (void) strcat(pathname in isaexec()
[all...]
H A Dcatopen.c93 char pathname[PATH_MAX + 1]; in process_nls_path() local
146 /* unqualified pathname is unsafe */ in process_nls_path()
158 s = replace_nls_option(s, name, pathname, locale, in process_nls_path()
161 p = file_open(pathname, UNSAFE_F); in process_nls_path()
196 t = pathname; in process_nls_path()
201 while (*s && t < pathname + PATH_MAX) in process_nls_path()
204 while (*s && t < pathname + PATH_MAX) in process_nls_path()
207 while (*s && t < pathname + PATH_MAX) in process_nls_path()
210 return (file_open(pathname, SAFE_F)); in process_nls_path()
216 * with appropiate values. Returns expanded pathname
219 replace_nls_option(char * s,char * name,char * pathname,char * locale,char * lang,char * territory,char * codeset) replace_nls_option() argument
[all...]
H A Dgetcwd.c30 * getcwd() returns the pathname of the current working directory.
43 getcwd(char *pathname, size_t size) in getcwd() argument
52 if (pathname == NULL) { in getcwd()
53 if ((pathname = malloc(size)) == NULL) { in getcwd()
60 if (syscall(SYS_getcwd, pathname, size) == 0) in getcwd()
61 return (pathname); in getcwd()
64 free(pathname); in getcwd()
H A Dgetwd.c39 getwd(char *pathname) in getwd() argument
48 if ((c = getcwd(pathname, val)) == NULL) { in getwd()
50 (void) strcpy(pathname, in getwd()
53 (void) strcpy(pathname, "getwd: buffer too small"); in getwd()
55 (void) strcpy(pathname, "getwd: failure occurred"); in getwd()
/titanic_51/usr/src/psm/promif/ieee1275/common/
H A Dprom_path.c51 * Given an OBP pathname, do the best we can to fully expand
52 * the OBP pathname, in place in the callers buffer.
59 prom_pathname(char *pathname) in prom_pathname() argument
63 char *to = pathname; in prom_pathname()
74 if ((uintptr_t)pathname > (uint32_t)-1) { in prom_pathname()
75 opathname = pathname; in prom_pathname()
76 pathname = promplat_alloc(OBP_MAXPATHLEN); in prom_pathname()
77 if (pathname == NULL) { in prom_pathname()
80 (void) prom_strcpy(pathname, opathname); in prom_pathname()
81 to = pathname; in prom_pathname()
[all...]
/titanic_51/usr/src/uts/common/fs/
H A Dpathname.c45 #include <sys/pathname.h>
55 * name into a pathname structure where we operate on it.
56 * Each pathname structure can hold "pn_bufsize" characters
58 * allocating and freeing pathname structures, fetching
60 * a pathname, combining two pathnames (used in symbolic
62 * of a pathname.
66 * Allocate contents of pathname structure. Structure is typically
73 pn_alloc(struct pathname *pnp) in pn_alloc()
78 pn_alloc_sz(struct pathname *pnp, size_t sz) in pn_alloc_sz()
86 * Free pathname resource
[all...]
/titanic_51/usr/src/cmd/sendmail/src/
H A Dmci.c1083 ** Recursively find all the mci host files in `pathname'. Default to
1085 ** Call (*action)(pathname, host) for each file found.
1095 ** pathname -- root of tree. If null, use main host status
1106 mci_traverse_persistent(action, pathname)
1108 char *pathname; variable
1114 if (pathname == NULL)
1115 pathname = HostStatDir;
1116 if (pathname == NULL)
1120 sm_dprintf("mci_traverse: pathname is %s\n", pathname);
1288 mci_print_persistent(pathname,hostname) mci_print_persistent() argument
1389 mci_purge_persistent(pathname,hostname) mci_purge_persistent() argument
[all...]
/titanic_51/usr/src/ucblib/libucb/port/gen/
H A Dgetwd.c39 getwd(char *pathname) in getwd() argument
47 if ((c = getcwd(pathname, val)) == NULL) { in getwd()
49 (void) strcpy(pathname, in getwd()
52 (void) strcpy(pathname, "getwd: buffer too small"); in getwd()
54 (void) strcpy(pathname, "getwd: failure occurred"); in getwd()
/titanic_51/usr/src/cmd/srchtxt/
H A Dsrchtxt.c98 char pathname[128]; in main() local
137 (void) strcpy(pathname, P_locale); in main()
138 (void) strcpy(&pathname[L_locale - 1], locale); in main()
139 (void) strcat(pathname, MESSAGES); in main()
140 len = strlen(pathname); in main()
162 cp = pathname; in main()
181 if ((dirp = opendir(pathname)) == NULL) { in main()
183 cmdname, pathname, syserr()); in main()
190 if ((addr = attach(pathname, len, &fd, &size)) == -1) { in main()
192 "%s: ERROR: failed to access message file '%s'\n", cmdname, pathname); in main()
[all...]
/titanic_51/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_cs.c346 char pathname[MAXPATHLEN]; in lun_unconf() local
359 (void) strlcpy(pathname, xport_phys, MAXPATHLEN); in lun_unconf()
360 if ((ptr = strrchr(pathname, ':')) != NULL) { in lun_unconf()
382 * Make pathname to look something like : in lun_unconf()
385 strcat(pathname, ptr); in lun_unconf()
392 if ((ptr = strrchr(pathname, '@')) == NULL) { in lun_unconf()
395 pathname, 0); in lun_unconf()
401 sprintf(&pathname[strlen(pathname)], "@w%s,%x", in lun_unconf()
403 ptr = pathname; in lun_unconf()
504 char *vhci_path_ptr, *pathname_ptr, pathname[MAXPATHLEN]; is_xport_phys_in_pathlist() local
1068 char port_wwn[WWN_SIZE*2+1], pathname[MAXPATHLEN]; unconf_vhci_nodes() local
1244 char pathname[MAXPATHLEN]; unconf_non_vhci_nodes() local
1424 char pathname[MAXPATHLEN], *ptr; /* scratch pad */ unconf_any_devinfo_nodes() local
[all...]
/titanic_51/usr/src/cmd/ptools/pldd/
H A Dpldd.c151 char pathname[PATH_MAX]; in show_map() local
173 if ((len = resolvepath(object_name, pathname, sizeof (pathname))) > 0) in show_map()
174 pathname[len] = '\0'; in show_map()
176 (void) strncpy(pathname, object_name, sizeof (pathname)); in show_map()
178 (void) printf("%s\n", pathname); in show_map()
/titanic_51/usr/src/cmd/fs.d/nfs/lib/
H A Dref_subr.c212 make_pathname4(char *path, pathname4 *pathname) in make_pathname4() argument
217 if (pathname == NULL) in make_pathname4()
221 pathname->pathname4_val = NULL; in make_pathname4()
222 pathname->pathname4_len = 0; in make_pathname4()
228 pathname->pathname4_val = NULL; in make_pathname4()
229 pathname->pathname4_len = 0; in make_pathname4()
234 pathname->pathname4_val = NULL; in make_pathname4()
235 pathname->pathname4_len = 0; in make_pathname4()
242 pathname->pathname4_val = comp4; in make_pathname4()
243 pathname in make_pathname4()
[all...]
/titanic_51/usr/src/test/test-runner/cmd/
H A Drun154 def __init__(self, pathname, outputdir=None, timeout=None, user=None):
155 self.pathname = pathname
164 self.pathname, self.outputdir, self.timeout, self.user)
228 privcmd = self.update_cmd_privs(self.pathname, self.user)
277 msga = 'Test: %s%s ' % (self.pathname, user)
315 def __init__(self, pathname, outputdir=None, timeout=None, user=None,
317 super(Test, self).__init__(pathname, outputdir, timeout, user)
330 "%s%s\nUser: %s\n" % (self.pathname, self.outputdir,
339 files = [self.pre, self.pathname, sel
[all...]
/titanic_51/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_configfile.c50 char *pathname; member
70 { "pathname", USB_PATH },
550 user_rec->pathname = in usb_get_conf_rec()
662 } else if (user_rec->pathname) { in usb_cmp_rec()
663 if (cfg_rec->pathname) { in usb_cmp_rec()
674 ustr = strrchr(user_rec->pathname, '/'); in usb_cmp_rec()
675 cstr = strrchr(cfg_rec->pathname, '/'); in usb_cmp_rec()
676 path = (strncmp(cfg_rec->pathname, in usb_cmp_rec()
677 user_rec->pathname, in usb_cmp_rec()
678 MAX(ustr - user_rec->pathname, in usb_cmp_rec()
[all...]
/titanic_51/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_trans.c88 char *pathname; member
105 char *path; /* pathname of file */
184 if (strcmp(pte->pathname, entry->pathname) == 0) { in insert_te()
256 if (pte->pathname) free(pte->pathname); in remove_te()
572 newte->pathname = nfslog_get_path(&args->ra_fhandle, in trans_read()
575 newte->pathname = strdup(path1); in trans_read()
642 newte->pathname = nfslog_get_path(&args->waargs_fhandle, in trans_write()
645 newte->pathname in trans_write()
[all...]
/titanic_51/usr/src/lib/libtecla/common/
H A Dpathutil.c78 * Figure out the maximum length of an expanded pathname. in _new_PathName()
84 * Allocate the pathname buffer. in _new_PathName()
113 * Return the pathname to a zero-length string.
116 * path PathName * The pathname container.
118 * return char * The cleared pathname buffer, or NULL on error.
134 * Append a string to a pathname, increasing the size of the pathname
138 * path PathName * The pathname container.
139 * string const char * The string to be appended to the pathname.
148 * return char * The pathname strin
371 _pu_path_is_dir(const char * pathname) _pu_path_is_dir() argument
394 _pu_path_is_file(const char * pathname) _pu_path_is_file() argument
417 _pu_path_is_exe(const char * pathname) _pu_path_is_exe() argument
535 _pu_file_exists(const char * pathname) _pu_file_exists() argument
[all...]
/titanic_51/usr/src/cmd/swap/
H A Dswap.c103 char *pathname; in main() local
140 pathname = optarg; in main()
150 ret = delete(pathname, s_offset); in main()
173 pathname = optarg; in main()
245 if (dm_inuse(pathname, &msg, DM_WHO_SWAP, &error) || in main()
257 if ((ret = valid(pathname, in main()
259 ret = add(pathname, s_offset, length, flag); in main()
658 valid(char *pathname, off_t offset, off_t length) in valid() argument
664 if (stat64(pathname, &f) < 0 || statvfs64(pathname, in valid()
[all...]
/titanic_51/usr/src/cmd/abi/appcert/scripts/
H A Dabi_index.pl84 my $pathname = '';
94 $pathname = $';
114 next unless ($pathname =~ m,\.so,);
115 next unless ($pathname =~ m,/lib,);
116 next unless ($pathname =~ m,/lib[^/]*\.so\b,);
119 $pathname = trim($pathname);
121 filter($pathname, $link, $pkgs);
/titanic_51/usr/src/lib/libpcp/common/
H A Dpcp_utils.c80 char *pathname = strdup(dev_path); in get_vldc_svc_name() local
83 if (NULL == pathname) in get_vldc_svc_name()
86 devname = basename(pathname); in get_vldc_svc_name()
118 free(pathname); in get_vldc_svc_name()
134 char *pathname = strdup(dev_path); in get_glvc_svc_name() local
138 if (NULL == pathname) in get_glvc_svc_name()
141 devname = basename(pathname); in get_glvc_svc_name()
170 free(pathname); in get_glvc_svc_name()
176 * pathname (which might not even exist in the filesystem), and in either case
196 * Not a service name, check if it's a valid pathname in platsvc_extract_svc_name()
[all...]

12345678910>>...12