/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | rules.c | 64 static char area[PATH_MAX]; in Reverse() 78 static char area[PATH_MAX]; in Uppercase() 94 static char area[PATH_MAX]; in Lowercase() 110 static char area[PATH_MAX]; in Capitalise() 128 static char area[PATH_MAX]; in Pluralise() 131 (void) strlcpy(area, string, PATH_MAX); in Pluralise() 164 static char area[PATH_MAX]; in Substitute() 180 static char area[PATH_MAX]; in Purge() 316 static char area[PATH_MAX]; in PolySubst() 332 static char area[PATH_MAX]; in PolyPurge() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/common/frutree/ |
H A D | piclfrutree.c | 86 char pname[PATH_MAX]; in get_config_file() 89 (void) snprintf(pname, PATH_MAX, PICLD_PLAT_PLUGIN_DIRF, nmbuf); in get_config_file() 90 (void) strlcat(pname, FRUTREE_CONFFILE_NAME, PATH_MAX); in get_config_file() 92 (void) strlcpy(outfilename, pname, PATH_MAX); in get_config_file() 98 (void) snprintf(pname, PATH_MAX, PICLD_PLAT_PLUGIN_DIRF, nmbuf); in get_config_file() 99 (void) strlcat(pname, FRUTREE_CONFFILE_NAME, PATH_MAX); in get_config_file() 101 (void) strlcpy(outfilename, pname, PATH_MAX); in get_config_file() 106 (void) snprintf(pname, PATH_MAX, "%s/%s", PICLD_COMMON_PLUGIN_DIR, in get_config_file() 110 (void) strlcpy(outfilename, pname, PATH_MAX); in get_config_file() 120 char fullfilename[PATH_MAX]; in piclfrutree_init()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | realpath.c | 50 char cwd[PATH_MAX]; in realpath_impl() 63 if ((len = resolvepath(file_name, resolved_name, PATH_MAX)) < 0) { in realpath_impl() 64 (void) strlcpy(resolved_name, file_name, PATH_MAX); in realpath_impl() 68 if (len >= PATH_MAX) /* "can't happen" */ in realpath_impl() 69 len = PATH_MAX - 1; in realpath_impl() 82 (void) strlcpy(resolved_name, file_name, PATH_MAX); in realpath_impl() 108 if (endcwd + len >= cwd + PATH_MAX) { in realpath_impl() 110 file_name, PATH_MAX); in realpath_impl() 131 char buffer[PATH_MAX]; in realpath()
|
H A D | catopen.c | 93 char pathname[PATH_MAX + 1]; 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() 226 if (t < pathname + PATH_MAX) { in replace_nls_option() 237 while (*u && t < pathname + PATH_MAX) in replace_nls_option() 242 while (*u && 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() 262 while (*u && t < pathname + PATH_MAX) in replace_nls_option() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgproto/ |
H A D | main.c | 81 static char construction[PATH_MAX], mylocal[PATH_MAX]; 92 char *pt, path[PATH_MAX]; in main() 168 char mypath[PATH_MAX]; in output() 186 (void) strlcpy(entry.path, path, PATH_MAX); in output() 214 if ((s = readlink(path, mylocal, PATH_MAX)) > 0) { in output() 240 PATH_MAX); in output() 245 (void) strlcpy(entry.path, local, PATH_MAX); in output() 250 PATH_MAX); in output() 272 local[PATH_MAX], in follow() 273 newpath[PATH_MAX], in follow() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | merginfo.c | 138 char path[PATH_MAX]; in merginfo() 139 char cmd[PATH_MAX]; in merginfo() 140 char pkginfoPath[PATH_MAX]; in merginfo() 141 char temp[PATH_MAX]; in merginfo() 197 i = snprintf(path, PATH_MAX, "%s/%s", pkgloc, PKGINFO); in merginfo() 198 if (i > PATH_MAX) { in merginfo() 381 char theAttr[PATH_MAX+1]; in merginfo() 442 i = snprintf(path, PATH_MAX, "%s/install", instdir); in merginfo() 443 if (i > PATH_MAX) { in merginfo() 455 i = snprintf(path, PATH_MAX, "%s/install/%s", in merginfo() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_log.c | 102 static char buf[PATH_MAX]; in mk_pathname() 107 len = strnlen(path, PATH_MAX); in mk_pathname() 114 (void) snprintf(buf, PATH_MAX, fmt, path, name); in mk_pathname() 198 char oldfname[PATH_MAX]; in ndmp_log_open_file() 236 (void) strncpy(oldfname, fname, PATH_MAX); in ndmp_log_open_file() 285 char ndmp_log_buf[PATH_MAX+KILOBYTE]; in ndmp_log() 286 char ndmp_syslog_buf[PATH_MAX+KILOBYTE]; in ndmp_log() 287 char buf[PATH_MAX+KILOBYTE]; in ndmp_log() 303 (b < &buf[PATH_MAX+KILOBYTE])) { in ndmp_log() 315 (void) snprintf(b, &buf[PATH_MAX+KILOBYTE] - b, in ndmp_log() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_realpath.c | 86 char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX]; in s_realpath() 98 if (getcwd(resolved, PATH_MAX) == NULL) { in s_realpath() 99 (void) strlcpy(resolved, ".", PATH_MAX); in s_realpath() 105 if (left_len >= sizeof (left) || resolved_len >= PATH_MAX) { in s_realpath() 130 if (resolved_len + 1 >= PATH_MAX) { in s_realpath() 160 resolved_len = strlcat(resolved, next_token, PATH_MAX); in s_realpath() 161 if (resolved_len >= PATH_MAX) { in s_realpath()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathcd.c | 35 #undef PATH_MAX 37 #define PATH_MAX 16 macro 44 if (strlen(path) >= PATH_MAX) in vchdir() 86 if ((n = strlen(p)) < PATH_MAX) in pathcd() 107 s = p + PATH_MAX; in pathcd() 124 if ((n -= s - p) < PATH_MAX) in pathcd()
|
H A D | pathprobe.c | 54 return pathprobe_20100601(lang, tool, proc, op, path, PATH_MAX, attr, PATH_MAX); in pathprobe() 117 char buf[PATH_MAX]; in pathprobe_20100601() 118 char cmd[PATH_MAX]; in pathprobe_20100601() 119 char exe[PATH_MAX]; in pathprobe_20100601() 120 char lib[PATH_MAX]; in pathprobe_20100601() 121 char ver[PATH_MAX]; in pathprobe_20100601() 141 strncopy(proc + n, p, PATH_MAX - n - 1); in pathprobe_20100601() 167 if (n < (PATH_MAX - 5)) in pathprobe_20100601() 175 nx = path + PATH_MAX - 1; in pathprobe_20100601() 212 p = path + sfsprintf(path, PATH_MAX - 1, "%s/.%s/%s/", p, probe, HOSTTYPE); in pathprobe_20100601()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | proc_get_info.c | 58 char fname[PATH_MAX]; in proc_get_cred() 77 char fname[PATH_MAX]; in proc_get_secflags() 107 char fname[PATH_MAX]; in proc_get_priv() 136 char fname[PATH_MAX]; in proc_get_ldt() 169 char fname[PATH_MAX]; in proc_get_psinfo() 186 char fname[PATH_MAX]; in proc_get_status() 209 char fname[PATH_MAX]; in proc_get_auxv() 226 char fname[PATH_MAX]; in proc_get_lwpsinfo() 243 char fname[PATH_MAX]; in proc_get_lwpstatus() 261 char fname[PATH_MAX]; in proc_get_cwd()
|
H A D | Pexecname.c | 60 (void) snprintf(buf, PATH_MAX, "%s/%s", cwd, path); in try_exec() 66 (void) Pfindobj(P, buf, buf, PATH_MAX); in try_exec() 67 if ((i = resolvepath(buf, buf, PATH_MAX)) > 0) { in try_exec() 86 char cwd[PATH_MAX * 2]; in Pfindexec() 87 char path[PATH_MAX]; in Pfindexec() 88 char buf[PATH_MAX]; in Pfindexec() 132 char zpath[PATH_MAX]; in Pfindexec()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | findlib.h | 69 char path[PATH_MAX]; 70 char temp[PATH_MAX]; 84 char path[PATH_MAX]; 85 char mark[PATH_MAX]; 86 char file[PATH_MAX]; 87 char temp[PATH_MAX];
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | db.c | 47 char Current_Library[PATH_MAX]; 48 char Current_File[PATH_MAX]; 49 char Output_File[PATH_MAX]; 50 char Current_Interface[PATH_MAX]; 51 char Source_Directory[PATH_MAX]; 52 char Target_Directory[PATH_MAX]; 55 char Library_List[PATH_MAX]; 58 char Kludge[PATH_MAX];
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | lddstub.c | 41 if (strlcat(buffer, orgfile, PATH_MAX) >= PATH_MAX) in originlddstub() 43 if ((len = resolvepath(buffer, buffer, (PATH_MAX - 1))) == -1) in originlddstub() 52 static char orgstub[PATH_MAX], orgstub64[PATH_MAX];
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | pwd.c | 59 unsigned char cwdname[PATH_MAX+1]; 145 if (pcwd >= &cwdname[PATH_MAX+1]) { in cwd() 151 if (pcwd >= &cwdname[PATH_MAX+1]) { in cwd() 158 if (pcwd >= &cwdname[PATH_MAX+1]) { in cwd() 165 if (pcwd >= &cwdname[PATH_MAX+1]) { in cwd() 228 if (getcwd((char *)cwdname, PATH_MAX+1) == NULL) in cwdget() 246 if (getcwd((char *)cwdname, PATH_MAX+1) == NULL) { in cwdprint()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | dcam1394_link.c | 98 char m_name[PATH_MAX], restring0[DCAM_RE_STRING_LEN]; in dcam1394_process() 99 char l_path[PATH_MAX], p_path[PATH_MAX], *buf, *devfspath; in dcam1394_process() 145 (void) snprintf(l_path, PATH_MAX, "dcamctl%s", buf); in dcam1394_process() 147 (void) snprintf(l_path, PATH_MAX, "dcam%s", buf); in dcam1394_process()
|
H A D | misc_link.c | 277 char l_path[PATH_MAX + 1], contents[PATH_MAX + 1], *buf; in display() 305 char path[PATH_MAX + 1], *buf; in parallel() 335 char l_path[PATH_MAX]; in ses_callback() 338 char p_path[PATH_MAX]; in ses_callback() 371 char path[PATH_MAX + 1]; in node_slash_minor() 383 char path[PATH_MAX + 1]; in driver_minor() 464 char *buf, path[PATH_MAX + 1]; in fc_port() 498 char path[PATH_MAX + 1], *buf; in printer_create() 535 char *buf, path[PATH_MAX + 1]; in se_hdlc_create() 572 char l_path[PATH_MAX], p_path[PATH_MAX], *buf, *devfspath; in gpio() [all …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | pkgparam.c | 61 static char Adm_pkgloc[PATH_MAX] = { 0 }; /* added for newroot */ 62 static char Adm_pkgadm[PATH_MAX] = { 0 }; /* added for newroot */ 84 len = snprintf(path, PATH_MAX, "%s/.save.%s/pkginfo", pkg_dir, in pkginfofind() 86 if (len > PATH_MAX) in pkginfofind() 93 len = snprintf(path, PATH_MAX, "%s/%s/pkginfo", pkg_dir, in pkginfofind() 95 if (len > PATH_MAX) in pkginfofind() 111 char temp[PATH_MAX]; in pkginfopen() 320 static char lastfname[PATH_MAX]; in pkgparam() 322 char *pt, *copy, *value, line[PATH_MAX]; in pkgparam()
|
/illumos-gate/usr/src/cmd/bart/ |
H A D | compare.c | 106 test_buf[BUF_SIZE], control_fname[PATH_MAX], in compare_manifests() 107 control_type[TYPE_SIZE], test_fname[PATH_MAX], in compare_manifests() 237 get_token(line, &pos, line_len, fname, PATH_MAX); in parse_line() 254 get_token(line, &pos, line_len, contents, PATH_MAX); in parse_line() 256 get_token(line, &pos, line_len, devnode, PATH_MAX); in parse_line() 258 get_token(line, &pos, line_len, dest, PATH_MAX); in parse_line() 289 get_token(line, &pos, line_len, fname, PATH_MAX); in extract_fname_ftype() 342 char ctrl_fname[PATH_MAX], test_fname[PATH_MAX], in evaluate_differences() 347 ctrl_dest[PATH_MAX], ctrl_contents[PATH_MAX], in evaluate_differences() 348 ctrl_devnode[PATH_MAX], test_size[MISC_SIZE], in evaluate_differences() [all …]
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 231 char tmp_path_name[PATH_MAX]; in check_and_unmount_vold() 272 (void) snprintf(tmp_path_name, PATH_MAX, "%s%s", "/vol/dev/", in check_and_unmount_vold() 275 (void) snprintf(tmp_path_name, PATH_MAX, "%s", real_name); in check_and_unmount_vold() 348 char block_dev_name[PATH_MAX]; in check_and_unmount_scsi() 349 char tmp_name[PATH_MAX]; in check_and_unmount_scsi() 361 (void) snprintf(block_dev_name, PATH_MAX, "/dev/%s", in check_and_unmount_scsi() 387 (void) snprintf(tmp_name, PATH_MAX, "/dev/%s", in check_and_unmount_scsi() 406 (void) snprintf(block_dev_name, PATH_MAX, in check_and_unmount_scsi() 427 (void) snprintf(block_dev_name, PATH_MAX, in check_and_unmount_scsi() 446 (void) snprintf(block_dev_name, PATH_MAX, in check_and_unmount_scsi() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | srcpath.c | 43 static char tmppath[PATH_MAX]; in srcpath() 87 static char pi_srcPath[PATH_MAX]; in trans_srcp_pi() 125 (void) snprintf(pi_srcPath, PATH_MAX, "/%s", in trans_srcp_pi() 131 (void) snprintf(pi_srcPath, PATH_MAX, "%s/%s", in trans_srcp_pi()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/taco/envd/ |
H A D | piclenvsetup.c | 592 char pname[PATH_MAX]; in env_parse_tunables() 595 (void) snprintf(pname, PATH_MAX, PICLD_PLAT_PLUGIN_DIRF, nmbuf); in env_parse_tunables() 596 (void) strlcat(pname, TUNABLE_CONF_FILE, PATH_MAX); in env_parse_tunables() 667 char pname[PATH_MAX]; in get_envmodel_conf_file() 670 (void) snprintf(pname, PATH_MAX, PICLD_PLAT_PLUGIN_DIRF, nmbuf); in get_envmodel_conf_file() 671 (void) strlcat(pname, ENV_CONF_FILE, PATH_MAX); in get_envmodel_conf_file() 673 (void) strlcpy(outfilename, pname, PATH_MAX); in get_envmodel_conf_file() 679 (void) snprintf(pname, PATH_MAX, PICLD_PLAT_PLUGIN_DIRF, nmbuf); in get_envmodel_conf_file() 680 (void) strlcat(pname, ENV_CONF_FILE, PATH_MAX); in get_envmodel_conf_file() 682 (void) strlcpy(outfilename, pname, PATH_MAX); in get_envmodel_conf_file() [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 346 char _name[PATH_MAX]; in expand() 357 while ((olen < *len) && (nlen < PATH_MAX)) { in expand() 381 if ((nlen += _len) < PATH_MAX) { in expand() 414 if ((nlen += _len) < PATH_MAX) { in expand() 451 if (nlen < PATH_MAX) { in expand() 488 if (nlen < PATH_MAX) { in expand() 516 if ((nlen += uts->uts_osnamesz) < PATH_MAX) { in expand() 544 if ((nlen += uts->uts_osrelsz) < PATH_MAX) { in expand() 585 if ((nlen += opt->isa_namesz) < PATH_MAX) { in expand() 703 char buf[PATH_MAX], *str; in expand() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | mkpkgmap.c | 365 static char host[PATH_MAX]; in findfile() 367 char temp[PATH_MAX], *basename; in findfile() 449 char temp[PATH_MAX], lookpath[PATH_MAX], *pt; in dosearch() 452 (void) fgets(temp, PATH_MAX, fp); in dosearch() 478 char temp[PATH_MAX], lookpath[PATH_MAX], *pt; in dorsearch() 481 (void) fgets(temp, PATH_MAX, fp); in dorsearch() 509 char *pt, attrib[PATH_MAX], *mode_ptr, *owner_ptr, *group_ptr, *eol; in doattrib() 513 (void) fgets(attrib, PATH_MAX, fp); in doattrib() 588 char file[PATH_MAX]; in doinclude() 589 char temp[PATH_MAX]; in doinclude() [all …]
|