Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 19 Dec 2019 03:37:14 -0500
From: Alex Brachet-Mialot <alexbrachetmialot@...il.com>
To: "musl@...ts.openwall.com" <musl@...ts.openwall.com>
Subject: mmap implementation confusion

In src/mman/mmap.c mmap (after light einval checks) just returns the result
of the syscall directly. But presumably the OS returns -E* and not -1 for
all failures. Otherwise something like EBADF could never go reported.
Presumably musl is compliant here and returns -1 on error and not the
negative value from the OS but I’m not seeing that logic. Am I missing
something here? Thanks.

Best,
Alex

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.