[haiku-bugs] Re: [Haiku] #16651: MMAP: mmap the pipe fd to memory gives a Permission Denied result

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 08 Dec 2020 20:06:07 -0000

#16651: MMAP: mmap the pipe fd to memory gives a Permission Denied result
---------------------------+----------------------------
  Reporter:  cocobean      |      Owner:  nobody
      Type:  bug           |     Status:  new
  Priority:  normal        |  Milestone:  Unscheduled
 Component:  System/POSIX  |    Version:  R1/Development
Resolution:                |   Keywords:  mmap, posix
Blocked By:                |   Blocking:
  Platform:  All           |
---------------------------+----------------------------
Description changed by cocobean:

Old description:

* The mmap( ) function shall fail if:
 * [ENODEV] The fildes argument refers to a file whose type is not
supported by mmap( ).
 *
 * Test Step:
 * 1. Create pipe;
 * 2. mmap the pipe fd to memory, should get ENODEV;

* Expected Result: ENODEF
* Result: Permmission denied
* Tested on Haiku R1B2 x86 (+123)

Ref:
https://github.com/haiku/open_posix_testsuite/blob/from_haiku_trunk/conformance/interfaces/mmap/23-1.c

New description:

 * The mmap( ) function shall fail if:
  * [ENODEV] The fildes argument refers to a file whose type is not
 supported by mmap( ).
  *
  * Test Step:
  * 1. Create pipe;
  * 2. mmap the pipe fd to memory, should get ENODEV;

 * Expected Result: ENODEF
 * Result: Permission denied
 * Tested on Haiku R1B2 x86 (+123)

 Ref:
 
https://github.com/haiku/open_posix_testsuite/blob/from_haiku_trunk/conformance/interfaces/mmap/23-1.c

--
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16651#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: