/*****************************************************************/
/**                                                             **/
/**             (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           **/
/**                                                             **/
/*****************************************************************/

/*
	Embedded Language for Remote Operations Services
	ELROS

	AUTHOR:		Robyne M. Sumpter
			Network Systems Division

	DATE WRITTEN:	10/11/90

	ROUTINE:	Set_timeout

PURPOSE:
	Set a timeout value on an instance or globally, also to disable
	timeouts for an instance or globally.


IN:

OUT:


CALLED ROUTINES:
	

	
MODIFICATION HISTORY:


*/

#include <elros/instance.h>

int __ROv_global_timeout = 1; /* Initially enabled, set to non-zero. */



int Set_timeout(instance,tvalue)

   __RO_Instance_Record *instance;
   int tvalue;

{
  return(__ROr_STDset_timeout(instance,tvalue));
}

int __ROr_STDset_timeout(instance,tvalue)

   __RO_Instance_Record *instance;
   int tvalue;

{
   if (instance == NULL)
      __ROv_global_timeout = tvalue;
   else
      instance->subsystem->timeout = tvalue;
   return(SUCCESS);
}




