corosync
3.1.9
lib
lib/util.h
Go to the documentation of this file.
1
2
/*
3
* Copyright (c) 2002-2003 MontaVista Software, Inc.
4
* Copyright (c) 2012 Red Hat, Inc.
5
*
6
* All rights reserved.
7
*
8
* Author: Steven Dake (sdake@redhat.com)
9
*
10
* This software licensed under BSD license, the text of which follows:
11
*
12
* Redistribution and use in source and binary forms, with or without
13
* modification, are permitted provided that the following conditions are met:
14
*
15
* - Redistributions of source code must retain the above copyright notice,
16
* this list of conditions and the following disclaimer.
17
* - Redistributions in binary form must reproduce the above copyright notice,
18
* this list of conditions and the following disclaimer in the documentation
19
* and/or other materials provided with the distribution.
20
* - Neither the name of the MontaVista Software, Inc. nor the names of its
21
* contributors may be used to endorse or promote products derived from this
22
* software without specific prior written permission.
23
*
24
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
34
* THE POSSIBILITY OF SUCH DAMAGE.
35
*/
36
37
#ifndef COROSYNC_UTIL_H_DEFINED
38
#define COROSYNC_UTIL_H_DEFINED
39
40
#include <
corosync/corotypes.h
>
41
42
cs_error_t
hdb_error_to_cs
(
int
res
);
43
44
#ifdef HAVE_SMALL_MEMORY_FOOTPRINT
45
#define IPC_REQUEST_SIZE 1024*64
46
#define IPC_RESPONSE_SIZE 1024*64
47
#define IPC_DISPATCH_SIZE 1024*64
48
#else
49
#define IPC_REQUEST_SIZE 8192*128
50
#define IPC_RESPONSE_SIZE 8192*128
51
#define IPC_DISPATCH_SIZE 8192*128
52
#endif
/* HAVE_SMALL_MEMORY_FOOTPRINT */
53
54
#endif
/* COROSYNC_UTIL_H_DEFINED */
nodeid
unsigned int nodeid
Definition
coroapi.h:0
corotypes.h
cs_error_t
cs_error_t
The cs_error_t enum.
Definition
corotypes.h:98
hdb_error_to_cs
cs_error_t hdb_error_to_cs(int res)
Generated on Sat Jun 21 2025 09:54:36 for corosync by
1.9.8