63void eprint(
const char *, ...);
64void fdprint(
long afd,
const char *fmt, ...);
67extern void LogMsg(
int msglevel,
int debuglevel, FILE *fout,
const char *fmt,
69#define VLog(level, fmt, a...) LogMsg(level, VolDebugLevel, stdout, fmt, ##a)
70#define SLog(level, fmt, a...) LogMsg(level, SrvDebugLevel, stdout, fmt, ##a)
71#define DLog(level, fmt, a...) LogMsg(level, DirDebugLevel, stdout, fmt, ##a)
72#define ALog(level, fmt, a...) LogMsg(level, VolDebugLevel, stdout, fmt, ##a)
73#define CLog(level, fmt, a...) LogMsg(level, VolDebugLevel, stdout, fmt, ##a)
79int UtilHostEq(
const char *name1,
const char *name2);
86#define U_wlock(b) ObtainWriteLock(&((b)->lock))
87#define U_rlock(b) ObtainReadLock(&((b)->lock))
88#define U_wunlock(b) ReleaseWriteLock(&((b)->lock))
89#define U_runlock(b) ReleaseReadLock(&((b)->lock))
104int snprintf(
char *buf,
size_t len,
const char *fmt, ...);
105long int gethostid(
void);
#define snprintf(str, size, format...)
Definition: coda_string.h:36
int AuthDebugLevel
Definition: util.c:75
void PrintTimeStamp(FILE *fout)
Definition: util.c:90
void eprint(const char *,...)
Definition: util.c:189
void LogMsg(int msglevel, int debuglevel, FILE *fout, const char *fmt,...)
Definition: util.c:147
int VolDebugLevel
Definition: util.c:71
int SrvDebugLevel
Definition: util.c:70
void UtilDetach()
Definition: util.c:255
int HashString(char *s, unsigned int size)
Definition: util.c:77
int DirDebugLevel
Definition: util.c:73
void fdprint(long afd, const char *fmt,...)
Definition: util.c:177
int UtilHostEq(const char *name1, const char *name2)
Definition: util.c:223
char * hostname(char *name)
Definition: util.c:212
int AL_DebugLevel
Definition: util.c:74