/illumos-gate/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() 198 p = np + (p - pathbuf); in pushfilename() 199 pathbuf = np; in pushfilename() 204 cur->pathend = p - pathbuf; in pushfilename() 291 pathbuf); in popdir() 436 pathbuf, strerror(err)); in rm() [all …]
|
/illumos-gate/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()
|
/illumos-gate/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 | 403 char *pathbuf; in tem_info_init() local 419 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in tem_info_init() 420 (void) strcpy(pathbuf, "/devices"); in tem_info_init() 422 pathbuf + strlen("/devices")) != DDI_SUCCESS) { in tem_info_init() 424 kmem_free(pathbuf, MAXPATHLEN); in tem_info_init() 429 if (ldi_open_by_name(pathbuf, FWRITE, credp, in tem_info_init() 432 kmem_free(pathbuf, MAXPATHLEN); in tem_info_init() 437 kmem_free(pathbuf, MAXPATHLEN); in tem_info_init()
|
/illumos-gate/usr/src/cmd/loadkeys/ |
H A D | loadkeys.y | 123 static FILE *open_mapping_file(char *pathbuf, char *name, 134 char pathbuf[MAXPATHLEN]; in main() local 194 infile = open_mapping_file(pathbuf, infilename, explicit_name, type); in main() 197 infilename = pathbuf; in main() 317 open_mapping_file(char *pathbuf, char *name, boolean_t explicit_name, int type) in open_mapping_file() argument 321 strcpy(pathbuf, name); in open_mapping_file() 322 infile = fopen(pathbuf, "r"); in open_mapping_file() 331 sprintf(pathbuf, keytable_dir, type); in open_mapping_file() 332 if ((int)(strlen(pathbuf) + strlen(name) + 1) >= MAXPATHLEN) { in open_mapping_file() 337 (void) strcat(pathbuf, name); in open_mapping_file() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sunpm.c | 909 char *pathbuf; in dev_is_needed() local 927 pathbuf); in dev_is_needed() 1471 char *pathbuf; in pm_clear_volpm_list() 1697 char *pathbuf; in pm_set_power() 2292 char *pathbuf; in pm_rem_info() local 2330 pm_dispatch_to_dep_thread(work_type, pathbuf, pathbuf, in pm_rem_info() 3100 char *pathbuf; in pm_phc_impl() local 3537 char *pathbuf; in e_pm_manage() local 6254 char *pathbuf; in pm_discard_dep_walk() 6269 char *pathbuf; in pm_kept_walk() [all …]
|
H A D | modctl.c | 981 char *pathbuf; in modctl_retire() local 997 kmem_free(pathbuf, MAXPATHLEN); in modctl_retire() 1000 devpath = i_ddi_strdup(pathbuf, KM_SLEEP); in modctl_retire() 1001 kmem_free(pathbuf, MAXPATHLEN); in modctl_retire() 1064 char *pathbuf; in modctl_is_retired() local 1076 kmem_free(pathbuf, MAXPATHLEN); in modctl_is_retired() 1079 devpath = i_ddi_strdup(pathbuf, KM_SLEEP); in modctl_is_retired() 1080 kmem_free(pathbuf, MAXPATHLEN); in modctl_is_retired() 1094 char *pathbuf; in modctl_unretire() local 1106 kmem_free(pathbuf, MAXPATHLEN); in modctl_unretire() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/util/ |
H A D | smrsh.c | 151 char pathbuf[1000]; local 163 (void) sm_strlcpyn(pathbuf, sizeof pathbuf, 2, "PATH=", PATH); 164 newenv[0] = pathbuf;
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppdata.c | 64 static char pathbuf[MAXTOKEN+1]; /* full path of last #include */ variable 171 &pathbuf[0], /* path */
|
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | glob.c | 744 wcat_t pathbuf[PATH_MAX]; in glob1() local 749 return (glob2(pathbuf, pathbuf+PATH_MAX-1, in glob1() 750 pathbuf, pathbuf+PATH_MAX-1, in glob1() 760 glob2(wcat_t *pathbuf, wcat_t *pathbuf_last, wcat_t *pathend, in glob2() argument 786 if (g_lstat(pathbuf, &sb, pglob)) in glob2() 794 (g_stat(pathbuf, &sb, pglob) == 0) && in glob2() 804 return (globextend(pathbuf, pglob, limitp, &sb)); in glob2() 828 return (glob3(pathbuf, pathbuf_last, pathend, in glob2() 861 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { in glob3() 864 if (g_Ctoc(pathbuf, buf, sizeof (buf))) in glob3() [all …]
|
/illumos-gate/usr/src/lib/libvolmgt/common/ |
H A D | volmgt_on_private.c | 147 char *pathbuf, *absname; in _dev_unmount() local 154 if ((pathbuf = malloc(PATH_MAX+1)) == NULL) in _dev_unmount() 158 if (realpath(bn, pathbuf) != NULL) in _dev_unmount() 159 absname = pathbuf; in _dev_unmount() 164 free(pathbuf); in _dev_unmount()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 696 char pathbuf[MAXPATHLEN]; in pci_cfg_ap_path() local 708 pathbuf[0] = '\0'; in pci_cfg_ap_path() 709 pathptr = &pathbuf[sizeof (pathbuf) - 1]; in pci_cfg_ap_path() 756 if (pathptr < pathbuf) { in pci_cfg_ap_path() 757 pathptr = pathbuf; in pci_cfg_ap_path() 765 if (pathptr < pathbuf) { in pci_cfg_ap_path() 766 pathptr = pathbuf; in pci_cfg_ap_path() 797 pathbuf[sizeof (pathbuf) - 1] = '\0'; in pci_cfg_ap_path()
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | ri_init.c | 131 char *pathbuf; member 1190 char pathbuf[MAXPATHLEN]; in io_cm_info() local 1228 di_arg.pathbuf = pathbuf; in io_cm_info() 1246 (void) snprintf(pathbuf, MAXPATHLEN, "/devices%s", path); in io_cm_info() 1247 dprintf((stderr, "rcm_get_info(%s)\n", pathbuf)); in io_cm_info() 1248 if (rcm_get_info(rcm->hdl, pathbuf, in io_cm_info() 1501 char pathbuf[MAXPATHLEN]; in devinfo_minor_walk() local 1505 di_arg->pathbuf)); in devinfo_minor_walk() 1521 (void) snprintf(pathbuf, MAXPATHLEN, "%s:%s", di_arg->pathbuf, name); in devinfo_minor_walk() 1524 if (add_lookup_entry(di_arg->table, pathbuf, node)) { in devinfo_minor_walk() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/rcap/rcapd/ |
H A D | rcapd_scanner.c | 476 char pathbuf[PROC_PATH_MAX]; in merge_current_pagedata() local 478 (void) snprintf(pathbuf, sizeof (pathbuf), "/proc/%d/pagedata", in merge_current_pagedata() 480 if ((lpc->lpc_pgdata_fd = rfd_open(pathbuf, 1, RFD_PAGEDATA, in merge_current_pagedata() 1021 char pathbuf[PROC_PATH_MAX]; in lpc_xmap_update() local 1023 (void) snprintf(pathbuf, sizeof (pathbuf), "/proc/%d/xmap", in lpc_xmap_update() 1025 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()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass2.c | 57 char pathbuf[MAXPATHLEN + 1]; in pass2() local 166 getpathname(pathbuf, inp->i_number, inp->i_number); in pass2() 168 pathbuf, (longlong_t)inp->i_isize, DIRBLKSIZ); in pass2() 405 char pathbuf[MAXPATHLEN + 1]; in pass2check() local 853 getpathname(pathbuf, idesc->id_number, in pass2check() 858 pathbuf, namebuf); in pass2check()
|
H A D | pass1.c | 549 char pathbuf[MAXPATHLEN + 1]; in check_dirholes() local 551 getpathname(pathbuf, idesc->id_number, idesc->id_number); in check_dirholes() 553 idesc->id_number, pathbuf); in check_dirholes()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | expand.c | 72 char pathbuf[LINESIZE]; local 90 path = tpathp = pathp = pathbuf; 92 lastpathp = &path[sizeof pathbuf - 2];
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 1410 char pathbuf[PATH_MAX]; in grab_lock_file() local 1419 (void) snprintf(pathbuf, sizeof (pathbuf), "%s/%s.zoneadm.lock", in grab_lock_file() 1422 if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) { in grab_lock_file() 1423 zerror(gettext("could not open %s: %s"), pathbuf, in grab_lock_file() 1435 zerror(gettext("unable to lock %s: %s"), pathbuf, in grab_lock_file()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/klmmod/ |
H A D | klmmod.c | 902 char pathbuf[PATH_MAX]; member 1115 arg->pathbuf, PATH_MAX) == -1) in nlm_lockson_cb() 1116 strlcpy(arg->pathbuf, "??", PATH_MAX); in nlm_lockson_cb() 1117 mdb_printf("%s\n", arg->pathbuf); in nlm_lockson_cb()
|
/illumos-gate/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()
|