MLOCK_ONFAULT is a Linux-only feature (hence the need to include <linux/mman.h> wrapped by OPENSSL_SYS_LINUX.
So, you should not be encountering any MLOCK_ONFAULT or <linux/mman.h> issues on MacOS. -- -Todd Short // tsh...@akamai.com // "One if by land, two if by sea, three if by the Internet." > On May 15, 2017, at 1:51 PM, Blumenthal, Uri - 0553 - MITLL <u...@ll.mit.edu> > wrote: > > On 5/15/17, 1:20 PM, "openssl-dev on behalf of Benjamin Kaduk via > openssl-dev" <openssl-dev-boun...@openssl.org > <mailto:openssl-dev-boun...@openssl.org> on behalf of openssl-dev@openssl.org > <mailto:openssl-dev@openssl.org>> wrote: >> > On a semi-related note, I want able to locate mann.h file either. > > `man mmap` will list any headers needed for the mmap() declaration and flag > values. > On the random OS X machine I have handy, it claims <sys/mman.h> is needed, > and a /usr/include/sys/mman.h is present. > > Thanks – I confirm that `man mmap` mentions /usr/include/sys/mman.h, and that > file does exist (how could my first `find` miss it?!). > This file does not contain MLOCK_ONFAULT though. > > It has MAP_ANON: > > /* > * Mapping type > */ > #define MAP_FILE 0x0000 /* map from file (default) */ > #define MAP_ANON 0x1000 /* allocated from memory, swap space */ > #define MAP_ANONYMOUS MAP_ANON > > And as I already mentioned, it has a world-accessible (figuratively speaking > :) /dev/zero that can be opened read/write. > > Also, with #3455 applied the problem disappeared (thankfully :). > > -- > openssl-dev mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev > <https://mta.openssl.org/mailman/listinfo/openssl-dev>
smime.p7s
Description: S/MIME cryptographic signature
-- openssl-dev mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev