Lines Matching defs:nm

237 	char	*nm;		/* name/device of special device */
275 nm = (char *)malloc(SIZE_OF_TMP + 1 + strlen(dep->d_name) + 1);
276 if (nm == NULL)
278 (void) strcpy(nm, "/dev/");
279 (void) strcat(nm, dep->d_name);
280 tape[i].name = nm;
294 nm = (char *)malloc(sz + 1);
295 if (nm == NULL)
297 (void) strncpy(nm, linkvalue, sz);
298 nm[sz] = '\0';
299 tape[i].device = nm;
333 nm = (char *)malloc(SIZE_OF_RMT + 1 + strlen(dep->d_name) + 1);
334 if (nm == NULL)
336 (void) strcpy(nm, "/dev/rmt/");
337 (void) strcat(nm, dep->d_name);
338 tape[i].name = nm;
341 nm = (char *)malloc(SIZE_OF_TMP + strlen(dep->d_name) + 1);
342 if (nm == NULL)
344 (void) strcpy(nm, "rmt/");
345 (void) strcat(nm, dep->d_name);
346 tape[i].device = nm;
447 char *nm; /* name/device of special device */
482 nm = (char *)malloc(SIZE_OF_TMP + 1 + strlen(dep->d_name) + 1);
483 if (nm == NULL)
485 (void) strcpy(nm, "/dev/");
486 (void) strcat(nm, dep->d_name);
487 audio[i].name = nm;
501 nm = (char *)malloc(sz + 1);
502 if (nm == NULL)
504 (void) strncpy(nm, linkvalue, sz);
505 nm[sz] = '\0';
506 audio[i].device = nm;
534 nm = (char *)malloc(SIZE_OF_SOUND + 1 +
536 if (nm == NULL)
538 (void) strcpy(nm, "/dev/sound/");
539 (void) strcat(nm, dep->d_name);
540 audio[i].name = nm;
542 nm = (char *)malloc(SIZE_OF_SOUND + 1 +
544 if (nm == NULL)
546 (void) strcpy(nm, "/dev/sound/");
547 (void) strcat(nm, dep->d_name);
548 audio[i].device = nm;
651 char *nm; /* name/device of special device */
690 nm = (char *)malloc(SIZE_OF_TMP + 1 + strlen(dep->d_name) + 1);
691 if (nm == NULL)
693 (void) strcpy(nm, "/dev/");
694 (void) strcat(nm, dep->d_name);
695 fp[i].name = nm;
709 nm = (char *)malloc(sz+1);
710 if (nm == NULL)
712 (void) strncpy(nm, linkvalue, sz);
713 nm[sz] = '\0';
714 fp[i].device = nm;
818 char *nm; /* name/device of special device */
857 nm = (char *)malloc(SIZE_OF_TMP + 1 + strlen(dep->d_name) + 1);
858 if (nm == NULL)
860 (void) strcpy(nm, "/dev/");
861 (void) strcat(nm, dep->d_name);
862 cd[i].name = nm;
877 nm = (char *)malloc(sz + 1);
878 if (nm == NULL)
880 (void) strncpy(nm, linkvalue, sz);
881 nm[sz] = '\0';
882 cd[i].device = nm;
928 nm = (char *)malloc(SIZE_OF_DSK + 1 + strlen(dep->d_name) + 1);
929 if (nm == NULL)
931 (void) strcpy(nm, "/dev/dsk/");
932 (void) strcat(nm, dep->d_name);
933 cd[i].name = nm;
979 nm = (char *)malloc(SIZE_OF_RDSK + 1 + strlen(dep->d_name) + 1);
980 if (nm == NULL)
982 (void) strcpy(nm, "/dev/rdsk/");
983 (void) strcat(nm, dep->d_name);
984 cd[i].name = nm;
1084 char *nm; /* name/device of special device */
1170 nm = (char *)malloc(SIZE_OF_DSK + 1 + strlen(dep->d_name) + 1);
1171 if (nm == NULL)
1173 (void) strcpy(nm, "/dev/dsk/");
1174 (void) strcat(nm, dep->d_name);
1175 rmdisk[i].name = nm;