drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
os0proc.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/**************************************************/
26
27#pragma once
28#ifndef os0proc_h
29#define os0proc_h
30
31#include "univ.i"
32
33#ifdef UNIV_LINUX
34#include <sys/ipc.h>
35#include <sys/shm.h>
36#endif
37
38typedef void* os_process_t;
39typedef unsigned long int os_process_id_t;
40
41extern ibool os_use_large_pages;
42/* Large page size. This may be a boot-time option on some platforms */
43extern ulint os_large_page_size;
44
45/****************************************************************/
51UNIV_INTERN
52ulint
54/*====================*/
55/****************************************************************/
58UNIV_INTERN
59void*
61/*===============*/
62 ulint* n);
63/****************************************************************/
65UNIV_INTERN
66void
68/*==============*/
69 void *ptr,
71 ulint size);
73
74#ifndef UNIV_NONINL
75#include "os0proc.ic"
76#endif
77
78#endif
UNIV_INTERN ulint os_proc_get_number(void)
Definition os0proc.cc:57
UNIV_INTERN void os_mem_free_large(void *ptr, ulint size)
Definition os0proc.cc:183
UNIV_INTERN void * os_mem_alloc_large(ulint *n)
Definition os0proc.cc:72