From owner-freebsd-bugs Thu Dec 7 15:10: 8 2000 From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 7 15:10:01 2000 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9CE2737B401 for ; Thu, 7 Dec 2000 15:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eB7NA1f13685; Thu, 7 Dec 2000 15:10:01 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 7 Dec 2000 15:10:01 -0800 (PST) Resent-Message-Id: <200012072310.eB7NA1f13685@freefall.freebsd.org> Resent-From: gnats-admin@FreeBSD.org (GNATS Management) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: gnats-admin@FreeBSD.org, dwhedon@gordian.com Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 780AA37B400 for ; Thu, 7 Dec 2000 15:03:13 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eB7N3Dp10886; Thu, 7 Dec 2000 15:03:13 -0800 (PST) (envelope-from nobody) Message-Id: <200012072303.eB7N3Dp10886@freefall.freebsd.org> Date: Thu, 7 Dec 2000 15:03:13 -0800 (PST) From: dwhedon@gordian.com Sender: nobody@FreeBSD.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/23366: mmap() non conforming Resent-Sender: gnats@FreeBSD.org Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 23366 >Category: misc >Synopsis: mmap() non conforming >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 07 15:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: David Whedon >Release: 4.1-stable >Organization: Gordian >Environment: FreeBSD ruff 4.1-STABLE FreeBSD 4.1-STABLE #15: Sun Sep 10 14:28:39 PDT 2000 davidw@dw3.gordian.com:/usr/src/sys/compile/ELLA i386 >Description: mmap() as defined by the open group doesn't need sys/types.h included: http://www.opengroup.org/onlinepubs/007908799/xsh/mmap.html However, on FreeBSD it is required. This breaks applications that conform to the SuS.  >How-To-Repeat: bash-2.03$ more test.c #include main(){ } bash-2.03$ gcc test.c In file included from test.c:1: /usr/include/sys/mman.h:134: syntax error before `mode_t' /usr/include/sys/mman.h:137: syntax error before `size_t' etc. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message