Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #609 from dawgfoto/linux_mman
Browse files Browse the repository at this point in the history
Linux mman
  • Loading branch information
jmdavis committed Sep 27, 2013
2 parents 439d079 + 98097c6 commit acbf662
Show file tree
Hide file tree
Showing 10 changed files with 843 additions and 59 deletions.
4 changes: 3 additions & 1 deletion mak/COPY
Expand Up @@ -51,9 +51,11 @@ COPY=\
$(IMPDIR)\core\sys\linux\errno.d \
$(IMPDIR)\core\sys\linux\execinfo.d \
$(IMPDIR)\core\sys\linux\link.d \
\
$(IMPDIR)\core\sys\linux\sys\inotify.d \
$(IMPDIR)\core\sys\linux\sys\mman.d \
$(IMPDIR)\core\sys\linux\sys\signalfd.d \
$(IMPDIR)\core\sys\linux\sys\xattr.d \
$(IMPDIR)\core\sys\linux\sys\inotify.d \
\
$(IMPDIR)\core\sys\osx\execinfo.d \
$(IMPDIR)\core\sys\osx\pthread.d \
Expand Down
3 changes: 2 additions & 1 deletion mak/MANIFEST
Expand Up @@ -80,9 +80,10 @@ MANIFEST=\
src\core\sys\linux\execinfo.d \
src\core\sys\linux\link.d \
\
src\core\sys\linux\sys\inotify.d \
src\core\sys\linux\sys\mman.d \
src\core\sys\linux\sys\signalfd.d \
src\core\sys\linux\sys\xattr.d \
src\core\sys\linux\sys\inotify.d \
\
src\core\sys\osx\execinfo.d \
src\core\sys\osx\pthread.d \
Expand Down
15 changes: 9 additions & 6 deletions src/core/sys/linux/config.d
Expand Up @@ -11,12 +11,15 @@ public import core.sys.posix.config;

// man 7 feature_test_macros
// http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
enum _GNU_SOURCE = true;
enum _GNU_SOURCE = true;
// deduced <features.h>
// http://sourceware.org/git/?p=glibc.git;a=blob;f=include/features.h
enum _BSD_SOURCE = true;
enum _SVID_SOURCE = true;
enum _ATFILE_SOURCE = true;
enum _BSD_SOURCE = true;
enum _SVID_SOURCE = true;
enum _ATFILE_SOURCE = true;

enum __USE_GNU = _GNU_SOURCE;
enum __USE_MISC = _BSD_SOURCE || _SVID_SOURCE;
enum __USE_MISC = _BSD_SOURCE || _SVID_SOURCE;
enum __USE_BSD = _BSD_SOURCE;
enum __USE_SVID = _SVID_SOURCE;
enum __USE_ATFILE = _ATFILE_SOURCE;
enum __USE_GNU = _GNU_SOURCE;

0 comments on commit acbf662

Please sign in to comment.