OpenMPI  0.1.1
shmem_posix_common_utils.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
3  * University Research and Technology
4  * Corporation. All rights reserved.
5  * Copyright (c) 2004-2005 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 (c) 2007-2010 Cisco Systems, Inc. All rights reserved.
13  * Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
14  * Copyright (c) 2010 IBM Corporation. All rights reserved.
15  * Copyright (c) 2010-2011 Los Alamos National Security, LLC.
16  * All rights reserved.
17  * $COPYRIGHT$
18  *
19  * Additional copyrights may follow
20  *
21  * $HEADER$
22  */
23 
24 /**
25  * @file
26  *
27  * shmem (shared memory backing facility) framework utilities
28  */
29 
30 #ifndef OPAL_SHMEM_POSIX_COMMON_UTILS_H
31 #define OPAL_SHMEM_POSIX_COMMON_UTILS_H
32 
33 BEGIN_C_DECLS
34 
35 #include "opal_config.h"
36 
37 /**
38  * this routine searches for an available shm_open file name.
39  *
40  * @return if successful, a non-negative file descriptor is returned and
41  * posix_file_name_buff will contain the file name associated with the
42  * successful shm_open. otherwise, -1 is returned and the contents of
43  * posix_file_name_buff are undefined.
44  */
45 OPAL_DECLSPEC extern int shmem_posix_shm_open(char *posix_file_name_buff,
46  size_t size);
47 
48 END_C_DECLS
49 
50 #endif /* OPAL_SHMEM_POSIX_COMMON_UTILS_H */
BEGIN_C_DECLS OPAL_DECLSPEC int shmem_posix_shm_open(char *posix_file_name_buff, size_t size)
this routine searches for an available shm_open file name.
Definition: shmem_posix_common_utils.c:57