Commit Graph

27 Commits

Author SHA1 Message Date
Ed Schouten
bf70becee6 More -Wmissing-variable-declarations fixes.
In addition to adding `static' where possible:

- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
2012-10-19 14:49:42 +00:00
Kirk McKusick
516ad57b74 Debugging nits found while testing the new 64-bit quota code. 2010-03-16 06:12:30 +00:00
Dag-Erling Smørgrav
7c54172a4f Fix warnings + indentation + utmpx 2010-03-04 10:57:52 +00:00
Kirk McKusick
4e717eeafc Claen up format when doing non-humanized output. 2009-10-20 17:50:27 +00:00
Kirk McKusick
0cf50fd7dc Update to work with quotafile functions in -libutil.
Add -h flag to provide humanized output.
2009-10-20 05:40:51 +00:00
Dag-Erling Smørgrav
8f518424d9 Drag this code kicking and screaming into the twenty-first century. 2008-07-02 15:51:59 +00:00
Mike Pritchard
ea11023020 Change the header to indicate which type of id is being displayed,
"User" or "Group", instead of identifying them all as "User".

Approved by:	re (bmah)
2007-09-19 01:10:31 +00:00
Mike Pritchard
fbb42904c4 If two files systems, /a and /b are marked as having quotas enabled
in fstab and they are normally mounted as /a/b, if /b is not mounted,
the various quota utilities will incorrectly operate with the quotas on
/a (silently) when operations are attemted on /b.

Sync up all the hasquota() routines between all the different
quota utilities and change it to detect if the file system we are
attempting to perform quota operations on is not currently mounted
and warn the user accordingly.

PR:	bin/38918
2007-02-04 06:33:15 +00:00
Maxim Konovalov
f8c5e12739 Allocate an additional white space in a username column for
a long (UT_NAMESIZE) login names.

PR:		bin/75259
Submitted by:	Matthew D.Fuller
MFC after:	2 weeks
2004-12-19 18:02:45 +00:00
Warner Losh
486c8cc4c6 Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
(with permission of addtional copyright holders where appropriate)
2004-08-07 04:28:56 +00:00
Peter Grehan
5cfe0423e6 Userland signed char fixes for PPC build. Problems were using a char
return for getopt() and comparing to -1, ditto with fgetc() and EOF,
and using the kg_nice value from <sys/user.h>

Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: obrien, bde (a while back)
Tested lightly on: ppc, i386, make universe
2004-01-22 07:23:36 +00:00
Brooks Davis
974ac91938 Add support for a -n argument which displays user and group IDs
numerically rather than converting to a user or group name.

MFC After: 1 week
2003-07-07 21:41:23 +00:00
David E. O'Brien
b728350ee6 Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
Alfred Perlstein
d8c965959f WARNS=4, de-__P() 2002-07-11 21:26:41 +00:00
Tom Rhodes
67c8020f12 Consistancy check: s/file system/filesystem/g 2002-05-16 02:28:39 +00:00
Bruce Evans
10acff06b9 #include <time.h> for the definition of time functions instead of
depending on namespace pollution 2 layers deep in <sys/stat.h>.

Removed unused include of <sys/stat.h>.  Only its pollution was used.
2002-02-25 07:39:34 +00:00
Mike Heffner
0ca71ce75d WARNS=2 cleanup.
Submitted by:	Maxime Henrion <mux@qualys.com>
MFC after:	2 weeks
2001-12-10 06:25:35 +00:00
Dima Dorfman
886cc6daf6 Print "-" instead of "" in the grace field if there is no grace
period; this keeps the number of whitespace-separated fields constant.

PR:		15739, 23908
Submitted by:	Valentin Nechayev <netch@netch.kiev.ua>
2001-06-19 00:47:24 +00:00
Julian Elischer
a8ae1d2ba8 Description
repquota reports softlimits, hardlimits and ``used'' field
    incorrectly, namely those numbers get wrapped modulo 4Gbytes.

PR:	 bin/8164
Submitted by:	 Anton Berezin <tobez@plab.ku.dk>
1999-11-01 04:46:09 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Joseph Koshy
f1838373aa Larger, space separated fields in the output of repquota.
PR:		8730
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
1999-06-11 10:31:24 +00:00
Andrey A. Chernov
4cc28395cc Make it compatible with long usernames 1998-06-14 22:56:31 +00:00
Philippe Charnier
713fe15b36 Use err(3). Add prototypes. 1997-10-13 11:05:07 +00:00
Warner Losh
6c3f552a31 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
Rodney W. Grimes
709e8f9ae1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
Bruce Evans
2d732692dc Fix 3 fatal mismatches in format args involving dbtob() and 7 nonfatal
mismatches.
1995-05-07 08:13:37 +00:00
Rodney W. Grimes
dea673e932 BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00