#
1.29 |
|
08-Mar-2023 |
guenther |
Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ millert@
|
Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
|
#
1.28 |
|
06-Feb-2019 |
millert |
Replace overlapping memcpy() with memmove() in getpathname(). Same fix as in fsck_ffs. OK deraadt@ tb@
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.27 |
|
16-Mar-2016 |
krw |
More "(<blah> *)0" -> NULL, avoiding any stdarg functions.
Feedback millert@ kettenis@
|
Revision tags: OPENBSD_5_9_BASE
|
#
1.26 |
|
05-Sep-2015 |
guenther |
snprintf+write --> dprintf
ok deraadt@
|
#
1.25 |
|
20-Aug-2015 |
deraadt |
<stdlib.h> is included, so do not need to cast result from malloc, calloc, realloc* ok krw millert
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.24 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.23 |
|
13-Jul-2014 |
pelikan |
kill fs2hXX/h2fsXX macros with letohXX/htoleXX
The reason being that ext2 structures are little-endian but JBD2 journal is big-endian. Don't confuse readers by talking about "file system endian".
ok guenther
|
#
1.22 |
|
24-May-2014 |
krw |
Use consistent format specifiers (%lld) and casts (long long) when printing out block numbers and sector numbers. Make output verbiage consistent. -Wall happier.
Original diff and ok chl@
|
#
1.21 |
|
22-May-2014 |
krw |
Nuke pointless dev_bsize variable which is always set to 512, and just use DEV_BSIZE.
Write sizes need to be secsize and not DEV_BSIZE, just like reads.
Equivalent to changes made in fsck_ffs.
|
#
1.20 |
|
20-May-2014 |
krw |
As suggested by guenther@ and millert@, replace seek+[read|write] with p[read|write]. Makes the code much clearer by eliminating extra error checking and verbiage.
No intentional functional change.
Tweaks by and ok guenther@
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.19 |
|
12-Mar-2011 |
deraadt |
These utilities can currently only operate with a 32-bit block number range, so use daddr32_t ok jasper
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.18 |
|
10-Dec-2009 |
deraadt |
do not leak memory, found by parfait, ok millert otto (one case was a false positive, but one is a modified copy of the other)
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.17 |
|
20-Apr-2006 |
deraadt |
solve some signal races; from fsck_ffs; ok pedro
|
#
1.16 |
|
02-Apr-2006 |
deraadt |
use SEEK_* for lseek()
|
#
1.15 |
|
30-Mar-2006 |
deraadt |
when asking y or n, accept "F" which forces yes from the on. i have wished for this for 10+ year, but always forgotten to make the change after cleaning up a nasty file system; ok pedro millert
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.14 |
|
11-Jun-2003 |
deraadt |
ansification
|
#
1.13 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
1.12 |
|
17-Apr-2003 |
tedu |
strings. mostly from deraadt@, some from tdeval@ and myself
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.11 |
|
23-Feb-2002 |
deraadt |
getc() returns an int
|
#
1.10 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.9 |
|
18-Sep-2001 |
art |
cleanups and endianness fixes. Mostly from NetBSD
|
Revision tags: OPENBSD_2_9_BASE
|
#
1.8 |
|
31-Jan-2001 |
deraadt |
KNF; tomo@ns1.infinitedata.net
|
#
1.7 |
|
19-Jan-2001 |
deraadt |
mark signal races i cannot fix at the moment
|
Revision tags: OPENBSD_2_8_BASE
|
#
1.6 |
|
30-Sep-2000 |
aaron |
Some format string problems that were missed during initial audit; deraadt@ and millert@ ok
|
Revision tags: OPENBSD_2_7_BASE
|
#
1.5 |
|
26-Apr-2000 |
jasoni |
Support for ext2fs rev. 1
|
Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.4 |
|
25-Jun-1997 |
kstailey |
(foo *)0 -> NULL
|
#
1.3 |
|
14-Jun-1997 |
downsj |
Add tags, fix man page. Purely cosmetic.
|
#
1.2 |
|
14-Jun-1997 |
downsj |
Sync with NetBSD. Purely cosmetic.
|
#
1.1 |
|
30-May-1997 |
downsj |
branches: 1.1.1; Initial revision
|
#
1.28 |
|
06-Feb-2019 |
millert |
Replace overlapping memcpy() with memmove() in getpathname(). Same fix as in fsck_ffs. OK deraadt@ tb@
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.27 |
|
16-Mar-2016 |
krw |
More "(<blah> *)0" -> NULL, avoiding any stdarg functions.
Feedback millert@ kettenis@
|
Revision tags: OPENBSD_5_9_BASE
|
#
1.26 |
|
05-Sep-2015 |
guenther |
snprintf+write --> dprintf
ok deraadt@
|
#
1.25 |
|
20-Aug-2015 |
deraadt |
<stdlib.h> is included, so do not need to cast result from malloc, calloc, realloc* ok krw millert
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.24 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.23 |
|
13-Jul-2014 |
pelikan |
kill fs2hXX/h2fsXX macros with letohXX/htoleXX
The reason being that ext2 structures are little-endian but JBD2 journal is big-endian. Don't confuse readers by talking about "file system endian".
ok guenther
|
#
1.22 |
|
24-May-2014 |
krw |
Use consistent format specifiers (%lld) and casts (long long) when printing out block numbers and sector numbers. Make output verbiage consistent. -Wall happier.
Original diff and ok chl@
|
#
1.21 |
|
22-May-2014 |
krw |
Nuke pointless dev_bsize variable which is always set to 512, and just use DEV_BSIZE.
Write sizes need to be secsize and not DEV_BSIZE, just like reads.
Equivalent to changes made in fsck_ffs.
|
#
1.20 |
|
20-May-2014 |
krw |
As suggested by guenther@ and millert@, replace seek+[read|write] with p[read|write]. Makes the code much clearer by eliminating extra error checking and verbiage.
No intentional functional change.
Tweaks by and ok guenther@
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.19 |
|
12-Mar-2011 |
deraadt |
These utilities can currently only operate with a 32-bit block number range, so use daddr32_t ok jasper
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.18 |
|
10-Dec-2009 |
deraadt |
do not leak memory, found by parfait, ok millert otto (one case was a false positive, but one is a modified copy of the other)
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.17 |
|
20-Apr-2006 |
deraadt |
solve some signal races; from fsck_ffs; ok pedro
|
#
1.16 |
|
02-Apr-2006 |
deraadt |
use SEEK_* for lseek()
|
#
1.15 |
|
30-Mar-2006 |
deraadt |
when asking y or n, accept "F" which forces yes from the on. i have wished for this for 10+ year, but always forgotten to make the change after cleaning up a nasty file system; ok pedro millert
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.14 |
|
11-Jun-2003 |
deraadt |
ansification
|
#
1.13 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
1.12 |
|
17-Apr-2003 |
tedu |
strings. mostly from deraadt@, some from tdeval@ and myself
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.11 |
|
23-Feb-2002 |
deraadt |
getc() returns an int
|
#
1.10 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.9 |
|
18-Sep-2001 |
art |
cleanups and endianness fixes. Mostly from NetBSD
|
Revision tags: OPENBSD_2_9_BASE
|
#
1.8 |
|
31-Jan-2001 |
deraadt |
KNF; tomo@ns1.infinitedata.net
|
#
1.7 |
|
19-Jan-2001 |
deraadt |
mark signal races i cannot fix at the moment
|
Revision tags: OPENBSD_2_8_BASE
|
#
1.6 |
|
30-Sep-2000 |
aaron |
Some format string problems that were missed during initial audit; deraadt@ and millert@ ok
|
Revision tags: OPENBSD_2_7_BASE
|
#
1.5 |
|
26-Apr-2000 |
jasoni |
Support for ext2fs rev. 1
|
Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.4 |
|
25-Jun-1997 |
kstailey |
(foo *)0 -> NULL
|
#
1.3 |
|
14-Jun-1997 |
downsj |
Add tags, fix man page. Purely cosmetic.
|
#
1.2 |
|
14-Jun-1997 |
downsj |
Sync with NetBSD. Purely cosmetic.
|
#
1.1 |
|
30-May-1997 |
downsj |
branches: 1.1.1; Initial revision
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.27 |
|
16-Mar-2016 |
krw |
More "(<blah> *)0" -> NULL, avoiding any stdarg functions.
Feedback millert@ kettenis@
|
Revision tags: OPENBSD_5_9_BASE
|
#
1.26 |
|
05-Sep-2015 |
guenther |
snprintf+write --> dprintf
ok deraadt@
|
#
1.25 |
|
20-Aug-2015 |
deraadt |
<stdlib.h> is included, so do not need to cast result from malloc, calloc, realloc* ok krw millert
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.24 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.23 |
|
13-Jul-2014 |
pelikan |
kill fs2hXX/h2fsXX macros with letohXX/htoleXX
The reason being that ext2 structures are little-endian but JBD2 journal is big-endian. Don't confuse readers by talking about "file system endian".
ok guenther
|
#
1.22 |
|
24-May-2014 |
krw |
Use consistent format specifiers (%lld) and casts (long long) when printing out block numbers and sector numbers. Make output verbiage consistent. -Wall happier.
Original diff and ok chl@
|
#
1.21 |
|
22-May-2014 |
krw |
Nuke pointless dev_bsize variable which is always set to 512, and just use DEV_BSIZE.
Write sizes need to be secsize and not DEV_BSIZE, just like reads.
Equivalent to changes made in fsck_ffs.
|
#
1.20 |
|
20-May-2014 |
krw |
As suggested by guenther@ and millert@, replace seek+[read|write] with p[read|write]. Makes the code much clearer by eliminating extra error checking and verbiage.
No intentional functional change.
Tweaks by and ok guenther@
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.19 |
|
12-Mar-2011 |
deraadt |
These utilities can currently only operate with a 32-bit block number range, so use daddr32_t ok jasper
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.18 |
|
10-Dec-2009 |
deraadt |
do not leak memory, found by parfait, ok millert otto (one case was a false positive, but one is a modified copy of the other)
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.17 |
|
20-Apr-2006 |
deraadt |
solve some signal races; from fsck_ffs; ok pedro
|
#
1.16 |
|
02-Apr-2006 |
deraadt |
use SEEK_* for lseek()
|
#
1.15 |
|
30-Mar-2006 |
deraadt |
when asking y or n, accept "F" which forces yes from the on. i have wished for this for 10+ year, but always forgotten to make the change after cleaning up a nasty file system; ok pedro millert
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.14 |
|
11-Jun-2003 |
deraadt |
ansification
|
#
1.13 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
1.12 |
|
17-Apr-2003 |
tedu |
strings. mostly from deraadt@, some from tdeval@ and myself
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.11 |
|
23-Feb-2002 |
deraadt |
getc() returns an int
|
#
1.10 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.9 |
|
18-Sep-2001 |
art |
cleanups and endianness fixes. Mostly from NetBSD
|
Revision tags: OPENBSD_2_9_BASE
|
#
1.8 |
|
31-Jan-2001 |
deraadt |
KNF; tomo@ns1.infinitedata.net
|
#
1.7 |
|
19-Jan-2001 |
deraadt |
mark signal races i cannot fix at the moment
|
Revision tags: OPENBSD_2_8_BASE
|
#
1.6 |
|
30-Sep-2000 |
aaron |
Some format string problems that were missed during initial audit; deraadt@ and millert@ ok
|
Revision tags: OPENBSD_2_7_BASE
|
#
1.5 |
|
26-Apr-2000 |
jasoni |
Support for ext2fs rev. 1
|
Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.4 |
|
25-Jun-1997 |
kstailey |
(foo *)0 -> NULL
|
#
1.3 |
|
14-Jun-1997 |
downsj |
Add tags, fix man page. Purely cosmetic.
|
#
1.2 |
|
14-Jun-1997 |
downsj |
Sync with NetBSD. Purely cosmetic.
|
#
1.1 |
|
30-May-1997 |
downsj |
branches: 1.1.1; Initial revision
|