[Bug 209229] [PATCH] shmget(2) missing includes

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 3 09:37:01 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209229

            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 at FreeBSD.org
          Reporter: mt at markoturk.info
          Keywords: patch

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

Hi,

shmget(2) man page says to include sys/types.h which is not necessary. Instead
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

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


More information about the freebsd-doc mailing list