rename /dev/wsdisplay -> /dev/ttyEstat since it has the same major number
as the other ttyE devices.
This commit is contained in:
parent
b79e3b9ba1
commit
ec14ca749d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pathnames.h,v 1.1 2002/06/26 23:13:08 christos Exp $ */
|
||||
/* $NetBSD: pathnames.h,v 1.2 2002/06/27 15:07:52 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -35,6 +35,6 @@
|
||||
#define _PATH_DEFAULT_MOUSE "/dev/wsmouse"
|
||||
#define _PATH_PID "/var/run/wsmoused.pid"
|
||||
#define _PATH_TTYPREFIX "/dev/ttyE"
|
||||
#define _PATH_WSDISPLAYSTAT "/dev/wsdisplay"
|
||||
#define _PATH_TTYSTAT "/dev/ttyEstat"
|
||||
|
||||
#endif /* _WSMOUSED_PATHNAMES_H */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: wsmoused.c,v 1.1 2002/06/26 23:13:10 christos Exp $ */
|
||||
/* $NetBSD: wsmoused.c,v 1.2 2002/06/27 15:07:53 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -32,7 +32,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: wsmoused.c,v 1.1 2002/06/26 23:13:10 christos Exp $");
|
||||
__RCSID("$NetBSD: wsmoused.c,v 1.2 2002/06/27 15:07:53 christos Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
@ -115,9 +115,9 @@ static void
|
||||
open_files(void)
|
||||
{
|
||||
/* Open wsdisplay status device */
|
||||
mouse.stat_fd = open(_PATH_WSDISPLAYSTAT, O_RDONLY | O_NONBLOCK, 0);
|
||||
mouse.stat_fd = open(_PATH_TTYSTAT, O_RDONLY | O_NONBLOCK, 0);
|
||||
if (mouse.stat_fd == -1)
|
||||
err(EXIT_FAILURE, "Cannot open `%s'", _PATH_WSDISPLAYSTAT);
|
||||
err(EXIT_FAILURE, "Cannot open `%s'", _PATH_TTYSTAT);
|
||||
|
||||
mouse.fd = -1;
|
||||
mouse_open_device(&mouse, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user