/titanic_50/usr/src/cmd/devfsadm/ |
H A D | tape_link.c | 65 char l_path[PATH_MAX + 1]; in tape_process() local 84 (void) strcpy(l_path, devfspath); in tape_process() 85 (void) strcat(l_path, ":"); in tape_process() 86 (void) strcat(l_path, mn); in tape_process() 94 if (devfsadm_enumerate_int(l_path, 0, &buf, rules, 1)) { in tape_process() 98 (void) strcpy(l_path, "rmt/"); in tape_process() 99 (void) strcat(l_path, buf); in tape_process() 100 (void) strcat(l_path, mn); in tape_process() 106 (void) devfsadm_mklink(l_path, node, minor, flags); in tape_process()
|
H A D | smp_link.c | 67 char l_path[PATH_MAX + 1]; in smp_callback() local 77 (void) strcpy(l_path, devfspath); in smp_callback() 78 (void) strcat(l_path, ":"); in smp_callback() 79 (void) strcat(l_path, mn); in smp_callback() 83 if (devfsadm_enumerate_int(l_path, 0, &buf, rules, 1)) { in smp_callback() 87 (void) strcpy(l_path, "smp/expd"); in smp_callback() 88 (void) strcat(l_path, buf); in smp_callback() 91 (void) devfsadm_mklink(l_path, node, minor, 0); in smp_callback()
|
H A D | usb_link.c | 245 char *l_path, *p_path, *buf, *devfspath; in usb_process() local 267 l_path = (char *)malloc(PATH_MAX); in usb_process() 268 if (l_path == NULL) { in usb_process() 278 free(l_path); in usb_process() 299 free(l_path); in usb_process() 327 free(l_path); in usb_process() 369 free(l_path); in usb_process() 385 free(l_path); in usb_process() 396 free(l_path); in usb_process() 401 (void) snprintf(l_path, PATH_MAX, "usb/%s%s", name, buf); in usb_process() [all …]
|
H A D | ieee1394_link.c | 80 char l_path[PATH_MAX], p_path[PATH_MAX]; in ieee1394_process() local 103 (void) snprintf(l_path, sizeof (l_path), "1394/hba%s", buf); in ieee1394_process() 107 devfsadm_print(debug_mid, "mklink %s %s\n", l_path, p_path); in ieee1394_process() 109 (void) devfsadm_mklink(l_path, node, minor, 0); in ieee1394_process()
|
H A D | misc_link.c | 262 char l_path[PATH_MAX + 1], contents[PATH_MAX + 1], *buf; in display() local 267 (void) strcpy(l_path, "fbs/"); in display() 268 (void) strcat(l_path, mn); in display() 269 (void) devfsadm_mklink(l_path, node, minor, 0); in display() 272 if (devfsadm_enumerate_int(l_path, 0, &buf, rules, 1)) { in display() 275 (void) strcpy(contents, l_path); in display() 276 (void) strcpy(l_path, "fb"); in display() 277 (void) strcat(l_path, buf); in display() 279 (void) devfsadm_secondary_link(l_path, contents, 0); in display() 320 char l_path[PATH_MAX]; in ses_callback() local [all …]
|
H A D | disk_link.c | 455 char l_path[PATH_MAX + 1]; in disk_common() local 538 (void) strcpy(l_path, dir); in disk_common() 539 (void) strcat(l_path, "/c"); in disk_common() 540 (void) strcat(l_path, ctrl); in disk_common() 541 (void) strcat(l_path, disk); in disk_common() 551 s = l_path + strlen(l_path); in disk_common() 552 (void) strcat(l_path, (*mn == *(MN_SMI)) in disk_common() 558 devfsadm_root_path(), l_path); in disk_common() 560 devfsadm_rm_all(l_path); in disk_common() 563 (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 | 101 char l_path[PATH_MAX], p_path[PATH_MAX], *buf, *devfspath; in dcam1394_process() local 147 (void) snprintf(l_path, PATH_MAX, "dcamctl%s", buf); in dcam1394_process() 149 (void) snprintf(l_path, PATH_MAX, "dcam%s", buf); in dcam1394_process() 151 (void) devfsadm_mklink(l_path, node, minor, 0); in dcam1394_process()
|
H A D | cfg_link.c | 247 char path[PATH_MAX + 1], l_path[PATH_MAX], *buf, *devfspath; in sata_cfg_creat_cb() local 271 (void) snprintf(l_path, sizeof (l_path), "%s/sata%s/%s", CFG_DIRNAME, in sata_cfg_creat_cb() 275 (void) devfsadm_mklink(l_path, node, minor, 0); in sata_cfg_creat_cb() 283 char path[PATH_MAX +1], l_path[PATH_MAX], *buf, *devfspath; in sdcard_cfg_creat_cb() local 305 (void) snprintf(l_path, sizeof (l_path), "%s/sdcard%s/%s", in sdcard_cfg_creat_cb() 309 (void) devfsadm_mklink(l_path, node, minor, 0); in sdcard_cfg_creat_cb()
|
/titanic_50/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()
|