| Summary: | inconsistency in a man page (versus KERNEL config) | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | thierry <thierry> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Thierry Herbelot <thierry@herbelot.com> writes: > >Description: > the man page for mkfifo(2) says : > -------------- > ERRORS > Mkfifo() will fail and no fifo will be created if: > > [ENOTSUP] The kernel has not been configured to support fifo's. > -------------- > > I do not see any FIFO config option in the LINT kernel config file, > thus the man page seems to be wrong : it is not possible to compile > a FreeBSD kernel without FIFO's Man pages for calls that are defined by some standard (in this case, by POSIX.2) should document all allowed error returns even if they aren't possible in FreeBSD today. This allows program authors to write portable code; portable not only across platforms, but across different versions of FreeBSD (who's to say there won't be a kernel option for this tomorrow?). State Changed From-To: open->closed As Dima pointed out, this return code is for compatibility. Remember software that is ported to other OSes. |
the man page for mkfifo(2) says : -------------- ERRORS Mkfifo() will fail and no fifo will be created if: [ENOTSUP] The kernel has not been configured to support fifo's. -------------- I do not see any FIFO config option in the LINT kernel config file, thus the man page seems to be wrong : it is not possible to compile a FreeBSD kernel without FIFO's Fix: the manual lines cited should be removed