Main Page | Modules | Namespace List | Class List | File List | Class Members | File Members

SBlogOSUtils.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <sys/times.h>
#include <sys/timeb.h>
#include <sys/stat.h>
#include "SBlogOSUtils.h"

Defines

#define CLK_TCK   CLOCKS_PER_SEC
#define BUFSIZE   (4096 + 1024)
#define w2c(w)   (((w) & 0xff00)?'\277':((unsigned char) ((w) & 0x00ff)))

Functions

int SBlogGetTime (time_t *timestamp, VXIunsigned *timestampMsec)
int SBlogGetTimeStampStr (time_t timestamp, VXIunsigned timestampMsec, char *timestampStr)
int SBlogGetFileStats (const char *path, SBlogFileStats *fileStats)
int SBlogGetCPUTimes (long *userTime, long *kernelTime)
static int format_wcs2str (const wchar_t *wformat, char *nformat)
static wchar_t * ConvertFormatForWidePrintf (const wchar_t *format)
int SBlogVswprintf (wchar_t *wcs, size_t maxlen, const wchar_t *format, va_list args)
int SBlogMkDir (const char *path)
int SBlogIsDir (const SBlogFileStats *statInfo)
VXIbool SBlogWchar2Latin1 (const wchar_t *input, char *output, VXIunsigned maxlen)
VXIbool SBlogWchar2UTF8 (const wchar_t *input, char *output, VXIunsigned maxOutputBytes, VXIunsigned *outputBytes)
VXIlogResult SBlogLogErrorToConsole (const VXIchar *moduleName, VXIunsigned errorID, const VXIchar *errorIDText)
VXIlogResult SBlogVLogErrorToConsole (const VXIchar *moduleName, VXIunsigned errorID, const VXIchar *errorIDText, const VXIchar *format, va_list arguments)


Define Documentation

#define BUFSIZE   (4096 + 1024)
 

#define CLK_TCK   CLOCKS_PER_SEC
 

#define w2c  )     (((w) & 0xff00)?'\277':((unsigned char) ((w) & 0x00ff)))
 


Function Documentation

static wchar_t* ConvertFormatForWidePrintf const wchar_t *  format  )  [static]
 

static int format_wcs2str const wchar_t *  wformat,
char *  nformat
[static]
 

int SBlogGetCPUTimes long *  userTime,
long *  kernelTime
 

int SBlogGetFileStats const char *  path,
SBlogFileStats fileStats
 

int SBlogGetTime time_t *  timestamp,
VXIunsigned timestampMsec
 

int SBlogGetTimeStampStr time_t  timestamp,
VXIunsigned  timestampMsec,
char *  timestampStr
 

int SBlogIsDir const SBlogFileStats statInfo  ) 
 

VXIlogResult SBlogLogErrorToConsole const VXIchar moduleName,
VXIunsigned  errorID,
const VXIchar errorIDText
 

int SBlogMkDir const char *  path  ) 
 

VXIlogResult SBlogVLogErrorToConsole const VXIchar moduleName,
VXIunsigned  errorID,
const VXIchar errorIDText,
const VXIchar format,
va_list  arguments
 

int SBlogVswprintf wchar_t *  wcs,
size_t  maxlen,
const wchar_t *  format,
va_list  args
 

VXIbool SBlogWchar2Latin1 const wchar_t *  input,
char *  output,
VXIunsigned  maxlen
 

VXIbool SBlogWchar2UTF8 const wchar_t *  input,
char *  output,
VXIunsigned  maxOutputBytes,
VXIunsigned outputBytes
 


Generated on Mon Apr 25 13:02:13 2005 for OpenVXI by  doxygen 1.4.2