message.c

Go to the documentation of this file.
00001 /*****************************************************************************************
00002  Copyright (c) 2002-2004 The UbixOS Project
00003  All rights reserved.
00004 
00005  Redistribution and use in source and binary forms, with or without modification, are
00006  permitted provided that the following conditions are met:
00007 
00008  Redistributions of source code must retain the above copyright notice, this list of
00009  conditions, the following disclaimer and the list of authors.  Redistributions in binary
00010  form must reproduce the above copyright notice, this list of conditions, the following
00011  disclaimer and the list of authors in the documentation and/or other materials provided
00012  with the distribution. Neither the name of the UbixOS Project nor the names of its
00013  contributors may be used to endorse or promote products derived from this software
00014  without specific prior written permission.
00015 
00016  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
00017  EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00018  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
00019  THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00020  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
00021  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00022  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
00023  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00024  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00025 
00026  $Id$
00027 
00028 *****************************************************************************************/
00029 
00030 #include <mpi/mpi.h>
00031 
00032 void sysMpiCreateMbox(uInt32 *status,char *name) {
00033   if (status && name)
00034     *status = mpi_createMbox(name); 
00035   return;
00036   }
00037 
00038 void sysMpiDestroyMbox(uInt32 *status,char *name) {
00039   if (status && name)
00040     *status = mpi_destroyMbox(name);
00041   return;
00042   }
00043 
00044 void sysMpiPostMessage(char *name,uInt32 *type,mpi_message_t *data) {
00045   if (type && name && data)
00046     *type = mpi_postMessage(name,*type,data);
00047   return;
00048   }
00049 
00050 void sysMpiFetchMessage(char *name,mpi_message_t *msg,uInt32 *status) {
00051   if (status && name && msg)
00052     *status = mpi_fetchMessage(name,msg);
00053   return;
00054   }
00055 
00056 void sysMpiSpam(uInt32 type,void *data,uInt32 *status) {
00057   if (status && data)
00058     *status = mpi_spam(type,data);
00059   return;
00060   }
00061 
00062 /***
00063  $Log$
00064  Revision 1.1.1.1  2006/06/01 12:46:16  reddawg
00065  ubix2
00066 
00067  Revision 1.2  2005/10/12 00:13:37  reddawg
00068  Removed
00069 
00070  Revision 1.1.1.1  2005/09/26 17:24:14  reddawg
00071  no message
00072 
00073  Revision 1.12  2004/08/14 11:23:02  reddawg
00074  Changes
00075 
00076  Revision 1.11  2004/07/28 17:07:25  reddawg
00077  MPI: moved the syscalls
00078 
00079  END
00080  ***/
00081 

Generated on Fri Dec 15 11:18:55 2006 for UbixOS V2 by  doxygen 1.4.7