Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2000 15:03:13 -0800 (PST)
From:      dwhedon@gordian.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/23366: mmap() non conforming
Message-ID:  <200012072303.eB7N3Dp10886@freefall.freebsd.org>
Resent-Message-ID: <200012072310.eB7NA1f13685@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <sys/mman.h>
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




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