return ESRCH in all cases where system does not have a quota for the user;
return ENODEV instead of EINVAL if the device is not a mounted file system
SCCS-vsn: lib/libc/sys/quotactl.2 6.2
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)quotactl.2 6.1 (Berkeley) %G%
+.\" @(#)quotactl.2 6.2 (Berkeley) %G%
indicates a specific major-minor device to be checked.
This call is restricted to the super-user.
.SH "RETURN VALUE"
indicates a specific major-minor device to be checked.
This call is restricted to the super-user.
.SH "RETURN VALUE"
-A successful call returns 0 and, possibly, more
-information specific to the
-.I cmd
-performed; when an error occurs, the value \-1
-is returned and
+A successful call returns 0,
+otherwise the value \-1 is returned and the global variable
-is set to indicate the reason.
+indicates the reason for the failure.
-A
-.I quota
-call will fail when one of the following occurs:
+A \fIquota\fP call will fail when one of the following occurs:
+.TP 15
+[EINVAL]
+The kernel has not been compiled with the QUOTA option.
[EPERM]
The call is priviledged and the caller was not the super-user.
.TP 15
[EPERM]
The call is priviledged and the caller was not the super-user.
.TP 15
The
.I arg
parameter is being interpreted as a major-minor
The
.I arg
parameter is being interpreted as a major-minor