annotate osdep/mmap.h @ 36003:8fea01665c83

Remove HidePreferences(), HideAudioConfig() and HideDXR3Config(). Simply destroy the windows. (It's pointless to check whether the window is existing, because it cannot be called without an existing window.) In order to do so, relocate definition of AudioConfig. Additionally, remove unnecessary declarations.
author ib
date Fri, 29 Mar 2013 17:28:44 +0000
parents 32ef0c7cb949
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26076
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
1 /*
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
2 * mmap declaration header for systems with missing/nonfunctional sys/mman.h
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
3 *
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
4 * Copyright (c) 2008 KO Myung-Hun (komh@chollian.net)
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
5 *
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
6 * This file is part of MPlayer.
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
7 *
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
8 * MPlayer is free software; you can redistribute it and/or modify
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
11 * (at your option) any later version.
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
12 *
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
13 * MPlayer is distributed in the hope that it will be useful,
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
16 * GNU General Public License for more details.
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
17 *
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License along
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
21 */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
22
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
23 #ifndef MPLAYER_MMAP_H
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
24 #define MPLAYER_MMAP_H
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
25
26164
32ef0c7cb949 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 26076
diff changeset
26 #include <sys/types.h>
32ef0c7cb949 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 26076
diff changeset
27
26076
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
28 /*
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
29 * Protections are chosen from these bits, or-ed together
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
30 */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
31 #define PROT_NONE 0x00 /* no permissions */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
32 #define PROT_READ 0x01 /* pages can be read */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
33 #define PROT_WRITE 0x02 /* pages can be written */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
34 #define PROT_EXEC 0x04 /* pages can be executed */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
35
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
36 /*
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
37 * Flags contain sharing type and options.
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
38 * Sharing types; choose one.
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
39 */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
40 #define MAP_SHARED 0x0001 /* share changes */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
41 #define MAP_PRIVATE 0x0002 /* changes are private */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
42 #define MAP_FIXED 0x0010 /* map addr must be exactly as requested */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
43
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
44 /*
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
45 * Mapping type
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
46 */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
47 #define MAP_ANON 0x1000 /* allocated from memory, swap space */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
48
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
49 /* MAP_FAILED is defined in config.h */
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
50
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
51 #ifndef _MMAP_DECLARED
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
52 #define _MMAP_DECLARED
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
53 void *mmap( void *addr, size_t len, int prot, int flags, int fildes, off_t off );
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
54 #endif
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
55 int munmap( void *addr, size_t len );
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
56 int mprotect( void *addr, size_t len, int prot );
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
57
c4d1f32ca1a4 mmap() support for OS/2
diego
parents:
diff changeset
58 #endif /* MPLAYER_MMAP_H */