OpenMPI 0.1.1

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

- File List
- Globals

iof_base_setup.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-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) 2008 Cisco Systems, Inc. All rights reserved.
13 * $COPYRIGHT$
14 *
15 * Additional copyrights may follow
16 *
17 * $HEADER$
18 *
19 */
20
21 #ifndef IOF_BASE_SETUP_H_
22 #define IOF_BASE_SETUP_H_
23
24 #include "orte_config.h"
25 #include "orte/types.h"
26
27 struct orte_iof_base_io_conf_t {
28 int usepty;
29 bool connect_stdin;
30
31 /* private - callers should not modify these fields */
32 int p_stdin[2];
33 int p_stdout[2];
34 int p_stderr[2];
35 int p_internal[2];
36 };
37 typedef struct orte_iof_base_io_conf_t orte_iof_base_io_conf_t;
38
39
40 /**
41 * Do pre-fork IOF setup tasks
42 *
43 * Do all stdio forwarding that must be done before fork() is called.
44 * This might include creating pipes or ptys or similar work.
45 */
46 ORTE_DECLSPEC int orte_iof_base_setup_prefork(orte_iof_base_io_conf_t *opts);
47
48 ORTE_DECLSPEC int orte_iof_base_setup_child(orte_iof_base_io_conf_t *opts,
49 char ***env);
50
51 ORTE_DECLSPEC int orte_iof_base_setup_parent(const orte_process_name_t* name,
52 orte_iof_base_io_conf_t *opts);
53
54 #endif
orte_process_name_t
Definition: types.h:146
types.h
orte_iof_base_io_conf_t
Definition: iof_base_setup.h:27