summaryrefslogtreecommitdiffstats
path: root/sbin/badsect
AgeCommit message (Collapse)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-4/+4
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2015-11-12use symbolics for flags to openderaadt1-2/+2
from Ricardo Mestre
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orderaadt1-2/+2
delete <sys/param.h> if now possible ok guenther
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-2/+3
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)
2014-05-22Nuke pointless dev_bsize variable which is always set to 512, and justkrw1-11/+2
use DEV_BSIZE. Replace lseek+read with pread().
2014-05-21Nuke some trailing whitespace to shrink subsequent diffs.krw1-2/+2
2013-11-01Sprinkle (long long) casts where %lld is being used to print daddr_tkrw1-7/+9
variables. Some random whitespace/knf repairs encountered on the way. ok miod@ on inspection, feedback & more suggestions from millert@
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt1-7/+7
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-02Switch from antique struct direct to struct direntguenther1-3/+3
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-15/+1
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2007-08-06the ellipsis is not an optional argument; while here, sync the usagesobrado2-6/+6
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-06-29more daddr64_t changes; checked by ottoderaadt1-14/+14
2007-05-31convert to new .Dd format;jmc1-2/+2
2007-03-19Add FFS2 fields to the superblock, change file system tools to keeppedro1-3/+3
accessing FFS1 fields, okay art@, quite some testing by ckuethe@, simon@ and thib@, thanks.
2006-09-20remove references to bad144(8) man page;jmc1-5/+2
2005-07-21remove trailing newlines from err(3) calls; millert@ and matthieu@ ok.fgsch1-3/+3
2004-08-08spacingderaadt1-12/+12
2004-03-03cleanups, use err(). from Mathias () enloco.net pr3679tedu1-47/+39
2003-09-02escape punctuation;jmc1-2/+2
ok deraadt@
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert2-13/+5
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-02Xenu made me fix the strcpy; millert okderaadt1-4/+4
2003-03-13more strlcpy; most from Hans-Joerg.Hoexer@yerbouti.franken.de, a bit from mederaadt1-3/+3
2003-01-29typos;jmc1-6/+6
many tweaks by millert@ (thanks) thanks mpech@ for help with adduser(8) ok millert@
2002-07-03ansideraadt1-12/+5
2002-06-09rm trailing whitespacetodd1-3/+3
2002-02-16Part 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.millert1-4/+4
2001-12-13o) start new sentence on a new line;mpech1-4/+4
o) wrap long lines; o) fix bogus .Xr usage; o) we don't like blank lines; o) always close .Bl tags; o) OpenBSD -> .Ox; o) don't like .Pp before .Ss; millert@ ok;
2001-11-05kill more registers;mpech1-3/+3
millert@ ok
2001-07-07major -Wall cleanup, almost completederaadt1-4/+4
2000-03-18Remove hard sentence breaks, and some other cleanup along the way.aaron1-13/+17
1999-06-29remove reference to format(8), which does not exist; form@kti.nsc.ruaaron1-2/+1
1999-06-04start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@aaron1-5/+5
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonaaron1-2/+2
is used instead; kwesterback@home.com
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netaaron1-2/+2
1998-11-26remove redundancyaaron1-9/+9
1998-09-23alphabetize SEE ALSO entries and order them numerically according to sectionaaron1-3/+3
1998-09-17sbin/ man page fixesaaron1-6/+6
1997-09-21$OpenBSD$deraadt1-2/+1
1996-09-13final correct badsect device patch from curt@portal.caderaadt1-7/+11
1996-08-30use raw device only; netbsd pr#2719; flipk@idea.exnet.iastate.eduderaadt1-2/+10
1996-06-23update rcsidderaadt3-2/+4
1995-10-18initial import of NetBSD treederaadt3-0/+358