POSIX man pages on FreeBSD

D

Deleted member 65953

Guest
Does FreeBSD provide man pages for POSIX? In Debian and Ubuntu, I usually install the "manpages-posix" and "manpages-posix-dev" packages to get POSIX man pages. Is there something similar for FreeBSD?

 
I didn't know that Posix manpages are freely available. Do you have a link for that?
They publish a freely available (but perhaps copyrighted) version of the man pages on the web, in the form of html pages.

Member companies of the Open Group used to get roff sources. In a previous job used to have access to those, and the ability to read them in the "man page" format; someone had written a tool that worked like man and rendered the Posix roff nicely. We also had binders with printed versions, but those were always out of date or misplaced. I mostly relied on the Open Group web pages when checking for conformance.
 
I didn't know that Posix manpages are freely available. Do you have a link for that?
Below is an excerpt of /usr/share/doc/manpages-posix/copyright installed by Debian's "manpages-posix" package:
Source: https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/
Disclaimer:
This package is not part of the Debian distribution since it comes
with a non DFSG-free license.

Files: *
Copyright:
(C) 2013 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group
License: Other
The Institute of Electrical and Electronics Engineers (IEEE) and
The Open Group, have given us permission to reprint portions of
their documentation.
.
In the following statement, the phrase ``this text'' refers to
portions of the system documentation.
.
Portions of this text are reprinted and reproduced in electronic form
from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
-- Portable Operating System Interface (POSIX), The Open Group Base
Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri-
cal and Electronics Engineers, Inc and The Open Group. (This is
POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online
at http://www.unix.org/online.html .
.
This notice shall appear on any product containing this material.
.
Redistribution of this material is permitted so long as this notice and
the corresponding notices within each POSIX manual page are retained on
any distribution, and the nroff source is included. Modifications to
the text are permitted so long as any conflicts with the standard
are clearly marked as such in the text.
 
This package contains manual pages for POSIX utilities and keeps them in section 1 (with 1posix extension) of the on-line manual.

so this isn't an individual manpage but rather a collection of manpages for standard tools that are POSIX-conformant. I suspect on linux this is necessary because most GNU tools have (breaking) distinctions in syntax and functionality and some standard tools aren't even part of the default installation of some distributions.

From a quick glance over the FreeBSD manpages for some of the tools listed by that package [1] it seems the (Free)BSD tools usually follow the POSIX standards or are fully compatible:

e.g. awk:
Code:
     The awk utility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”)
     specification, except awk does not support {n,m} pattern matching.

e.g. bc
Code:
      This bc(1) follows the POSIX standard (see the STANDARDS section),
       which is a much more thorough resource for the language this bc(1)
       accepts.  This section is meant to be a summary and a listing of all
       the extensions to the standard.

e.g. chmod
Code:
    The chmod utility is expected to be IEEE Std 1003.2 (“POSIX.2”)
     compatible with the exception of the perm symbol “t” which is not
     included in that standard.


So I suspect that those "posix" packages are only necessary for linux to become POSIX-compliant because the gnu tools they use by default aren't.



[1] https://packages.debian.org/bullseye/all/manpages-posix/filelist
 
Back
Top