syncstub.c
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*************************************************************************
*
* File: syncstub.c
*
* This file contains the "stub" routines for the sync.c module
*
* $Header: /root/leakn64/depot/rf/sw/n64os20l/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 */