/titanic_41/usr/src/cmd/rm/ |
H A D | rm.c | 80 static char *pathbuf; variable 149 pathbuf = malloc(pathbuflen); in main() 150 if (pathbuf == NULL) in main() 186 p = pathbuf; in pushfilename() 188 p = pathbuf + cur->up->pathend; in pushfilename() 192 if (p - pathbuf + 2 >= pathbuflen) { in pushfilename() 195 np = realloc(pathbuf, pathbuflen); in pushfilename() 198 p = np + (p - pathbuf); in pushfilename() 199 pathbuf = np; in pushfilename() 204 cur->pathend = p - pathbuf; in pushfilename() [all …]
|
/titanic_41/usr/src/cmd/pfexec/ |
H A D | pfexec.c | 99 char pathbuf[MAXPATHLEN]; in main() local 126 if (shellname(getexecname(), pathbuf) == RES_OK) in main() 127 (void) execv(pathbuf, argv); in main() 129 switch (shellname(cmd, pathbuf)) { in main() 131 (void) execv(pathbuf, argv); in main() 134 pathbuf, strerror(errno)); in main()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | dump.c | 97 char *pathbuf = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in dump_ioctl() local 164 (void) strcpy(pathbuf, dumppath); in dump_ioctl() 166 error = copyoutstr(pathbuf, (void *)arg, MAXPATHLEN, NULL); in dump_ioctl() 171 if ((error = copyinstr((char *)arg, pathbuf, MAXPATHLEN, in dump_ioctl() 172 NULL)) != 0 || (error = lookupname(pathbuf, UIO_SYSSPACE, in dump_ioctl() 177 error = dumpinit(vp, pathbuf, cmd == DIOCTRYDEV); in dump_ioctl() 223 kmem_free(pathbuf, MAXPATHLEN); in dump_ioctl()
|
H A D | tem.c | 388 char *pathbuf; in tem_info_init() local 404 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in tem_info_init() 405 (void) strcpy(pathbuf, "/devices"); in tem_info_init() 407 pathbuf + strlen("/devices")) != DDI_SUCCESS) { in tem_info_init() 409 kmem_free(pathbuf, MAXPATHLEN); in tem_info_init() 414 if (ldi_open_by_name(pathbuf, FWRITE, credp, in tem_info_init() 417 kmem_free(pathbuf, MAXPATHLEN); in tem_info_init() 422 kmem_free(pathbuf, MAXPATHLEN); in tem_info_init()
|
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | glob.c | 521 Char pathbuf[MAXPATHLEN]; local 526 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1, 527 pathbuf, pathbuf+MAXPATHLEN-1, 537 glob2(pathbuf, pathbuf_last, pathend, pathend_last, pattern, in glob2() argument 539 Char *pathbuf, *pathbuf_last, *pathend, *pathend_last; in glob2() 555 if (g_lstat(pathbuf, &sb, pglob)) 569 (g_stat(pathbuf, &sb, pglob) == 0) && 577 return(globextend(pathbuf, pglob, limit)); 601 return(glob3(pathbuf, pathbuf_last, pathend, 609 glob3(pathbuf, pathbuf_last, pathend, pathend_last, pattern, pattern_last, in glob3() argument [all …]
|
/titanic_41/usr/src/cmd/loadkeys/ |
H A D | loadkeys.y | 140 static FILE *open_mapping_file(char *pathbuf, char *name, 153 char pathbuf[MAXPATHLEN]; local 213 infile = open_mapping_file(pathbuf, infilename, explicit_name, type); 216 infilename = pathbuf; 337 char *pathbuf, in open_mapping_file() argument 344 strcpy(pathbuf, name); in open_mapping_file() 345 infile = fopen(pathbuf, "r"); in open_mapping_file() 354 sprintf(pathbuf, keytable_dir, type); in open_mapping_file() 355 if ((int)(strlen(pathbuf) + strlen(name) + 1) >= MAXPATHLEN) { in open_mapping_file() 360 (void) strcat(pathbuf, name); in open_mapping_file() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | sunpm.c | 908 char *pathbuf; in dev_is_needed() local 923 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dev_is_needed() 924 (void) ddi_pathname(dip, pathbuf); in dev_is_needed() 926 pathbuf); in dev_is_needed() 927 kmem_free(pathbuf, MAXPATHLEN); in dev_is_needed() 1470 char *pathbuf; in pm_clear_volpm_list() 1474 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in pm_clear_volpm_list() 1475 (void) ddi_pathname(dip, pathbuf); in pm_clear_volpm_list() 1476 len = strlen(pathbuf); in pm_clear_volpm_list() 1477 PMD(PMD_NOINVOL, ("%s: clear volpm list %s\n", pmf, pathbuf)) in pm_clear_volpm_list() [all …]
|
H A D | modctl.c | 974 char *pathbuf; in modctl_retire() local 987 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in modctl_retire() 988 retval = copyinstr(path, pathbuf, MAXPATHLEN, &pathsz); in modctl_retire() 990 kmem_free(pathbuf, MAXPATHLEN); in modctl_retire() 993 devpath = i_ddi_strdup(pathbuf, KM_SLEEP); in modctl_retire() 994 kmem_free(pathbuf, MAXPATHLEN); in modctl_retire() 1057 char *pathbuf; in modctl_is_retired() local 1066 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in modctl_is_retired() 1067 error = copyinstr(path, pathbuf, MAXPATHLEN, &pathsz); in modctl_is_retired() 1069 kmem_free(pathbuf, MAXPATHLEN); in modctl_is_retired() [all …]
|
/titanic_41/usr/src/lib/libpp/common/ |
H A D | ppdata.c | 64 static char pathbuf[MAXTOKEN+1]; /* full path of last #include */ variable 170 &pathbuf[0], /* path */
|
/titanic_41/usr/src/cmd/sendmail/aux/ |
H A D | smrsh.c | 153 char pathbuf[1000]; local 165 (void) sm_strlcpyn(pathbuf, sizeof pathbuf, 2, "PATH=", PATH); 166 newenv[0] = pathbuf;
|
/titanic_41/usr/src/lib/libc/port/regex/ |
H A D | glob.c | 733 wcat_t pathbuf[MAXPATHLEN]; in glob1() local 738 return (glob2(pathbuf, pathbuf+MAXPATHLEN-1, in glob1() 739 pathbuf, pathbuf+MAXPATHLEN-1, in glob1() 749 glob2(wcat_t *pathbuf, wcat_t *pathbuf_last, wcat_t *pathend, in glob2() argument 775 if (g_lstat(pathbuf, &sb, pglob)) in glob2() 783 (g_stat(pathbuf, &sb, pglob) == 0) && in glob2() 793 return (globextend(pathbuf, pglob, limitp, &sb)); in glob2() 817 return (glob3(pathbuf, pathbuf_last, pathend, in glob2() 826 glob3(wcat_t *pathbuf, wcat_t *pathbuf_last, wcat_t *pathend, in glob3() argument 850 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { in glob3() [all …]
|
/titanic_41/usr/src/lib/libvolmgt/common/ |
H A D | volmgt_on_private.c | 146 char *pathbuf, *absname; in _dev_unmount() local 153 if ((pathbuf = malloc(PATH_MAX+1)) == NULL) in _dev_unmount() 157 if (realpath(bn, pathbuf) != NULL) in _dev_unmount() 158 absname = pathbuf; in _dev_unmount() 163 free(pathbuf); in _dev_unmount()
|
/titanic_41/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 687 char pathbuf[MAXPATHLEN]; in pci_cfg_ap_path() local 699 pathbuf[0] = '\0'; in pci_cfg_ap_path() 700 pathptr = &pathbuf[sizeof (pathbuf) - 1]; in pci_cfg_ap_path() 747 if (pathptr < pathbuf) { in pci_cfg_ap_path() 748 pathptr = pathbuf; in pci_cfg_ap_path() 756 if (pathptr < pathbuf) { in pci_cfg_ap_path() 757 pathptr = pathbuf; in pci_cfg_ap_path() 788 pathbuf[sizeof (pathbuf) - 1] = '\0'; in pci_cfg_ap_path()
|
/titanic_41/usr/src/cmd/zlook/ |
H A D | zlook.c | 273 char pathbuf[MAXPATHLEN]; in main() local 278 (void) strlcpy(pathbuf, argv[optind], MAXPATHLEN); in main() 279 result = pathconf(pathbuf, check); in main() 280 (void) printf("pathconf(2) check for %s\n", pathbuf); in main()
|
/titanic_41/usr/src/cmd/rcap/rcapd/ |
H A D | rcapd_scanner.c | 478 char pathbuf[PROC_PATH_MAX]; in merge_current_pagedata() local 480 (void) snprintf(pathbuf, sizeof (pathbuf), "/proc/%d/pagedata", in merge_current_pagedata() 482 if ((lpc->lpc_pgdata_fd = rfd_open(pathbuf, 1, RFD_PAGEDATA, in merge_current_pagedata() 1022 char pathbuf[PROC_PATH_MAX]; in lpc_xmap_update() local 1024 (void) snprintf(pathbuf, sizeof (pathbuf), "/proc/%d/xmap", in lpc_xmap_update() 1026 if ((lpc->lpc_xmap_fd = rfd_open(pathbuf, 1, RFD_XMAP, in lpc_xmap_update()
|
H A D | rcapd_main.c | 330 char pathbuf[PROC_PATH_MAX]; in get_psinfo() local 333 (void) snprintf(pathbuf, sizeof (pathbuf), in get_psinfo() 335 if ((fd = rfd_open(pathbuf, 1, RFD_PSINFO, in get_psinfo() 337 debug("cannot open %s", pathbuf); in get_psinfo() 340 debug_high("opened %s, fd %d\n", pathbuf, fd); in get_psinfo()
|
/titanic_41/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | ri_init.c | 131 char *pathbuf; member 1191 char pathbuf[MAXPATHLEN]; in io_cm_info() local 1229 di_arg.pathbuf = pathbuf; in io_cm_info() 1247 (void) snprintf(pathbuf, MAXPATHLEN, "/devices%s", path); in io_cm_info() 1248 dprintf((stderr, "rcm_get_info(%s)\n", pathbuf)); in io_cm_info() 1249 if (rcm_get_info(rcm->hdl, pathbuf, in io_cm_info() 1455 (void) snprintf(di_arg->pathbuf, MAXPATHLEN, "/devices%s", in devinfo_node_walk() 1459 dprintf((stderr, "devinfo_node_walk(%s)\n", di_arg->pathbuf)); in devinfo_node_walk() 1469 if (add_lookup_entry(di_arg->table, di_arg->pathbuf, node)) { in devinfo_node_walk() 1502 char pathbuf[MAXPATHLEN]; in devinfo_minor_walk() local [all …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass2.c | 59 char pathbuf[MAXPATHLEN + 1]; in pass2() local 168 getpathname(pathbuf, inp->i_number, inp->i_number); in pass2() 170 pathbuf, (longlong_t)inp->i_isize, DIRBLKSIZ); in pass2() 407 char pathbuf[MAXPATHLEN + 1]; in pass2check() local 855 getpathname(pathbuf, idesc->id_number, in pass2check() 860 pathbuf, namebuf); in pass2check()
|
H A D | pass1.c | 551 char pathbuf[MAXPATHLEN + 1]; in check_dirholes() local 553 getpathname(pathbuf, idesc->id_number, idesc->id_number); in check_dirholes() 555 idesc->id_number, pathbuf); in check_dirholes()
|
/titanic_41/usr/src/uts/common/io/scsi/conf/ |
H A D | scsi_confsubr.c | 620 char *pathbuf; in scsi_test_ereport_post() local 810 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in scsi_test_ereport_post() 811 (void) ddi_pathname(hba, pathbuf); in scsi_test_ereport_post() 813 if (e_devid_cache_path_to_devid(pathbuf, ua, nodenamebuf, in scsi_test_ereport_post() 829 (void) ddi_pathname(hba, pathbuf); in scsi_test_ereport_post() 830 len = strlen(pathbuf); in scsi_test_ereport_post() 831 (void) snprintf(pathbuf + len, MAXPATHLEN - len, "/%s@%s", in scsi_test_ereport_post() 873 pathbuf, /* devpath for detector */ in scsi_test_ereport_post() 886 kmem_free(pathbuf, MAXPATHLEN); in scsi_test_ereport_post()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | expand.c | 73 char pathbuf[LINESIZE]; local 91 path = tpathp = pathp = pathbuf; 93 lastpathp = &path[sizeof pathbuf - 2];
|
/titanic_41/usr/src/uts/intel/io/acpica/ |
H A D | acpica.c | 659 char pathbuf[MAXPATHLEN]; in acpica_ddi_setwake() local 660 ddi_pathname(dip, pathbuf); in acpica_ddi_setwake() 663 " handle for %s, %s:%d", pathbuf, ddi_driver_name(dip), in acpica_ddi_setwake()
|
/titanic_41/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_list.c | 426 char pathbuf[MAXPATHLEN], *client_devlink = NULL; in create_pathinfo_ldata() local 470 (void) snprintf(pathbuf, MAXPATHLEN, "%s:%s", in create_pathinfo_ldata() 474 (void) snprintf(pathbuf, MAXPATHLEN, "%s%s:%s", in create_pathinfo_ldata() 477 (void) physpath_to_devlink(pathbuf, &client_devlink, l_errnop, in create_pathinfo_ldata()
|
/titanic_41/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 1409 char pathbuf[PATH_MAX]; in grab_lock_file() local 1418 (void) snprintf(pathbuf, sizeof (pathbuf), "%s/%s.zoneadm.lock", in grab_lock_file() 1421 if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) { in grab_lock_file() 1422 zerror(gettext("could not open %s: %s"), pathbuf, in grab_lock_file() 1434 zerror(gettext("unable to lock %s: %s"), pathbuf, in grab_lock_file()
|
/titanic_41/usr/src/cmd/rpcgen/ |
H A D | rpc_main.c | 92 static char pathbuf[MAXPATHLEN + 1]; variable 1176 (void) strcpy(pathbuf, argv[i]); in parseargs() 1177 (void) strcat(pathbuf, "/cpp"); in parseargs() 1178 CPP = pathbuf; in parseargs()
|