1
1

stubs for stdio forwarding service

This commit was SVN r2549.
Этот коммит содержится в:
Tim Woodall 2004-09-08 21:07:19 +00:00
родитель a16d070b2b
Коммит 7dafd4ed89
5 изменённых файлов: 161 добавлений и 0 удалений

11
src/mca/svc/stdio/Makefile.am Обычный файл
Просмотреть файл

@ -0,0 +1,11 @@
#
# $HEADER$
#
include $(top_ompi_srcdir)/config/Makefile.options
noinst_LTLIBRARIES = libmca_svc_stdio.la
libmca_svc_stdio_la_SOURCES = \
svc_stdio.c \
svc_stdio.h \
svc_stdio_component.c

9
src/mca/svc/stdio/configure.params Обычный файл
Просмотреть файл

@ -0,0 +1,9 @@
# -*- shell-script -*-
#
# $HEADER$
#
# Specific to this module
PARAM_INIT_FILE=svc_stdio.c
PARAM_CONFIG_FILES="Makefile"

50
src/mca/svc/stdio/svc_stdio.c Обычный файл
Просмотреть файл

@ -0,0 +1,50 @@
#include "ompi_config.h"
#include "mca/oob/oob.h"
#include "mca/oob/base/base.h"
#include "svc_stdio.h"
mca_svc_base_module_t mca_svc_stdio_module = {
mca_svc_stdio_module_init,
mca_svc_stdio_module_fini
};
/**
* Process an OOB request.
*/
static void mca_svc_stdio_recv(
int status,
ompi_process_name_t* peer,
ompi_buffer_t buffer,
int tag,
void* cbdata)
{
}
/**
* Register a callback to receive OOB requests.
*/
int mca_svc_stdio_module_init(mca_svc_base_module_t* module)
{
return mca_oob_recv_packed_nb(
MCA_OOB_NAME_ANY,
MCA_OOB_TAG_STDIO,
MCA_OOB_ALLOC,
mca_svc_stdio_recv,
NULL);
}
/**
* Cleanup
*/
int mca_svc_stdio_module_fini(mca_svc_base_module_t* module)
{
return OMPI_SUCCESS;
}

30
src/mca/svc/stdio/svc_stdio.h Обычный файл
Просмотреть файл

@ -0,0 +1,30 @@
/*
* $HEADER$
*/
/**
* @file
*/
#ifndef _MCA_SVC_STDIO_
#define _MCA_SVC_STDIO_
#include "mca/svc/svc.h"
/**
* Component open/close/init
*/
int mca_svc_stdio_component_open(void);
int mca_svc_stdio_component_close(void);
mca_svc_base_module_t* mca_svc_stdio_component_init(void);
/**
* Module init/fini
*/
int mca_svc_stdio_module_init(mca_svc_base_module_t*);
int mca_svc_stdio_module_fini(mca_svc_base_module_t*);
extern mca_svc_base_module_t mca_svc_stdio_module;
extern mca_svc_base_component_t mca_svc_stdio_component;
#endif

61
src/mca/svc/stdio/svc_stdio_component.c Обычный файл
Просмотреть файл

@ -0,0 +1,61 @@
#include "svc_stdio.h"
mca_svc_base_component_t mca_svc_stdio_component = {
/* First, the mca_base_module_t struct containing meta
information about the module itself */
{
/* Indicate that we are a pml v1.0.0 module (which also
implies a specific MCA version) */
MCA_SVC_BASE_VERSION_1_0_0,
"stdio", /* MCA module name */
1, /* MCA module major version */
0, /* MCA module minor version */
0, /* MCA module release version */
mca_svc_stdio_component_open, /* component open */
mca_svc_stdio_component_close /* component close */
},
/* Next the MCA v1.0.0 module meta data */
{
/* Whether the module is checkpointable or not */
false
},
mca_svc_stdio_component_init
};
/**
*
*/
int mca_svc_stdio_component_open(void)
{
return OMPI_SUCCESS;
}
/**
*
*/
mca_svc_base_module_t* mca_svc_stdio_component_init(void)
{
return &mca_svc_stdio_module;
}
/**
*
*/
int mca_svc_stdio_component_close(void)
{
return OMPI_SUCCESS;
}