Lines Matching refs:dev
48 #define MSGLOG "/dev/msglog"
49 #define CONSOLE "/dev/console"
50 #define WSCONS "/dev/wscons"
296 * send ioctl to /dev/sysmsg to route msgs of the device specified.
299 setaux(char *dev)
306 if (ioctl(fd, CIOCSETCONSOLE, dev) != 0) {
313 dev);
317 syslog(LOG_WARNING, "%s: Added auxiliary device %s", CONSADM, dev);
327 unsetaux(char *dev)
334 if (ioctl(fd, CIOCRMCONSOLE, dev) != 0) {
339 CONSADM, dev);
364 addtolist(char *dev)
398 if (pathcmp(dev, buf) == 0) {
400 (void) fprintf(nfp, "%s\n", dev);
408 (void) fprintf(nfp, "%s\n", dev);
419 removefromlist(char *dev)
461 if (pathcmp(dev, value) == 0) {
585 /* always fallback to /dev/console */
649 * Assume we always fall back to /dev/console.
865 verifyarg(char *dev, int flag)
871 if (dev == NULL) {
877 if (dev[0] != '/') {
883 if ((pathcmp(dev, SYSMSG) == 0) ||
884 (pathcmp(dev, WSCONS) == 0) ||
885 (pathcmp(dev, CONSOLE) == 0)) {
887 warn(gettext("invalid device %s\n"), dev);
892 if (stat(dev, &st) || ! S_ISCHR(st.st_mode)) {
893 warn(gettext("invalid device %s\n"), dev);
899 if ((fd = safeopen(dev)) < 0) {
901 warn(gettext("invalid device %s\n"), dev);
907 warn(gettext("invalid device %s\n"), dev);
916 warn(gettext("failure, no carrier on %s\n"), dev);