Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 May 2016 09:37:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-doc@FreeBSD.org
Subject:   [Bug 209229] [PATCH] shmget(2) missing includes
Message-ID:  <bug-209229-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209229

            Bug ID: 209229
           Summary: [PATCH] shmget(2) missing includes
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Documentation
          Assignee: freebsd-doc@FreeBSD.org
          Reporter: mt@markoturk.info
          Keywords: patch

Created attachment 169907
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169907&action=
=3Dedit
patch for shmget(2)

Hi,

shmget(2) man page says to include sys/types.h which is not necessary. Inst=
ead
sys/stat.h should be used because it contains S_IRUSR (and others).

Without sys/stat.h the compiler throws an error:
sgt.c:7:37: error: use of undeclared identifier 'S_IRUSR'

I have attached the patch.

BR,
Marko

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209229-9>