CVS log for src/usr.sbin/dev_mkdb/dev_mkdb.c
Up to [cvs.NetBSD.org] / src / usr.sbin / dev_mkdb
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:28:48 2026 UTC (11 days, 8 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +3 -2
lines
Sync with HEAD
Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Jan 2 16:31:00 2026 UTC (10 months, 1 week ago) by nia
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
HEAD
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -2
lines
dev_mkdb(8): Don't assume <endian.h> is transcluded
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Aug 8 10:35:37 2023 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11
Branch point for: perseant-exfatfs
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3
lines
dev_mkdb(8): No need for weird padding any more.
cdbw_output never needed it at runtime, and the declaration no longer
makes gcc angry about not having it.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Aug 1 07:57:17 2023 UTC (3 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3
lines
cdbw_output()'s 3rd argument must be a 16-byte char array, so pad the
string literals passed to it with enough nuls to make this true.
found by GCC 12.
Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:32 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +172 -127
lines
sync with head
Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 23 22:54:58 2012 UTC (14 years, 4 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +172 -127
lines
Pull up following revision(s) (requested by joerg in ticket #328):
lib/libc/gen/devname.c: revision 1.22
distrib/sparc64/instfs/dot.profile: revision 1.7
distrib/i386/cdroms/install.sh: revision 1.3
tests/lib/libcurses/director/director.c: revision 1.10
lib/libc/include/reentrant.h: revision 1.15
distrib/amd64/cdroms/install.sh: revision 1.3
tests/include/t_paths.c: revision 1.12
share/man/man7/hier.7: revision 1.101
etc/rc.d/sysdb: revision 1.24
include/stdlib.h: revision 1.99
tests/lib/libcurses/Makefile: revision 1.3
distrib/sparc64/cdroms/installcd/install.sh: revision 1.3
distrib/i386/cdroms/Makefile.cdrom: revision 1.27
lib/libc/gen/ttyname.c: revision 1.25
usr.bin/tic/Makefile: revision 1.2
tools/compat/Makefile: revision 1.57
lib/libterminfo/compile.c: revision 1.7
lib/libc/gen/ttyname.c: revision 1.26
lib/libterminfo/compile.c: revision 1.8
tools/compat/Makefile: revision 1.59
tools/compat/cdbw.h: revision 1.1
distrib/i386/installimage/install.sh: revision 1.2
lib/libc/include/namespace.h: revision 1.154
usr.bin/tic/tic.c: revision 1.13
usr.bin/tic/tic.c: revision 1.14
usr.bin/tic/tic.c: revision 1.15
distrib/sets/lists/base/mi: revision 1.996
usr.bin/tic/tic.c: revision 1.16
usr.sbin/dev_mkdb/dev_mkdb.8: revision 1.13
usr.bin/tic/tic.c: revision 1.17
usr.bin/tic/tic.c: revision 1.18
tools/compat/cdbr.h: revision 1.1
distrib/sparc64/instfs/list: revision 1.25
usr.bin/tic/tic.c: revision 1.19
lib/libc/cdb/cdbw.c: revision 1.4
lib/libc/cdb/cdbw.3: revision 1.4
lib/libc/cdb/cdbw.3: revision 1.5
share/terminfo/Makefile: revision 1.3
usr.sbin/dev_mkdb/dev_mkdb.c: revision 1.29
usr.sbin/dev_mkdb/Makefile: revision 1.8
lib/libc/gen/ttyname.3: revision 1.23
lib/libc/gen/ttyname.3: revision 1.24
lib/libc/cdb/cdbr.c: revision 1.3
include/cdbw.h: revision 1.2
distrib/sparc64/cdroms/installcd/Makefile: revision 1.15
lib/libc/gen/devname.3: revision 1.12
tools/compat/compat_defs.h: revision 1.85
tools/compat/compat_defs.h: revision 1.86
lib/libterminfo/term_private.h: revision 1.10
lib/libterminfo/term.c: revision 1.14
usr.bin/tic/tic.1: revision 1.10
lib/libterminfo/term.c: revision 1.15
lib/libterminfo/Makefile.hash: revision 1.5
lib/libterminfo/term.c: revision 1.16
distrib/amd64/installimage/install.sh: revision 1.2
share/man/man5/rc.conf.5: revision 1.152
distrib/sets/lists/tests/mi: revision 1.472
distrib/amd64/cdroms/Makefile.cdrom: revision 1.7
include/paths.h: revision 1.41
bin/ps/ps.1: revision 1.101
lib/libterminfo/terminfo.5.in: revision 1.16
usr.bin/tic/tic.c: revision 1.20
lib/libterminfo/terminfo.5.in: revision 1.17
Prefer __printflike.
Use queue(3)
Replace linear lookup with hash table, reducing runtime by 60%.
Use e* from util.h.
One more strdup -> estrdup.
Maintain nalias and nterm on the fly.
Add void for ttyslot prototype.
Use memcmp in place of strncmp, since length is known to no longer than
either of the arguments.
Fix a number of memory leaks. Keep final loop of the cleanup in tic(1)
under #ifdef __VALGRIND__ though.
Add __predict_true / __predict_false definitions.
Add a special seeder for cdbw_output that gives stable results.
Hook up cdbw(3) for the tool build.
Prototype for cdbw_stable_seeder.
Provide a usable thr_once for !_REENTRANT
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.
Switch terminfo(3) to cdb(5).
Fix typos.
Make Alan Barrett happy and add ().
Add cdbr(3) support to tools/compat.
Bump date for previous.
Relax consistency to make it possible to match valid entries.
Prefix devname's buffer with /dev/ as ttyname is supposed to return the
full path. Reported by Dave Huang.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Jun 3 21:42:47 2012 UTC (14 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
tls-maxphys-base,
tls-maxphys,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-9-base,
netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
agc-symver-base,
agc-symver
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +172 -127
lines
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.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Aug 30 10:04:50 2011 UTC (15 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base
Branch point for: yamt-pagecache,
netbsd-6
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4
lines
static openinfo. dead, not unused usage.
Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:20:21 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +3 -3
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Apr 15 01:01:06 2009 UTC (17 years, 7 months ago) by lukem
Branches: MAIN
CVS tags: matt-premerge-20091211,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jym-xensuspend-base,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3
lines
Fix -Wsign-compare issue
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Dec 28 21:39:35 2008 UTC (17 years, 10 months ago) by christos
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3
lines
fix suseconds_t format.
Revision 1.24.6.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:30:03 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +4 -4
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Jul 21 13:36:58 2008 UTC (18 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -4
lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
Revision 1.23.10.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:01:57 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +3 -3
lines
sync with HEAD
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Dec 15 19:44:55 2007 UTC (18 years, 11 months ago) by perry
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base
Branch point for: wrstuden-revivesa
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3
lines
convert __attribute__s to applicable cdefs.h macros
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Nov 18 05:11:30 2005 UTC (21 years ago) by christos
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: matt-armv6
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
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.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Oct 24 13:17:22 2005 UTC (21 years ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +35 -24
lines
Don't assume that fts(3) will add a slash to the name. From Steve Woodford.
KNF.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Mar 16 02:56:18 2005 UTC (21 years, 8 months ago) by xtraeme
Branches: MAIN
CVS tags: netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +5 -8
lines
Kill __P(), use ANSI function declarations; WARNS=3
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:25:18 2003 UTC (23 years, 3 months ago) by agc
Branches: MAIN
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -7
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat May 17 19:09:08 2003 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -13
lines
use strlcpy. don't hardcode sizes, use sizeof.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Dec 15 18:23:00 2002 UTC (23 years, 11 months ago) by hannken
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +12 -3
lines
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>
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jul 15 17:27:32 2001 UTC (25 years, 4 months ago) by manu
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -4
lines
Removed two debug messages commited by mistake. Sorry about this.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Jul 14 14:50:44 2001 UTC (25 years, 4 months ago) by manu
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +12 -12
lines
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.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Jul 13 15:54:22 2001 UTC (25 years, 4 months ago) by manu
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
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.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jul 12 20:46:39 2001 UTC (25 years, 4 months ago) by manu
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +30 -12
lines
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.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jul 8 20:01:43 2001 UTC (25 years, 4 months ago) by manu
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +8 -3
lines
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.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jul 5 20:35:33 2001 UTC (25 years, 4 months ago) by manu
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
- 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
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jul 4 20:42:02 2001 UTC (25 years, 4 months ago) by manu
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +36 -16
lines
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.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Apr 10 06:11:27 2001 UTC (25 years, 7 months ago) by enami
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +27 -17
lines
Descent into subdirs so that pstat -v prints files on fdescfs symbolically.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Apr 10 06:08:12 2001 UTC (25 years, 7 months ago) by enami
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -5
lines
- Cosmetic changes like:
* Put space after keyword `switch'.
* Explicitly dereference pointer to function.
- Remove unnecessary cast.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Oct 18 08:18:00 1997 UTC (29 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5,
netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3,
minoura-xpg4dl-base,
minoura-xpg4dl,
comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -5
lines
deprecate register, use memset/memmove instead of bzero/bcopy
Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Oct 17 00:12:49 1997 UTC (29 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -7
lines
WARNSify, getopt returns -1 not EOF
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Mar 8 06:48:02 1997 UTC (29 years, 8 months ago) by mikel
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -1
lines
RCSid police
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jan 30 21:12:44 1995 UTC (31 years, 9 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2,
netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +37 -41
lines
Merge with 4.4-Lite, and use libc err(3) and warn(3).
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Jan 30 20:57:21 1995 UTC (31 years, 9 months ago) by mycroft
Branches: WFJ-920714,
CSRG
CVS tags: lite-2,
lite-1
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +57 -31
lines
Import original 4.4-Lite version.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Oct 22 10:38:33 1993 UTC (33 years, 1 month ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2
lines
From Mark Weaver:
Use lstat() rather that stat(), to avoid chasing symlinks.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Aug 1 17:59:57 1993 UTC (33 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1
lines
Add RCS identifiers.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Apr 21 08:26:54 1993 UTC (33 years, 7 months ago) by proven
Branches: MAIN
CVS tags: netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1
lines
Changed hash_open to dbopen.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (33 years, 8 months ago) by cgd
Branches: WFJ-920714,
CSRG
CVS tags: patchkit-0-2-2,
netbsd-alpha-1,
netbsd-0-8,
WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
initial import of 386bsd-0.1 sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (33 years, 8 months ago) by cgd
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>