millert
10a7b75896
No need to declare optind, optarg or opterr; unistd.h does this for us.
...
From Jan Stary. OK deraadt@
2021-11-15 15:14:24 +00:00
krw
c9899b11e3
More "(<blah> *)0" -> NULL, avoiding any stdarg functions.
...
Feedback millert@ kettenis@
2016-03-16 15:41:10 +00:00
zhuk
07e1d38d1e
Put repquota in line with other utilities: you either wants list everyting,
...
effectively using -a, or you specify filesystems one-by-one. Doing both
resulted in a funny error messages, so just don't allow that silly behaviour.
okay millert@
2015-10-26 17:55:32 +00:00
deraadt
35de856ed2
stdlib.h is in scope; do not cast malloc/calloc/realloc*
...
ok millert krw
2015-08-20 22:39:29 +00:00
deraadt
b9fc9a728f
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)
2015-01-16 06:39:28 +00:00
deraadt
d2c6284988
ensure there are prototypes
2013-11-12 22:27:11 +00:00
deraadt
043fbe51c1
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
...
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
2009-10-27 23:59:19 +00:00
mbalmer
ba1e80a516
Fix use of arguments in usage().
...
ok winiger
2007-09-07 14:23:55 +00:00
jmc
35570244d5
tidy up synopsis and usage(); partly from Igor Sobrado
2007-02-18 23:17:59 +00:00
otto
e93b78dc77
Report quotas > 10GB in a readable way. Diff based on PR 2836.
...
ok deraadt@
2005-04-03 19:02:30 +00:00
deraadt
a36c187778
these commands said "blocks" when they meant "KBytes" (they even calculated
...
it so). pointed out by janc@cyberspace.org , pr 3956
2005-04-01 04:31:09 +00:00
deraadt
f303ad03a2
strict proto cleanups
2003-06-26 19:47:08 +00:00
deraadt
356eac964f
ansi
2003-06-25 15:54:17 +00:00
millert
29295d1c5c
Remove the advertising clause in the UCB license which Berkeley
...
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02 23:27:43 +00:00
jason
1b29a6b504
pull in stdlib.h to avoid implicit decl of calloc(); ok henning
2003-04-30 15:30:05 +00:00
deraadt
c4815d1283
boring nothing commit from cloder
2003-03-30 20:52:42 +00:00
deraadt
8b41cba402
snprintf; millert ok
2003-03-30 20:47:42 +00:00
deraadt
9570983956
cope with INITQFNAMES without a ;
2002-09-06 21:49:21 +00:00
deraadt
a66aacc8c8
no ; after INITQFNAMES
2002-09-06 18:29:37 +00:00
deraadt
ead3e1cadb
more sprintf
2002-05-29 09:45:08 +00:00
mpech
0ac0d02e42
kill more registers.
...
millert@ ok
2002-03-14 16:44:24 +00:00
millert
c72b5b24e1
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.
2002-02-16 21:27:05 +00:00
angelos
849373577f
Revert previous patch.
2001-01-15 05:19:10 +00:00
angelos
717081f3a0
Handle quotas over 4G, PR 1534 (bob@prophecy.lu)
2001-01-14 23:03:05 +00:00
pjanzen
a401ccffdb
Print quotas > 4G correctly; be a little more paranoid with a few buffers.
2000-12-21 09:50:00 +00:00
millert
190a63f4cb
Fix pasto: repquota does not report user quotas when a volume argument is given
...
and there are no group quotas set. canacar@eee.metu.edu.tr
2000-09-11 18:47:29 +00:00
deraadt
e0cb68519e
no need to extern int errno if errno.h is included
2000-02-01 03:23:17 +00:00
millert
180acc8f08
r?index -> strr?chr
1997-01-17 07:10:42 +00:00
deraadt
9f9bbac1c4
fix a typical use; -Wall
1996-12-12 20:32:17 +00:00
deraadt
b0f424dd2d
allow operation even if fstab does not label filesystem as supporting
...
quotas; pointed out by jonny@gaia.coppe.ufrj.br
1996-05-04 12:28:18 +00:00
deraadt
dde996756c
permit quotas to work on mfs; problem reported by rdante@pnet.net
1996-04-25 11:04:01 +00:00
deraadt
f3bae140e8
sync to netbsd 960418
1996-04-21 23:38:17 +00:00
deraadt
e5cb37d181
accept either ffs or ufs for filesystem name
1996-01-07 05:28:00 +00:00
deraadt
6815161e0c
Complete change from ufs -> ffs; (From Tatoku Ogaito; PR #1679 )
1995-11-06 21:40:46 +00:00
deraadt
36458106ac
ufs -> ffs
1995-10-24 14:32:18 +00:00
deraadt
df930be708
initial import of NetBSD tree
1995-10-18 08:37:01 +00:00