History log of /netbsd/usr.sbin/dev_mkdb/dev_mkdb.c (Results 1 – 25 of 29)
Revision Date Author Comments
# c75c4faf 03-Jun-2012 joerg <joerg@NetBSD.org>

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 pat

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.

show more ...


# 37f901f7 30-Aug-2011 joerg <joerg@NetBSD.org>

static openinfo. dead, not unused usage.


# 19a92f1b 15-Apr-2009 lukem <lukem@NetBSD.org>

Fix -Wsign-compare issue


# 17e6d1dc 28-Dec-2008 christos <christos@NetBSD.org>

fix suseconds_t format.


# 9c194566 21-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.


# 8b0f9554 15-Dec-2007 perry <perry@NetBSD.org>

convert __attribute__s to applicable cdefs.h macros


# 27fe712f 18-Nov-2005 christos <christos@NetBSD.org>

The latest fts fix that removes double-slashes from paths exposed a bug
in the code. Don't assume that the extra slash is going to be there.


# f3c42fa4 24-Oct-2005 christos <christos@NetBSD.org>

Don't assume that fts(3) will add a slash to the name. From Steve Woodford.
KNF.


# cf66608c 16-Mar-2005 xtraeme <xtraeme@NetBSD.org>

Kill __P(), use ANSI function declarations; WARNS=3


# 326b2259 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.


# d0512514 17-May-2003 itojun <itojun@NetBSD.org>

use strlcpy. don't hardcode sizes, use sizeof.


# 487a4fb8 15-Dec-2002 hannken <hannken@NetBSD.org>

Set explicit database layout. Default is filesystem block size
and hashdb doesn't work for bucket size >= 65536.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>


# ba6302b8 15-Jul-2001 manu <manu@NetBSD.org>

Removed two debug messages commited by mistake. Sorry about this.


# 3ac4f70d 14-Jul-2001 manu <manu@NetBSD.org>

errno is not tested any more if dbopen succeeds (to quote errno(2), "It
should only be examined after an error")
Added an additionnal chdir so that -o works with a file in the current
directory.


# 2e20a48c 13-Jul-2001 manu <manu@NetBSD.org>

Moved the errno=0 in the loop for opening the temp file. The problem was that
successful syscalls never set errno, and hence we could have had an inifinite
loop if the opening failed once and succede

Moved the errno=0 in the loop for opening the temp file. The problem was that
successful syscalls never set errno, and hence we could have had an inifinite
loop if the opening failed once and succeded on second attempt.

show more ...


# 7e7825ce 12-Jul-2001 manu <manu@NetBSD.org>

FIxed a problem with string length (a leading / was appearing in w, who and others)
We were using rename() to create the target file from the temp file. Now the temp file is created in the same direc

FIxed a problem with string length (a leading / was appearing in w, who and others)
We were using rename() to create the target file from the temp file. Now the temp file is created in the same directory of the targer file so that rename() will always work (it needs to have the files in the same filesystem)
Using the -o file, the output file may be on a world writable directory, we hence open the temporary file using O_EXCL, and we loop trying different names until it works.

show more ...


# 896577bc 08-Jul-2001 manu <manu@NetBSD.org>

We use rename() to produce the dev.db file, and rename() is not able to move
files across filesystems. Hence we use /var/run for dev.tmp, since dev.db
will be in /var/run.


# b971cc2b 05-Jul-2001 manu <manu@NetBSD.org>

- Moved the temp file to /tmp instead of /var/tmp
- Added a O_EXCL flag so that we cannot open an existing file for temp file


# b70b2499 04-Jul-2001 manu <manu@NetBSD.org>

Added flags to choose the location of the input device directory and the
output device database. Goal is to be consistent with other *_mkdb
utilities such as pwd_mkdb or kvm_mkdb.


# fdb51915 10-Apr-2001 enami <enami@NetBSD.org>

Descent into subdirs so that pstat -v prints files on fdescfs symbolically.


# 68109f4f 10-Apr-2001 enami <enami@NetBSD.org>

- Cosmetic changes like:
* Put space after keyword `switch'.
* Explicitly dereference pointer to function.
- Remove unnecessary cast.


# 7e44e0eb 18-Oct-1997 lukem <lukem@NetBSD.org>

deprecate register, use memset/memmove instead of bzero/bcopy


# 0a469c56 17-Oct-1997 lukem <lukem@NetBSD.org>

WARNSify, getopt returns -1 not EOF


# 54d63208 08-Mar-1997 mikel <mikel@NetBSD.org>

RCSid police


# bbfccb8f 30-Jan-1995 mycroft <mycroft@NetBSD.org>

Merge with 4.4-Lite, and use libc err(3) and warn(3).


12