summaryrefslogtreecommitdiff
path: root/lib/libc/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 /lib/libc/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 'lib/libc/include')
-rw-r--r--lib/libc/include/namespace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h
index 5bb8270c2b9..584fbd7420f 100644
--- a/lib/libc/include/namespace.h
+++ b/lib/libc/include/namespace.h
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.153 2012/04/12 22:08:46 christos Exp $ */
+/* $NetBSD: namespace.h,v 1.154 2012/06/03 21:42:46 joerg Exp $ */
/*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -39,6 +39,7 @@
#define catopen _catopen
#define daylight _daylight
#define difftime _difftime
+#define devname_r _devname_r
#define err _err
#define errx _errx
#ifdef _REENTRANT