From owner-freebsd-bugs Fri Sep 29 3:41: 2 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E13AC37B43E for ; Fri, 29 Sep 2000 03:40:18 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA60567; Fri, 29 Sep 2000 03:40:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Fri, 29 Sep 2000 03:40:18 -0700 (PDT) Message-Id: <200009291040.DAA60567@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: misc/21644: /usr/include/sys/mman.h uses a type defined in /usr/include/sys/types.h Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/21644; it has been noted by GNATS. From: Peter Pentchev 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 and 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 - 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