summaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2012-06-03 21:42:44 +0000
committerjoerg <joerg@NetBSD.org>2012-06-03 21:42:44 +0000
commitc75c4faf072ea40511548482ef5ddf59c92afcc0 (patch)
treeb2176172ab0730406ac514ab1c56e5cbd2720253 /tests/include
parentb77be5886d2a20db14467957a1d6086db60cec6e (diff)
Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to
depend on new devname_r(3) as heart. Add /dev/pts magic directly to devname(3). While it can lead to returning non-existing paths, the behavior is more consistent that way. Drop caching layer in devname(3), it doesn't buy anything for the common case of having access to the database. Teach devname(3) proper fallback behavior of scanning /dev. Create both old-style and new-style database for now in /etc/rc.d/sysdb.
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/t_paths.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/include/t_paths.c b/tests/include/t_paths.c
index 2d74bd126ef..e931a35b6e0 100644
--- a/tests/include/t_paths.c
+++ b/tests/include/t_paths.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_paths.c,v 1.11 2011/11/06 16:18:27 jruoho Exp $ */
+/* $NetBSD: t_paths.c,v 1.12 2012/06/03 21:42:47 joerg Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_paths.c,v 1.11 2011/11/06 16:18:27 jruoho Exp $");
+__RCSID("$NetBSD: t_paths.c,v 1.12 2012/06/03 21:42:47 joerg Exp $");
#include <sys/param.h>
#include <sys/stat.h>
@@ -64,6 +64,7 @@ static const struct {
{ _PATH_CPUCTL, PATH_DEV },
{ _PATH_CSMAPPER, PATH_DIR },
{ _PATH_DEFTAPE, PATH_DEV | PATH_ROOT },
+ { _PATH_DEVCDB, PATH_FILE },
{ _PATH_DEVDB, PATH_FILE },
{ _PATH_DEVNULL, PATH_DEV },
{ _PATH_DRUM, PATH_DEV | PATH_ROOT },