[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-bugs
Subject: documentation/1208: (no subject)
From: Anders Thulin <ath () algonet ! se>
Date: 2000-04-23 18:27:37
[Download RAW message or body]
>Number: 1208
>Category: documentation
>Synopsis: Error in quotactl(2) manpage
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 23 12:30:01 MDT 2000
>Last-Modified:
>Originator: Anders Thulin
>Organization:
net
>Release: 2.6
>Environment:
System : OpenBSD 2.6
Architecture: OpenBSD.sparc
Machine : sparc
>Description:
The quotactl(2) man page (/usr/src/lib/libc/sys/quotactl.2)
suggests the quotactl() function is declared in <ufs/ufs/quota.h>.
It is not -- quotactl is declared in <unistd.h>, while the
commands it uses are defined in <ufs/ufs/quota.h>. Programmers
will thus not get the appropriate prototype if they only use the
<ufs/ufs/quota.h> file.
>How-To-Repeat:
not applicable
>Fix:
Add a reference to <unistd.h> to the man page.
Suggested patch:
*** quotactl.2.orig Wed Jul 7 22:17:38 1999
--- quotactl.2 Sun Apr 23 20:15:07 2000
***************
*** 45,50 ****
--- 45,51 ----
.Nd manipulate filesystem quotas
.Sh SYNOPSIS
.Fd #include <ufs/ufs/quota.h> /* for ufs quotas */
+ .Fd #include <unistd.h>
.Ft int
.Fn quotactl "const char *path" "int cmd" "int id" "char *addr"
.Sh DESCRIPTION
--
Anders Thulin ath@algonet.se http://www.algonet.se/~ath
>Audit-Trail:
>Unformatted:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic