/*****************************************************************/
/**                                                             **/
/**             (C) Copyright 1992 the Regents of the           **/
/**        University of California.  All Rights Reserved.      **/
/**                                                             **/
/**        This work was produced under the sponsorship of      **/
/**         the U.S. Department of Energy.  The Government      **/
/**                retains certain rights therein.              **/
/**                                                             **/
/**                         Written by                          **/
/**         Distributed Programming Environments Project        **/
/**           Computer Software and Networking Division,        **/
/**                   Livermore Computer Center,                **/
/**            Lawrence Livermore National Laboratory           **/
/**                                                             **/
/*****************************************************************/

static char sccsid_STUB_tasking_c[] = "@(#)STUBtasking.c	1.7 10/19/92 13:32:13  LLNL ";


/*
	Embedded Language for Remote Operations Services
	ELROS

	AUTHOR:		James A. Guse
			Network Systems Division

	DATE WRITTEN:	7/24/90

	ROUTINES:	__ROr_ISODEwait_for_send
			__ROr_Scan
			Sleep

PURPOSE:


IN:

OUT:


CALLED ROUTINES:
	

	
MODIFICATION HISTORY:


*/

#ifdef __RO_TASKING

#include <stdio.h>

int __ROr_Scan( sockno, dir, inst )
   int sockno;
   int dir;
   void *inst;
{
   return(0);
}

int __ROr_ISODEwait_for_send(instance)
       void *instance;
{
   return(0);
}

int __ROr_ClearSocket (sockno,dir)
   int sockno,dir;
{ return (0); }

void Sleep()
{}

/* Should never be called */
void Hwait()
{printf("HWAIT CALLED!!!!!!\n"),exit(1);}

void PSem(sem)
   int *sem;
{
   if (*sem != 1)
      printf("###BUG CHECK (STUB): P() = %d\n",*sem);
   (*sem)--;
}

void VSem(sem)
   int *sem;
{
   if (*sem != 0)
      printf("###BUG CHECK (STUB): V() = %d\n",*sem);
   (*sem)++;
}

void InitSem(sem,value)
   int *sem;
   int value;
{
   *sem = value;
}

struct { long dummytaskfields[6]; } dummy = { 0 };

void *ego_ = (void *)&dummy;

#else
int __ROr_Single_Select(sock,dir,timeout)

   int sock;
   int dir;
   int timeout;

{
   return( 1 ); 
}
#endif

