InnoDB Plugin  1.0
os0proc.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 1995, 2009, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
27 #ifndef os0proc_h
28 #define os0proc_h
29 
30 #include "univ.i"
31 
32 #ifdef UNIV_LINUX
33 #include <sys/ipc.h>
34 #include <sys/shm.h>
35 #endif
36 
37 typedef void* os_process_t;
38 typedef unsigned long int os_process_id_t;
39 
40 extern ibool os_use_large_pages;
41 /* Large page size. This may be a boot-time option on some platforms */
42 extern ulint os_large_page_size;
43 
44 /****************************************************************/
50 UNIV_INTERN
51 ulint
52 os_proc_get_number(void);
53 /*====================*/
54 /****************************************************************/
57 UNIV_INTERN
58 void*
60 /*===============*/
61  ulint* n);
62 /****************************************************************/
64 UNIV_INTERN
65 void
67 /*==============*/
68  void *ptr,
70  ulint size);
73 #ifndef UNIV_NONINL
74 #include "os0proc.ic"
75 #endif
76 
77 #endif