Home
last modified time | relevance | path

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

1234567891011

/illumos-gate/usr/src/uts/common/sys/
H A Dpathname.h60 typedef struct pathname { struct
69 extern void pn_alloc(struct pathname *); argument
75 extern int pn_insert(struct pathname *, struct pathname *, size_t);
78 extern void pn_setlast(struct pathname *);
80 extern int pn_fixslash(struct pathname *);
81 extern int pn_addslash(struct pathname *);
82 extern void pn_free(struct pathname *);
90 extern int lookuppn(struct pathname *, struct pathname *, int follow,
92 extern int lookuppnat(struct pathname *, struct pathname *, int follow,
94 extern int lookuppnatcred(struct pathname *, struct pathname *, int follow,
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Ddirname.c70 for(last=pathname; *last; last++); in l_dirname()
72 while(last>pathname && *--last=='/'); in l_dirname()
75 if(last==pathname) in l_dirname()
78 if(*pathname!='/') in l_dirname()
79 last = pathname = "."; in l_dirname()
87 if(last!=pathname && pathname[0]=='/' && pathname[1]=='/') in l_dirname()
89 while(pathname[2]=='/' && pathname<last) in l_dirname()
90 pathname++; in l_dirname()
91 …if(last!=pathname && pathname[0]=='/' && pathname[1]=='/' && *astconf("PATH_LEADING_SLASHES",NiL,N… in l_dirname()
92 pathname++; in l_dirname()
[all …]
/illumos-gate/usr/src/tools/cscope-fast/
H A Dcompath.c48 compath(char *pathname) in compath() argument
61 if (strchr(pathname, '/') == 0) in compath()
62 return (pathname); in compath()
114 if ((lastchar != pathname) && (*lastchar == '/') && in compath()
123 while ((nextchar != pathname) && in compath()
165 if ((sofar + 1 != pathname) && (*sofar == '/')) in compath()
175 pnlen = strlen(pathname); in compath()
176 pnend = strchr(pathname, '\0') - 1; in compath()
196 if (*pathname == '\0') in compath()
197 (void) strcpy(pathname, "."); in compath()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetcwd.c46 getcwd(char *pathname, size_t size) in getcwd() argument
50 if (size == 0 && pathname == NULL) { in getcwd()
68 if ((pathname = reallocf(pathname, size)) == NULL) { in getcwd()
79 ret = realloc(pathname, strlen(pathname) + 1); in getcwd()
81 return (pathname); in getcwd()
89 free(pathname); in getcwd()
98 if (pathname == NULL) { in getcwd()
99 if ((pathname = malloc(size)) == NULL) { in getcwd()
106 if (syscall(SYS_getcwd, pathname, size) == 0) in getcwd()
107 return (pathname); in getcwd()
[all …]
H A Disaexec.c52 char *pathname; in isaexec() local
100 (void) strcpy(pathname, execname); in isaexec()
103 fname = execname + (str - pathname); in isaexec()
106 *pathname = '\0'; in isaexec()
108 len = strlen(pathname); in isaexec()
119 (void) strcpy(pathname + len, str); in isaexec()
120 (void) strcat(pathname + len, "/"); in isaexec()
121 (void) strcat(pathname + len, fname); in isaexec()
122 if (access(pathname, X_OK) == 0) { in isaexec()
128 (void) execve(pathname, argv, envp); in isaexec()
[all …]
H A Dcatopen.c93 char pathname[PATH_MAX + 1]; in process_nls_path() local
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()
224 t = pathname; in replace_nls_option()
226 if (t < pathname + PATH_MAX) { in replace_nls_option()
249 t < pathname + PATH_MAX) in replace_nls_option()
256 t < pathname + PATH_MAX) in replace_nls_option()
[all …]
H A Dgetwd.c37 getwd(char *pathname) in getwd() argument
46 if ((c = getcwd(pathname, val)) == NULL) { in getwd()
48 (void) strcpy(pathname, in getwd()
51 (void) strcpy(pathname, "getwd: buffer too small"); in getwd()
53 (void) strcpy(pathname, "getwd: failure occurred"); in getwd()
/illumos-gate/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()
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_path.c59 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()
111 (void) prom_strcpy(opathname, pathname); in prom_pathname()
112 promplat_free(pathname, OBP_MAXPATHLEN); in prom_pathname()
[all …]
/illumos-gate/usr/src/uts/common/fs/
H A Dpathname.c73 pn_alloc(struct pathname *pnp) in pn_alloc()
78 pn_alloc_sz(struct pathname *pnp, size_t sz) in pn_alloc_sz()
89 pn_free(struct pathname *pnp) in pn_free()
143 pn_set(struct pathname *pnp, const char *path) in pn_set()
165 pn_insert(struct pathname *pnp, struct pathname *sympnp, size_t complen) in pn_insert()
201 pn_getsymlink(vnode_t *vp, struct pathname *pnp, cred_t *crp) in pn_getsymlink()
231 pn_getcomponent(struct pathname *pnp, char *component) in pn_getcomponent()
263 pn_skipslash(struct pathname *pnp) in pn_skipslash()
278 pn_setlast(struct pathname *pnp) in pn_setlast()
301 pn_fixslash(struct pathname *pnp) in pn_fixslash()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmci.c1106 char *pathname; variable
1112 if (pathname == NULL)
1113 pathname = HostStatDir;
1114 if (pathname == NULL)
1159 pathname);
1232 char *end = pathname + strlen(pathname) - 1;
1287 char *pathname; in mci_print_persistent()
1321 FileName = pathname;
1388 char *pathname; in mci_purge_persistent()
1392 char *end = pathname + strlen(pathname) - 1;
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_cs.c346 char pathname[MAXPATHLEN]; in lun_unconf() local
385 strcat(pathname, ptr); 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()
1160 (void) fp_rcm_online(pathname, in unconf_vhci_nodes()
1172 (void) fp_rcm_online(pathname, in unconf_vhci_nodes()
1244 char pathname[MAXPATHLEN]; in unconf_non_vhci_nodes() local
1302 sprintf(&pathname[strlen(pathname)], "@w%s,%x", in unconf_non_vhci_nodes()
1328 (void) fp_rcm_online(pathname, in unconf_non_vhci_nodes()
[all …]
/illumos-gate/usr/src/cmd/srchtxt/
H A Dsrchtxt.c96 char pathname[128]; in main() local
135 (void) strcpy(pathname, P_locale); in main()
136 (void) strcpy(&pathname[L_locale - 1], locale); in main()
137 (void) strcat(pathname, MESSAGES); in main()
138 len = strlen(pathname); in main()
160 cp = pathname; in main()
179 if ((dirp = opendir(pathname)) == NULL) { in main()
181 cmdname, pathname, syserr()); in main()
188 if ((addr = attach(pathname, len, &fd, &size)) == -1) { in main()
190 "%s: ERROR: failed to access message file '%s'\n", cmdname, pathname); in main()
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dgetwd.c37 getwd(char *pathname) in getwd() argument
45 if ((c = getcwd(pathname, val)) == NULL) { in getwd()
47 (void) strcpy(pathname, in getwd()
50 (void) strcpy(pathname, "getwd: buffer too small"); in getwd()
52 (void) strcpy(pathname, "getwd: failure occurred"); in getwd()
/illumos-gate/usr/src/test/test-runner/cmd/
H A Drun173 self.pathname = pathname
359 def __init__(self, pathname,
425 if len(pretest.pathname):
437 if len(posttest.pathname):
531 if len(pretest.pathname):
548 if len(posttest.pathname):
591 test = Test(pathname)
669 pathname = sectiondir
853 def verify_file(pathname):
857 if os.path.isdir(pathname) or os.path.islink(pathname):
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_configfile.c48 char *pathname; member
548 user_rec->pathname = in usb_get_conf_rec()
660 } else if (user_rec->pathname) { in usb_cmp_rec()
661 if (cfg_rec->pathname) { in usb_cmp_rec()
675 user_rec->pathname, in usb_cmp_rec()
680 *(cfg_rec->pathname + in usb_cmp_rec()
681 strlen(cfg_rec->pathname) - 1)); in usb_cmp_rec()
716 free(rec->pathname); in usb_free_rec()
753 cfgrec.pathname = path; in add_entry()
836 if (user_rec->pathname) { in add_entry()
[all …]
/illumos-gate/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->pathname4_len = ncomp; in make_pathname4()
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_trans.c86 char *pathname; member
182 if (strcmp(pte->pathname, entry->pathname) == 0) { in insert_te()
254 if (pte->pathname) free(pte->pathname); in remove_te()
777 newte->pathname = in trans_create()
1040 free(pte->pathname); in trans_rename()
1411 newte->pathname = in trans_create3()
1476 newte->pathname = in trans_remove3()
1539 newte->pathname = in trans_mkdir3()
1585 newte->pathname = in trans_rmdir3()
1710 newte->pathname = in trans_mknod3()
[all …]
/illumos-gate/usr/src/cmd/swap/
H A Dswap.c103 char *pathname = NULL; in main() local
140 pathname = optarg; in main()
150 ret = delete(pathname, s_offset); in main()
173 pathname = optarg; in main()
257 if ((ret = valid(pathname, in main()
670 if (stat64(pathname, &f) < 0 || statvfs64(pathname, &fs) < 0) { in valid()
671 (void) perror(pathname); in valid()
681 pathname); in valid()
697 pathname); in valid()
704 pathname); in valid()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpathutil.c369 int _pu_path_is_dir(const char *pathname) in _pu_path_is_dir() argument
375 if(stat(pathname, &statbuf) < 0) in _pu_path_is_dir()
392 int _pu_path_is_file(const char *pathname) in _pu_path_is_file() argument
398 if(stat(pathname, &statbuf) < 0) in _pu_path_is_file()
415 int _pu_path_is_exe(const char *pathname) in _pu_path_is_exe() argument
421 if(stat(pathname, &statbuf) < 0) in _pu_path_is_exe()
428 access(pathname, X_OK) == 0; in _pu_path_is_exe()
533 int _pu_file_exists(const char *pathname) in _pu_file_exists() argument
536 return stat(pathname, &statbuf) == 0; in _pu_file_exists()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/abi/appcert/scripts/
H A Dabi_index.pl80 my $pathname = '';
90 $pathname = $';
110 next unless ($pathname =~ m,\.so,);
111 next unless ($pathname =~ m,/lib,);
112 next unless ($pathname =~ m,/lib[^/]*\.so\b,);
115 $pathname = trim($pathname);
117 filter($pathname, $link, $pkgs);
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusba_devdb.c203 cfgrec->pathname = in usba_devdb_get_conf_rec()
307 if (rec->pathname) { in usba_devdb_free_rec()
308 kobj_free_string(rec->pathname, strlen(rec->pathname) + 1); in usba_devdb_free_rec()
452 u1->pathname, u2->pathname)); in usba_devdb_compare()
458 u1->pathname, u2->pathname)); in usba_devdb_compare()
576 char *pathname) in usba_devdb_get_user_preferences() argument
592 req_rec->pathname = pathname; in usba_devdb_get_user_preferences()
605 req_rec->serialno = req_rec->pathname = NULL; in usba_devdb_get_user_preferences()
/illumos-gate/usr/src/lib/libresolv2/common/dst/
H A Dsupport.c304 char pathname[PATH_MAX]; in dst_s_fopen() local
306 if (strlen(filename) + strlen(dst_path) >= sizeof(pathname)) in dst_s_fopen()
310 strcpy(pathname, dst_path); in dst_s_fopen()
311 strcat(pathname, filename); in dst_s_fopen()
313 strcpy(pathname, filename); in dst_s_fopen()
315 fp = fopen(pathname, mode); in dst_s_fopen()
317 chmod(pathname, perm); in dst_s_fopen()

1234567891011