Commit Graph

35 Commits

Author SHA1 Message Date
lukem 19a92f1b8c Fix -Wsign-compare issue 2009-04-15 01:01:06 +00:00
joerg 997634fe14 Fix preamble to match order set out by mdoc(7). Discussed with wiz. 2009-03-09 19:24:26 +00:00
christos 17e6d1dc1e fix suseconds_t format. 2008-12-28 21:39:35 +00:00
lukem 9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
christos 27fe712f67 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.
2005-11-18 05:11:30 +00:00
christos f3c42fa4d4 Don't assume that fts(3) will add a slash to the name. From Steve Woodford.
KNF.
2005-10-24 13:17:22 +00:00
xtraeme cf66608ca4 Kill __P(), use ANSI function declarations; WARNS=3 2005-03-16 02:56:18 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun d0512514bd use strlcpy. don't hardcode sizes, use sizeof. 2003-05-17 19:09:08 +00:00
hannken 487a4fb83a 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>
2002-12-15 18:23:00 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz 5db87f557b Whitespace nits. 2002-01-19 03:09:21 +00:00
manu ba6302b854 Removed two debug messages commited by mistake. Sorry about this. 2001-07-15 17:27:32 +00:00
manu 3ac4f70df5 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.
2001-07-14 14:50:44 +00:00
manu 2e20a48c80 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.
2001-07-13 15:54:22 +00:00
manu 7e7825ce44 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.
2001-07-12 20:46:39 +00:00
manu 896577bca5 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.
2001-07-08 20:01:43 +00:00
manu b971cc2b24 - 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
2001-07-05 20:35:33 +00:00
manu 12cb15934b Added a missing .El 2001-07-05 20:33:56 +00:00
manu b70b2499b0 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.
2001-07-04 20:42:02 +00:00
enami fdb519152d Descent into subdirs so that pstat -v prints files on fdescfs symbolically. 2001-04-10 06:11:27 +00:00
enami 68109f4f6e - Cosmetic changes like:
* Put space after keyword `switch'.
	* Explicitly dereference pointer to function.
- Remove unnecessary cast.
2001-04-10 06:08:12 +00:00
lukem 7e44e0ebc2 deprecate register, use memset/memmove instead of bzero/bcopy 1997-10-18 08:18:00 +00:00
lukem 0a469c567a WARNSify, getopt returns -1 not EOF 1997-10-17 00:12:49 +00:00
lukem 2bc4f43c42 WARNSify, getopt returns -1 not EOF 1997-10-17 00:12:43 +00:00
mikel 54d63208ce RCSid police 1997-03-08 06:48:00 +00:00
mycroft bbfccb8f00 Merge with 4.4-Lite, and use libc err(3) and warn(3). 1995-01-30 21:12:41 +00:00
cgd d8806814a6 specify man pages the new way. 1994-12-22 11:32:57 +00:00
mycroft 1b483c4f71 From Mark Weaver:
Use lstat() rather that stat(), to avoid chasing symlinks.
1993-10-22 10:38:33 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft b465cf4697 Add RCS identifiers. 1993-07-30 22:11:51 +00:00
proven 62566787d2 Changed hash_open to dbopen. 1993-04-21 08:26:54 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00