Deleted Added
full compact
mman.h (8519) mman.h (9507)
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)mman.h 8.1 (Berkeley) 6/2/93
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)mman.h 8.1 (Berkeley) 6/2/93
34 * $Id: mman.h,v 1.6 1995/03/25 17:28:30 davidg Exp $
34 * $Id: mman.h,v 1.7 1995/05/14 19:19:07 nate Exp $
35 */
36
37#ifndef _SYS_MMAN_H_
38#define _SYS_MMAN_H_
39
40/*
41 * Protections are chosen from these bits, or-ed together
42 */
43#define PROT_READ 0x01 /* pages can be read */
44#define PROT_WRITE 0x02 /* pages can be written */
45#define PROT_EXEC 0x04 /* pages can be executed */
46
47/*
48 * Flags contain sharing type and options.
49 * Sharing types; choose one.
50 */
35 */
36
37#ifndef _SYS_MMAN_H_
38#define _SYS_MMAN_H_
39
40/*
41 * Protections are chosen from these bits, or-ed together
42 */
43#define PROT_READ 0x01 /* pages can be read */
44#define PROT_WRITE 0x02 /* pages can be written */
45#define PROT_EXEC 0x04 /* pages can be executed */
46
47/*
48 * Flags contain sharing type and options.
49 * Sharing types; choose one.
50 */
51#define MAP_SHARED 0x0001 /* share changes */
52#define MAP_PRIVATE 0x0002 /* changes are private */
53#define MAP_COPY 0x0004 /* "copy" region at mmap time */
51#define MAP_SHARED 0x0001 /* share changes */
52#define MAP_PRIVATE 0x0002 /* changes are private */
53#define MAP_COPY MAP_PRIVATE /* Obsolete */
54
55/*
56 * Other flags
57 */
58#define MAP_FIXED 0x0010 /* map addr must be exactly as requested */
59#define MAP_RENAME 0x0020 /* Sun: rename private pages to file */
60#define MAP_NORESERVE 0x0040 /* Sun: don't reserve needed swap area */
61#define MAP_INHERIT 0x0080 /* region is retained after exec */

--- 42 unchanged lines hidden ---
54
55/*
56 * Other flags
57 */
58#define MAP_FIXED 0x0010 /* map addr must be exactly as requested */
59#define MAP_RENAME 0x0020 /* Sun: rename private pages to file */
60#define MAP_NORESERVE 0x0040 /* Sun: don't reserve needed swap area */
61#define MAP_INHERIT 0x0080 /* region is retained after exec */

--- 42 unchanged lines hidden ---