OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

sys_limits.h
1 /*
2 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2006 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
7 * reserved.
8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9 * University of Stuttgart. All rights reserved.
10 * Copyright (c) 2004-2005 The Regents of the University of California.
11 * All rights reserved.
12 * $COPYRIGHT$
13 *
14 * Additional copyrights may follow
15 *
16 * $HEADER$
17 */
18
19 #ifndef OPAL_SYS_LIMITS_H
20 #define OPAL_SYS_LIMITS_H
21
22 #include "opal_config.h"
23
24 #ifdef HAVE_SYS_TYPES_H
25 #include <sys/types.h>
26 #endif
27
28 BEGIN_C_DECLS
29
30 /* define a structure to hold the various limits we find
31 * so that users can neatly access them
32 */
33 typedef struct opal_sys_limits_t {
34 bool initialized;
35 int num_files;
36 int num_procs;
37 size_t file_size;
38 } opal_sys_limits_t;
39
40 /* since we only want to do this once, we will store the
41 * values in the following locations - provide access here
42 */
43 OPAL_DECLSPEC extern opal_sys_limits_t opal_sys_limits;
44
45 /* Get the system resource limits and, if requested, set
46 * them to the max allowed
47 */
48 OPAL_DECLSPEC int opal_util_init_sys_limits(void);
49
50 END_C_DECLS
51
52 #endif /* OPAL_STRNCPY_H */
opal_sys_limits_t
Definition: sys_limits.h:33