~ubuntu-branches/ubuntu/wily/afnix/wily

« back to all changes in this revision

Viewing changes to src/lib/plt/shl/cmem.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2011-03-16 21:31:18 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110316213118-gk4k3ez3e5d2huna
Tags: 2.0.0-1
* QA upload.
* New upstream release
* Debian source format is 3.0 (quilt)
* Fix debhelper-but-no-misc-depends
* Fix ancient-standards-version
* Fix package-contains-linda-override
* debhelper compatibility is 7
* Fix dh-clean-k-is-deprecated

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// ---------------------------------------------------------------------------
2
2
// - cmem.hxx                                                                -
3
 
// - standard system library - c memory function platform definitions        -
 
3
// - standard platform library - c memory function platform definitions      -
4
4
// ---------------------------------------------------------------------------
5
5
// - This program is free software;  you can redistribute it  and/or  modify -
6
6
// - it provided that this copyright notice is kept intact.                  -
11
11
// - the copyright holder be liable for any  direct, indirect, incidental or -
12
12
// - special damages arising in any way out of the use of this software.     -
13
13
// ---------------------------------------------------------------------------
14
 
// - copyright (c) 1999-2007 amaury darsch                                   -
 
14
// - copyright (c) 1999-2011 amaury darsch                                   -
15
15
// ---------------------------------------------------------------------------
16
16
 
17
17
// check for unknown platform
30
30
#define  _GNU_SOURCE
31
31
#endif
32
32
#define  AFNIX_HAVE_PAGESIZE
 
33
#define  AFNIX_HAVE_MPROTECT
33
34
#define  AFNIX_HAVE_MAPANON
34
35
#define  AFNIX_HAVE_MREMAP
35
36
#include <sys/types.h>
53
54
// freebsd platform
54
55
#if (AFNIX_PLATFORM_PLATID == AFNIX_PLATFORM_FREEBSD)
55
56
#define  AFNIX_HAVE_PAGESIZE
 
57
#define  AFNIX_HAVE_MPROTECT
 
58
#define  AFNIX_HAVE_MAPANON
56
59
#include <sys/types.h>
57
60
#include <sys/mman.h>
58
61
#include <fcntl.h>
64
67
// darwin platform
65
68
#if (AFNIX_PLATFORM_PLATID == AFNIX_PLATFORM_DARWIN)
66
69
#define  AFNIX_HAVE_PAGESIZE
 
70
#define  AFNIX_HAVE_MPROTECT
67
71
#define  AFNIX_HAVE_MAPANON
68
72
#include <sys/types.h>
69
73
#include <sys/mman.h>
78
82
#define  _GNU_SOURCE
79
83
#endif
80
84
#define  AFNIX_HAVE_PAGESIZE
 
85
#define  AFNIX_HAVE_MPROTECT
81
86
#define  AFNIX_HAVE_MAPANON
82
87
#include <sys/types.h>
83
88
#include <sys/mman.h>