Lines Matching refs:device
34 * char *devattr(device, attr)
37 * the SVR4 OAM device managment stuff which used to be present in
40 * devattr was used to search the device table (/etc/device.tab),
41 * looking for the device specified by <device> and to find specific
44 * In this implementation, we emulate a device.tab file in which
52 * device Pointer to the character-string that describes the
53 * device whose record is to be looked for
54 * attr The device's attribute to be looked for
58 * attribute <attr> for the device <device>, or (char *) NULL if none
63 * EPERM Permissions deny reading access of the device-table
65 * ENOENT The specified device-table file could not be found
66 * ENODEV Device not found in the device table
67 * EINVAL The device does not have that attribute defined
72 devattr(char *device, char *attribute)
76 if (strcmp(device, "spool") != 0) {
81 /* Did they ask for the device alias? */