Commit Graph

6 Commits

Author SHA1 Message Date
dholland 3db227b343 Remove stray p in identifier name. This has (as far as I can tell)
prevented quotacheck and other old-style quota bits from working since
last March. Use a correct declaration in the header file, so that if
something similar happens again affected programs will fail to link
instead of failing to work.

This kind of nonsense is why I like -Wl,-warn-common.
2012-01-30 06:14:43 +00:00
dholland e4f0c6844a Don't strlcpy from a string buffer to itself; the behavior is not
defined.
2012-01-30 06:02:12 +00:00
dholland 2d709bd6e8 Remove unnecessary include. 2012-01-25 01:24:07 +00:00
bouyer d9210c2405 Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
christos 1c901e8c26 merge one more triplicated function 2011-03-06 23:26:05 +00:00
christos e0e65cb1e2 - merge more code.
- simplify struct access.
2011-03-06 22:36:07 +00:00