/************************************************************************/
/* file: pgpvm2.h							*/
/*									*/
/* @(#)tracing library PGPVM Version 2 (June 1996)\			*/
/*									*/
/************************************************************************/


#ifndef _PGTRACE_H_
#  define _PGTRACE_H_

#  ifdef __cplusplus
	 extern "C" {
#  endif
	     int pg_tids            __ProtoGlarp__(( char * ));
	     void pg_startadmin     __ProtoGlarp__(( char * , char * , int ));
	     int pg_beglab          __ProtoGlarp__(( int ));
	     int pg_endlab          __ProtoGlarp__(( int ));
	     int pg_close           __ProtoGlarp__(( void ));

#  ifdef __cplusplus
      }
#  endif

#  ifndef USE_PGTRACE
#    ifdef __STDC__
         int pg_tids(char * c)
#    else
         int pg_tids(c) char *c;
#    endif
         {return (0);}
#    ifdef __STDC__
         void pg_startadmin(char * str1, char * str2, int nb)
#    else
         void pg_startadmin(str1, str2, nb) char * str1; char * str2; int nb;
#    endif
         { return ;}
#    ifdef __STDC__
         int pg_beglab(int label)
#    else
         int pg_beglab(label) int label;
#    endif
         { return (0);}
#    ifdef __STDC__
         int pg_endlab(int label)
#    else
         int pg_endlab(label) int label;
#    endif
         { return (0);}
#    ifdef __STDC__
         int pg_close(void)
#    else
         int pg_close()
#    endif
         { return (0);}
#  else
#    define pvm_exit pg_exit
#    define pvm_recv pg_recv
#    define pvm_nrecv pg_nrecv
#    define pvm_trecv pg_trecv
#    define pvm_send pg_send
#    define pvm_mcast pg_mcast
#    define pvm_psend pg_psend
#    define pvm_precv pg_precv
#    define pvm_spawn pg_spawn

#    ifdef __cplusplus
       extern "C" {
#    endif
     int pg_exit            __ProtoGlarp__(( void ));
     int pg_recv            __ProtoGlarp__(( int, int ));
     int pg_nrecv           __ProtoGlarp__(( int, int ));
     int pg_trecv           __ProtoGlarp__(( int, int, struct timeval * ));
     int pg_send            __ProtoGlarp__(( int, int ));
     int pg_mcast           __ProtoGlarp__(( int *, int, int ));
     int pg_psend           __ProtoGlarp__(( int, int, void *, int, int ));
     int pg_precv           __ProtoGlarp__(( int, int, void *, int, int, int *, int *, int * ));
     int pg_spawn           __ProtoGlarp__(( char *, char **, int, char *, int, int * ));

#    ifdef __cplusplus
       }
#    endif
#  endif
#endif
