Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2000 03:40:18 -0700 (PDT)
From:      Peter Pentchev <roam@orbitel.bg>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/21644: /usr/include/sys/mman.h uses a type defined in /usr/include/sys/types.h
Message-ID:  <200009291040.DAA60567@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/21644; it has been noted by GNATS.

From: Peter Pentchev <roam@orbitel.bg>
To: toga@puyo.org
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/21644: /usr/include/sys/mman.h uses a type defined in /usr/include/sys/types.h
Date: Fri, 29 Sep 2000 13:34:02 +0300

 On Fri, Sep 29, 2000 at 03:05:19AM -0700, toga@puyo.org wrote:
 > >Synopsis:       /usr/include/sys/mman.h uses a type defined in /usr/include/sys/types.h
 [snip]
 > >Description:
 > In /usr/include/sys/mman.h , 
 > 
 > line 134
 > int     shm_open __P((const char *, int, mode_t));
 > 
 > but type "mode_t" is defined in /usr/include/sys/types.h.
 > And mman.h don't include types.h. So using mman.h, without
 > including types.h, causes compile error.
 
 Uhm.. the shm_open(3) manpage lists both <sys/types.h> and <sys/mman.h>
 as headers you should include when using shm_open().  That is, on FreeBSD,
 this is a well documented header dependency.
 
 It is true, though, that SUSv2 says shm_open() should only need <sys/mman.h> -
 http://www.opengroup.org/onlinepubs/007908799/xsh/shm_open.html
 
 G'luck,
 Peter
 
 -- 
 This sentence contains exactly threee erors.
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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