Coda Distributed File System
Macros | Functions | Variables
util.c File Reference
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#include <math.h>
#include "coda_string.h"
#include <time.h>
#include <sys/utsname.h>
#include "util.h"
Include dependency graph for util.c:

Macros

#define NLOGS   5
 

Functions

int HashString (char *s, unsigned int size)
 
void PrintTimeStamp (FILE *f)
 
void LogMsg (int msglevel, int debuglevel, FILE *fout, const char *fmt,...)
 
void fdprint (long afd, const char *fmt,...)
 
void eprint (const char *fmt,...)
 
char * hostname (char *name)
 
int UtilHostEq (const char *name1, const char *name2)
 
void UtilDetach (void)
 

Variables

int SrvDebugLevel = 0
 
int VolDebugLevel = 0
 
int SalvageDebugLevel = 0
 
int DirDebugLevel = 0
 
int AL_DebugLevel = 0
 
int AuthDebugLevel = 0
 

Macro Definition Documentation

◆ NLOGS

#define NLOGS   5

Function Documentation

◆ eprint()

void eprint ( const char *  fmt,
  ... 
)

◆ fdprint()

void fdprint ( long  afd,
const char *  fmt,
  ... 
)

◆ HashString()

int HashString ( char *  s,
unsigned int  size 
)

◆ hostname()

char * hostname ( char *  name)

◆ LogMsg()

void LogMsg ( int  msglevel,
int  debuglevel,
FILE *  fout,
const char *  fmt,
  ... 
)

◆ PrintTimeStamp()

void PrintTimeStamp ( FILE *  f)

◆ UtilDetach()

void UtilDetach ( void  )

◆ UtilHostEq()

int UtilHostEq ( const char *  name1,
const char *  name2 
)

Variable Documentation

◆ AL_DebugLevel

int AL_DebugLevel = 0

◆ AuthDebugLevel

int AuthDebugLevel = 0

◆ DirDebugLevel

int DirDebugLevel = 0

◆ SalvageDebugLevel

int SalvageDebugLevel = 0

◆ SrvDebugLevel

int SrvDebugLevel = 0

◆ VolDebugLevel

int VolDebugLevel = 0