Home
last modified time | relevance | path

Searched refs:MAXPATHLEN (Results 1 – 25 of 988) sorted by relevance

12345678910>>...40

/titanic_50/usr/src/cmd/tsol/updatehome/
H A Dsetupfiles.c92 char home[MAXPATHLEN]; /* real path to current $HOME */ in __setupfiles()
93 char min_home[MAXPATHLEN]; /* real path to min $HOME */ in __setupfiles()
94 char cl_file[MAXPATHLEN]; /* real path to .copy/.link_files */ in __setupfiles()
95 char file[MAXPATHLEN]; /* file to copy/link */ in __setupfiles()
97 char zoneroot[MAXPATHLEN]; in __setupfiles()
116 (void) strlcpy(home, pwd->pw_dir, MAXPATHLEN); in __setupfiles()
146 (void) snprintf(min_home, MAXPATHLEN, "%s%s", in __setupfiles()
151 if ((strlen(min_home) + strlen(COPY)) > (MAXPATHLEN - 1)) { in __setupfiles()
155 dprintf("greater than %d\n", MAXPATHLEN); in __setupfiles()
166 while (fgets(file, MAXPATHLEN, clf) != NULL) { in __setupfiles()
[all …]
/titanic_50/usr/src/cmd/svr4pkg/pkgadm/
H A Dlistcert.c56 char keystore_file[MAXPATHLEN] = ""; in listcert()
139 if (strlcpy(keystore_file, altroot, MAXPATHLEN) >= MAXPATHLEN) { in listcert()
144 if (strlcat(keystore_file, "/", MAXPATHLEN) >= MAXPATHLEN) { in listcert()
160 MAXPATHLEN) >= MAXPATHLEN) { in listcert()
172 MAXPATHLEN) >= MAXPATHLEN) { in listcert()
179 MAXPATHLEN) >= MAXPATHLEN) { in listcert()
185 MAXPATHLEN) >= MAXPATHLEN) { in listcert()
194 MAXPATHLEN) >= MAXPATHLEN) { in listcert()
H A Dremovecert.c56 char keystore_file[MAXPATHLEN] = ""; in removecert()
117 MAXPATHLEN) >= MAXPATHLEN) { in removecert()
129 MAXPATHLEN) >= MAXPATHLEN) { in removecert()
136 MAXPATHLEN) >= MAXPATHLEN) { in removecert()
142 MAXPATHLEN) >= MAXPATHLEN) { in removecert()
151 MAXPATHLEN) >= MAXPATHLEN) { in removecert()
H A Daddcert.c67 char keystore_file[MAXPATHLEN] = ""; in addcert()
186 if (strlcpy(keystore_file, altroot, MAXPATHLEN) >= MAXPATHLEN) { in addcert()
191 if (strlcat(keystore_file, "/", MAXPATHLEN) >= MAXPATHLEN) { in addcert()
207 MAXPATHLEN) >= MAXPATHLEN) { in addcert()
219 MAXPATHLEN) >= MAXPATHLEN) { in addcert()
226 MAXPATHLEN) >= MAXPATHLEN) { in addcert()
232 MAXPATHLEN) >= MAXPATHLEN) { in addcert()
241 MAXPATHLEN) >= MAXPATHLEN) { in addcert()
/titanic_50/usr/src/cmd/make/lib/vroot/
H A Dreport.cc44 static char sfile[MAXPATHLEN];
94 char line[MAXPATHLEN+2]; in close_file()
95 char buf[MAXPATHLEN+2]; in close_file()
98 char nse_depinfo_file[MAXPATHLEN]; in close_file()
99 char merge_file[MAXPATHLEN]; in close_file()
100 char lock_file[MAXPATHLEN]; in close_file()
134 while (fgets(line, MAXPATHLEN+2, command_output_fp) in close_file()
156 while (fgets(line, MAXPATHLEN+2, nse_depinfo_fp) != NULL) { in close_file()
158 while (fgets(buf, MAXPATHLEN+2, command_output_fp) in close_file()
172 while (fgets(line, MAXPATHLEN, nse_depinfo_fp) in close_file()
[all …]
H A Dvroot.cc46 char full_path[MAXPATHLEN+1];
199 if(flen >= MAXPATHLEN) { in translate_with_thunk()
214 if((1 + flen + vp->length) >= MAXPATHLEN) { in translate_with_thunk()
233 if((1 + flen + pp1->length) >= MAXPATHLEN) { in translate_with_thunk()
266 if(vp->length >= MAXPATHLEN) { in translate_with_thunk()
275 if(1 + len + pp->length >= MAXPATHLEN) { in translate_with_thunk()
286 if(1 + len + pp->length >= MAXPATHLEN) { in translate_with_thunk()
306 if(vp->length >= MAXPATHLEN) { in translate_with_thunk()
315 if(1 + len + pp->length >= MAXPATHLEN) { in translate_with_thunk()
325 if(1 + len + pp->length >= MAXPATHLEN) { in translate_with_thunk()
/titanic_50/usr/src/tools/findunref/
H A Dfindunref.c60 char metapath[MAXPATHLEN];
61 char root[MAXPATHLEN];
109 char path[MAXPATHLEN]; in main()
110 char subtree[MAXPATHLEN] = "./"; in main()
127 (void) strlcat(subtree, optarg, MAXPATHLEN); in main()
163 (void) strlcpy(path, tstampfile, MAXPATHLEN); in main()
165 (void) snprintf(path, MAXPATHLEN, "%s/%s", argv[0], tstampfile); in main()
201 char path[MAXPATHLEN]; in hg_manifest()
243 char path[MAXPATHLEN]; in git_manifest()
282 char scmpath[MAXPATHLEN]; in chdir_scmdata()
[all …]
/titanic_50/usr/src/lib/libdevinfo/
H A Ddevfsmap.c818 char buf[MAXPATHLEN]; in lookup_in_conf_file()
823 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, conf_file); in lookup_in_conf_file()
993 char physdev1[MAXPATHLEN]; in compare_controller()
994 char buf[MAXPATHLEN]; in compare_controller()
1001 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, dev1); in compare_controller()
1002 if ((linksize = readlink(buf, physdev1, MAXPATHLEN)) > 0 && in compare_controller()
1003 linksize < (MAXPATHLEN - 1)) { in compare_controller()
1010 (void) strlcpy(physdev1, dev1, MAXPATHLEN); in compare_controller()
1054 char buf[MAXPATHLEN]; in is_root_controller()
1060 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, VFSTAB); in is_root_controller()
[all …]
/titanic_50/usr/src/uts/common/os/
H A Ddacf_clnt.c94 dev_path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_match_create_minor()
103 drv_mname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_match_create_minor()
104 (void) snprintf(drv_mname, MAXPATHLEN, "%s:%s", drv_name, name); in dacfc_match_create_minor()
129 kmem_free(dev_path, MAXPATHLEN); in dacfc_match_create_minor()
131 kmem_free(drv_mname, MAXPATHLEN); in dacfc_match_create_minor()
201 kmem_free(dev_path, MAXPATHLEN); in dacfc_match_create_minor()
203 kmem_free(drv_mname, MAXPATHLEN); in dacfc_match_create_minor()
248 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_postattach()
253 kmem_free(path, MAXPATHLEN); in dacfc_postattach()
302 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_predetach()
[all …]
/titanic_50/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Drealpath.c66 char *p, *q, wbuf[MAXPATHLEN], start[MAXPATHLEN]; in realpath()
70 getcwd(start,MAXPATHLEN); in realpath()
72 (void)strlcpy(resolved, ".", MAXPATHLEN); in realpath()
89 strlcpy(resolved, path, MAXPATHLEN); in realpath()
115 n = readlink(p, resolved, MAXPATHLEN-1); in realpath()
133 if (getcwd(resolved, MAXPATHLEN) == 0) in realpath()
146 if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) { in realpath()
/titanic_50/usr/src/lib/libtsol/common/
H A Dgetpathbylabel.c266 char mntopts[MAXPATHLEN]; in getnfspathbyautofs()
274 (void) strncpy(mntopts, mnt->mnt_mntopts, MAXPATHLEN); in getnfspathbyautofs()
304 char p[MAXPATHLEN]; in getnfspathbyautofs()
323 (void) strncpy(p, globalpath + zp_len, MAXPATHLEN); in getnfspathbyautofs()
332 (void) strncpy(p, globalpath, MAXPATHLEN); in getnfspathbyautofs()
357 char lofspath[MAXPATHLEN]; in getglobalpath()
358 char zonepath[MAXPATHLEN]; in getglobalpath()
368 (void) strncpy(zonepath, prefix, MAXPATHLEN); in getglobalpath()
369 (void) strlcpy(globalpath, prefix, MAXPATHLEN); in getglobalpath()
370 (void) strlcat(globalpath, path, MAXPATHLEN); in getglobalpath()
[all …]
/titanic_50/usr/src/uts/sparc/os/
H A Dbootdev.c84 (strlen(prom_name) >= MAXPATHLEN)) { in i_promname_to_devname()
224 (strlen(dev_name) > MAXPATHLEN)) { in i_devname_to_promname()
232 dev_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in i_devname_to_promname()
235 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname()
245 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname()
257 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname()
261 prom_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in i_devname_to_promname()
290 bzero(prom_path, MAXPATHLEN); in i_devname_to_promname()
382 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname()
383 kmem_free(prom_path, MAXPATHLEN); in i_devname_to_promname()
[all …]
/titanic_50/usr/src/uts/common/syscall/
H A Drctlsys.c242 kname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in rctlsys_get()
245 if (copyinstr(name, kname, MAXPATHLEN, &klen) != 0) { in rctlsys_get()
246 kmem_free(kname, MAXPATHLEN); in rctlsys_get()
252 kmem_free(kname, MAXPATHLEN); in rctlsys_get()
258 kmem_free(kname, MAXPATHLEN); in rctlsys_get()
263 kmem_free(kname, MAXPATHLEN); in rctlsys_get()
415 kname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in rctlsys_set()
416 if (copyinstr(name, kname, MAXPATHLEN, &klen) != 0) { in rctlsys_set()
417 kmem_free(kname, MAXPATHLEN); in rctlsys_set()
422 kmem_free(kname, MAXPATHLEN); in rctlsys_set()
[all …]
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c50 #define MAXPATHLEN 1024 macro
157 static char keystore_path[MAXPATHLEN];
182 (void) snprintf(keystore_path, MAXPATHLEN, "%s/%s", in get_keystore_path()
187 (void) snprintf(keystore_path, MAXPATHLEN, "%s/%s/%s", in get_keystore_path()
198 (void) snprintf(name, MAXPATHLEN, "%s/%s", in get_pub_obj_path()
207 (void) snprintf(name, MAXPATHLEN, "%s/%s", in get_pri_obj_path()
216 (void) snprintf(name, MAXPATHLEN, "%s/%s", in get_desc_file_path()
225 (void) snprintf(name, MAXPATHLEN, "%s/%s", in get_tmp_desc_file_path()
312 char pub_obj_path[MAXPATHLEN], pri_obj_path[MAXPATHLEN], in create_keystore()
313 ks_desc_file[MAXPATHLEN]; in create_keystore()
[all …]
/titanic_50/usr/src/cmd/rexd/
H A Dwhere.c78 char curdir[MAXPATHLEN];
79 char qualpn[MAXPATHLEN];
99 if (getcwd(curdir, MAXPATHLEN) == NULL) {
105 getcwd(qualpn, MAXPATHLEN);
111 (void) getcwd(qualpn, MAXPATHLEN);
143 char bestname[MAXPATHLEN];
209 strncpy(fsname, endhost, MAXPATHLEN);
236 strncpy(within, qualpn + bestlen, MAXPATHLEN);
/titanic_50/usr/src/uts/common/fs/dev/
H A Dsdev_vtops.c118 char *link = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in devvt_validate()
119 (void) vt_getactive(link, MAXPATHLEN); in devvt_validate()
122 kmem_free(link, MAXPATHLEN); in devvt_validate()
127 char *link = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in devvt_validate()
128 (void) vt_getconsuser(link, MAXPATHLEN); in devvt_validate()
131 kmem_free(link, MAXPATHLEN); in devvt_validate()
162 (void) vt_getactive((char *)*arg, MAXPATHLEN); in devvt_create_rvp()
167 (void) vt_getconsuser((char *)*arg, MAXPATHLEN); in devvt_create_rvp()
264 char *link = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in devvt_create_snode()
266 (void) vt_getactive(link, MAXPATHLEN); in devvt_create_snode()
[all …]
/titanic_50/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c449 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args()
466 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args()
476 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args()
486 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args()
543 char checkctrl[MAXPATHLEN]; in list_devs()
567 bzero(checkctrl, MAXPATHLEN); in list_devs()
1059 if ((curpath = calloc(1, MAXPATHLEN)) == NULL) { in popcheck_devnvl()
1120 aliases = calloc(1, MAXPATHLEN + 1); in print_mpx_capable()
1144 MAXPATHLEN + 1, "%s|%s", in print_mpx_capable()
1190 if (((cbresult = calloc(1, MAXPATHLEN)) == NULL) || in find_link()
[all …]
/titanic_50/usr/src/cmd/cmd-crypto/kmfcfg/
H A Dinstall.c52 char realpath[MAXPATHLEN]; in kc_install()
56 char tmpfile_name[MAXPATHLEN]; in kc_install()
151 (void) snprintf(realpath, MAXPATHLEN, "%s%s", in kc_install()
160 (void) strlcat(realpath, isa, MAXPATHLEN); in kc_install()
162 (void) strlcpy(realpath, modulepath, MAXPATHLEN); in kc_install()
258 char buf[MAXPATHLEN]; in kc_install()
264 (void) snprintf(buf, MAXPATHLEN, "%s:%s%s\n", in kc_install()
267 (void) snprintf(buf, MAXPATHLEN, "%s:%s%s;%s%s\n", in kc_install()
/titanic_50/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c104 char dataset[MAXPATHLEN]; in smbd_vss_get_count()
112 if (smb_getdataset(path, dataset, MAXPATHLEN) != 0) in smbd_vss_get_count()
148 char dataset[MAXPATHLEN]; in smbd_vss_get_snapshots()
170 if (smb_getdataset(path, dataset, MAXPATHLEN) != 0) { in smbd_vss_get_snapshots()
236 char dataset[MAXPATHLEN]; in smbd_vss_map_gmttoken()
253 if (smb_getdataset(path, dataset, MAXPATHLEN) != 0) in smbd_vss_map_gmttoken()
278 (void) strlcpy(snapname, zsnap, MAXPATHLEN); in smbd_vss_map_gmttoken()
368 MAXPATHLEN); in smbd_vss_iterate_map_gmttoken()
/titanic_50/usr/src/uts/common/fs/smbsrv/
H A Dsmb_nt_transact_quota.c133 request.qq_root_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in smb_nt_transact_query_quota()
134 if (smb_node_getmntpath(tnode, request.qq_root_path, MAXPATHLEN) != 0) { in smb_nt_transact_query_quota()
138 kmem_free(request.qq_root_path, MAXPATHLEN); in smb_nt_transact_query_quota()
171 kmem_free(request.qq_root_path, MAXPATHLEN); in smb_nt_transact_query_quota()
269 root_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in smb_nt_transact_set_quota()
270 if (smb_node_getmntpath(tnode, root_path, MAXPATHLEN) != 0) { in smb_nt_transact_set_quota()
274 kmem_free(root_path, MAXPATHLEN); in smb_nt_transact_set_quota()
293 kmem_free(root_path, MAXPATHLEN); in smb_nt_transact_set_quota()
H A Dsmb_vss.c91 root_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in smb_vss_enum_snapshots()
92 if (smb_node_getmntpath(tnode, root_path, MAXPATHLEN) != 0) in smb_vss_enum_snapshots()
113 kmem_free(root_path, MAXPATHLEN); in smb_vss_enum_snapshots()
182 path = smb_srm_alloc(sr, MAXPATHLEN); in smb_vss_lookup_nodes()
183 snapname = smb_srm_alloc(sr, MAXPATHLEN); in smb_vss_lookup_nodes()
185 err = smb_node_getmntpath(tnode, path, MAXPATHLEN); in smb_vss_lookup_nodes()
240 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in smb_vss_lookup_node()
241 (void) snprintf(path, MAXPATHLEN, ".zfs/snapshot/%s/", snapname); in smb_vss_lookup_node()
245 err = smb_node_getpath(node, fsrootvp, p, MAXPATHLEN - len); in smb_vss_lookup_node()
255 kmem_free(path, MAXPATHLEN); in smb_vss_lookup_node()
H A Dsmb2_setinfo_quota.c62 root_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in smb2_setinfo_quota()
63 if (smb_node_getmntpath(tnode, root_path, MAXPATHLEN) != 0) { in smb2_setinfo_quota()
65 kmem_free(root_path, MAXPATHLEN); in smb2_setinfo_quota()
84 kmem_free(root_path, MAXPATHLEN); in smb2_setinfo_quota()
/titanic_50/usr/src/lib/pam_modules/timestamp/
H A Dpam_timestamp.c84 (void) strlcpy(user_tty, ttyn, MAXPATHLEN); in validate_basic()
95 (void) snprintf(timestampfile, MAXPATHLEN, "%s/%s/%s:%s", TIMESTAMP_DIR, in validate_basic()
193 char user_tty[MAXPATHLEN]; in pam_sm_authenticate()
194 char timestampdir[MAXPATHLEN]; in pam_sm_authenticate()
195 char timestampfile[MAXPATHLEN]; in pam_sm_authenticate()
219 (void) strlcpy(timestampdir, timestampfile, MAXPATHLEN); in pam_sm_authenticate()
340 char user_tty[MAXPATHLEN]; in pam_sm_setcred()
341 char timestampdir[MAXPATHLEN]; in pam_sm_setcred()
342 char timestampfile[MAXPATHLEN]; in pam_sm_setcred()
376 (void) strlcpy(timestampdir, timestampfile, MAXPATHLEN); in pam_sm_setcred()
/titanic_50/usr/src/uts/common/smbsrv/
H A Dsmb_share.h190 char shr_path[MAXPATHLEN];
192 char shr_container[MAXPATHLEN];
199 char shr_access_none[MAXPATHLEN];
200 char shr_access_ro[MAXPATHLEN];
201 char shr_access_rw[MAXPATHLEN];
/titanic_50/usr/src/lib/librcm/
H A Dlibrcm.c57 char namebuf[MAXPATHLEN]; in rcm_alloc_handle()
74 (void) snprintf(namebuf, MAXPATHLEN, "%s%s", modname, in rcm_alloc_handle()
804 static char dir_name[N_MODULE_DIR + N_SCRIPT_DIR][MAXPATHLEN]; in rcm_dir()
806 char infobuf[MAXPATHLEN]; in rcm_dir()
815 if (sysinfo(SI_PLATFORM, infobuf, MAXPATHLEN) == -1) { in rcm_dir()
819 if (snprintf(dir_name[0], MAXPATHLEN, MODULE_DIR_HW, in rcm_dir()
820 infobuf) >= MAXPATHLEN || in rcm_dir()
821 snprintf(dir_name[N_MODULE_DIR + 1], MAXPATHLEN, in rcm_dir()
822 SCRIPT_DIR_HW, infobuf) >= MAXPATHLEN) { in rcm_dir()
830 if (sysinfo(SI_MACHINE, infobuf, MAXPATHLEN) == -1) { in rcm_dir()
[all …]

12345678910>>...40