Date: Sun, 9 Sep 2001 12:10:49 -0700 (PDT) From: Steve Watt <steve@Watt.COM> To: freebsd-gnats-submit@freebsd.org Subject: docs/30463: shm_open man page missing <fcntl.h> Message-ID: <200109091910.f89JAnG02417@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 30463 >Category: docs >Synopsis: shm_open man page missing <fcntl.h> >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 09 12:20:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Steve Watt >Release: 4.3-STABLE 2001-04-25 >Organization: >Environment: FreeBSD wattres.Watt.COM 4.3-STABLE FreeBSD 4.3-STABLE #9: Sun May 20 13:25:38 PDT 2001 root@wattres.Watt.COM:/old/usr/obj/usr/src/sys/WATTRES i386 >Description: The manual page for shm_open does not state that <fcntl.h> is a required header. You need it to get the O_* flags for the flags argument. Hmm... Does <sys/stat.h> need to be there (and on the open(3)) page to get the S_* flags for mode? I think it's there in the POSIX spec, but I don't have a copy at hand any more. >How-To-Repeat: man shm_open >Fix: --- shm_open.3.orig Sun Sep 9 12:09:18 2001 +++ shm_open.3 Sun Sep 9 12:10:15 2001 @@ -26,7 +26,7 @@ .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $FreeBSD: src/lib/libc/gen/shm_open.3,v 1.3.2.3 2001/03/06 16:45:54 ru Exp $ +.\" $FreeBSD: src/lib/libc/gen/shm_open.3,v 1.3.2.3+ 2001/09/09 17:09:54 steve Exp $ .\" .Dd March 24, 2000 .Dt SHM_OPEN 3 @@ -39,6 +39,7 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS +.Fd #include <fcntl.h> .Fd #include <sys/types.h> .Fd #include <sys/mman.h> .Ft int >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109091910.f89JAnG02417>