/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | usb_link.c | 259 char *l_path, *p_path, *buf, *devfspath; in usb_process() local 282 l_path = (char *)malloc(PATH_MAX); in usb_process() 283 if (l_path == NULL) { in usb_process() 293 free(l_path); in usb_process() 314 free(l_path); in usb_process() 322 free(l_path); in usb_process() 351 free(l_path); in usb_process() 393 free(l_path); in usb_process() 409 free(l_path); in usb_process() 420 free(l_path); in usb_process() [all …]
|
H A D | tape_link.c | 63 char l_path[PATH_MAX + 1]; in tape_process() local 82 (void) strcpy(l_path, devfspath); in tape_process() 83 (void) strcat(l_path, ":"); in tape_process() 84 (void) strcat(l_path, mn); in tape_process() 92 if (devfsadm_enumerate_int(l_path, 0, &buf, rules, 1)) { in tape_process() 96 (void) strcpy(l_path, "rmt/"); in tape_process() 97 (void) strcat(l_path, buf); in tape_process() 98 (void) strcat(l_path, mn); in tape_process() 104 (void) devfsadm_mklink(l_path, node, minor, flags); in tape_process()
|
H A D | smp_link.c | 65 char l_path[PATH_MAX + 1]; in smp_callback() local 75 (void) strcpy(l_path, devfspath); in smp_callback() 76 (void) strcat(l_path, ":"); in smp_callback() 77 (void) strcat(l_path, mn); in smp_callback() 81 if (devfsadm_enumerate_int(l_path, 0, &buf, rules, 1)) { in smp_callback() 85 (void) strcpy(l_path, "smp/expd"); in smp_callback() 86 (void) strcat(l_path, buf); in smp_callback() 89 (void) devfsadm_mklink(l_path, node, minor, 0); in smp_callback()
|
H A D | ieee1394_link.c | 78 char l_path[PATH_MAX], p_path[PATH_MAX]; in ieee1394_process() local 101 (void) snprintf(l_path, sizeof (l_path), "1394/hba%s", buf); in ieee1394_process() 105 devfsadm_print(debug_mid, "mklink %s %s\n", l_path, p_path); in ieee1394_process() 107 (void) devfsadm_mklink(l_path, node, minor, 0); in ieee1394_process()
|
H A D | misc_link.c | 277 char l_path[PATH_MAX + 1], contents[PATH_MAX + 1], *buf; in display() local 282 (void) strcpy(l_path, "fbs/"); in display() 283 (void) strcat(l_path, mn); in display() 284 (void) devfsadm_mklink(l_path, node, minor, 0); in display() 287 if (devfsadm_enumerate_int(l_path, 0, &buf, rules, 1)) { in display() 290 (void) strcpy(contents, l_path); in display() 291 (void) strcpy(l_path, "fb"); in display() 292 (void) strcat(l_path, buf); in display() 294 (void) devfsadm_secondary_link(l_path, contents, 0); in display() 335 char l_path[PATH_MAX]; in ses_callback() local [all …]
|
H A D | disk_link.c | 507 char l_path[PATH_MAX + 1]; in disk_common() local 590 (void) strcpy(l_path, dir); in disk_common() 591 (void) strcat(l_path, "/c"); in disk_common() 592 (void) strcat(l_path, ctrl); in disk_common() 593 (void) strcat(l_path, disk); in disk_common() 603 s = l_path + strlen(l_path); in disk_common() 604 (void) strcat(l_path, (*mn == *(MN_SMI)) in disk_common() 610 devfsadm_root_path(), l_path); in disk_common() 612 devfsadm_rm_all(l_path); in disk_common() 615 (void) strcat(l_path, slice); in disk_common() [all …]
|
H A D | port_link.c | 246 char l_path[MAXPATHLEN], p_path[MAXPATHLEN]; in serial_port_create() local 289 (void) strcpy(l_path, "term/"); in serial_port_create() 290 (void) strcat(l_path, buf); in serial_port_create() 291 (void) devfsadm_mklink(l_path, node, minor, 0); in serial_port_create() 299 (void) syslog(LOG_INFO, "serial device /dev/%s present", l_path); in serial_port_create() 320 char l_path[MAXPATHLEN], p_path[MAXPATHLEN]; in dialout_create() local 354 (void) strcpy(l_path, "cua/"); in dialout_create() 355 (void) strcat(l_path, buf); in dialout_create() 361 (void) devfsadm_mklink(l_path, node, minor, 0); in dialout_create() 462 char l_path[MAXPATHLEN], p_path[MAXPATHLEN]; in onbrd_port_create() local [all …]
|
H A D | dcam1394_link.c | 99 char l_path[PATH_MAX], p_path[PATH_MAX], *buf, *devfspath; in dcam1394_process() local 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() 149 (void) devfsadm_mklink(l_path, node, minor, 0); in dcam1394_process()
|
H A D | cfg_link.c | 256 char path[PATH_MAX + 1], l_path[PATH_MAX], *buf, *devfspath; in sata_cfg_creat_cb() local 280 (void) snprintf(l_path, sizeof (l_path), "%s/sata%s/%s", CFG_DIRNAME, in sata_cfg_creat_cb() 284 (void) devfsadm_mklink(l_path, node, minor, 0); in sata_cfg_creat_cb() 292 char path[PATH_MAX +1], l_path[PATH_MAX], *buf, *devfspath; in sdcard_cfg_creat_cb() local 314 (void) snprintf(l_path, sizeof (l_path), "%s/sdcard%s/%s", in sdcard_cfg_creat_cb() 318 (void) devfsadm_mklink(l_path, node, minor, 0); in sdcard_cfg_creat_cb()
|
/illumos-gate/usr/src/cmd/devfsadm/sparc/ |
H A D | misc_link_sparc.c | 167 char path[PATH_MAX], l_path[PATH_MAX], *buf, *devfspath; in mc_node() local 188 (void) strcpy(l_path, "mc/mc"); in mc_node() 189 (void) strcat(l_path, buf); in mc_node() 193 (void) devfsadm_mklink(l_path, node, minor, 0); in mc_node()
|