syncstub.c 1.27 KB

/*************************************************************************
 *
 *  File: syncstub.c
 *
 *  This file contains the "stub" routines for the sync.c module
 *
 *  $Header: /root/leakn64/depot/rf/sw/bbplayer/iosim/src/syncstub.c,v 1.2 2002/05/30 05:52:50 whs Exp $
 *
 */

#include <sys/types.h>		
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>


#include "sync.h"


#ifdef __sgi__
/***************************************************************************
 * Extern variables
 */

/***************************************************************************
 * Global variables
 */
usptr_t *SyncArena;
ulock_t SyncLock[MAX_LOCK];


/***************************************************************************
 * Create arena for synchronization
 */

void
SyncInit(void)
{
}  /* SyncInit */


int
LockSet(ulock_t lock)
{
	return(0);
}


int
LockReset(ulock_t lock)
{
	return(0);
}


void
SysLockSet(void)
{
}


void
SysLockReset(void)
{
}
#endif

/*
 * Logging to file and flushing it
 */
int
LogPrintf(FILE *stream, const char *format, ...)
{
        va_list	ap;

        va_start(ap, format);

        vfprintf(stream, format, ap);
        fflush (stream);

        va_end(ap);

}  /* LogPrintf */