00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef _VNM_H_
00035 #define _VNM_H_
00036
00037 #include <maloc/maloc_base.h>
00038
00039
00040
00041
00042
00043
00044
00045 int Vnm_sigInt(void);
00046 void Vnm_sigIntSet(void);
00047 void Vnm_sigIntClear(void);
00048
00049 int Vnm_jmpOk(void);
00050 void Vnm_jmpOkSet(void);
00051 void Vnm_jmpOkClear(void);
00052
00053 jmp_buf *Vnm_signalInit(void);
00054 void Vnm_regHand(void);
00055 void Vnm_sigHand(int num);
00056
00057 #define VPOW_SAFE(x,y) (Vnm_powsafe(x,y))
00058 double Vnm_powsafe(double x, double y);
00059 void Vnm_typeChk(void);
00060 double Vnm_epsmac(void);
00061 int Vnm_gentokens(char *buf, char **argv,
00062 const int argvmax, const char *white, const char *comment);
00063
00064 #define VTIMERS 100
00065 void Vnm_tstart(int timer, const char *name);
00066 void Vnm_tstop(int timer, const char *name);
00067
00068 char *Vnm_getuser(char *user, int usermax);
00069 char *Vnm_getos(char *os, int osmax);
00070 char *Vnm_gethost(char *host, int hostmax);
00071 char *Vnm_gethome(char *path, int pathmax);
00072 char *Vnm_getcwd(char *path, int pathmax);
00073 int Vnm_chdir(const char *path);
00074 int Vnm_mkdir(const char *path);
00075
00076 int Vnm_system(const char *cmd);
00077 int Vnm_systemBack(const char *cmd);
00078 int Vnm_systemKill(const char *cmd);
00079 int Vnm_exec(int argc, char **argv);
00080 void Vnm_sleep(int nusecs);
00081
00082 int Vnm_ioTag(void);
00083 int Vnm_nTags(void);
00084 void Vnm_setIoTag(int myTag, int numTags);
00085 FILE *Vnm_open(const int unit);
00086 int Vnm_close(const int unit);
00087 void Vnm_flush(const int unit);
00088 void Vnm_redirect(const int flag);
00089 void Vnm_print(const int unit, const char *format, ...);
00090 void Vnm_tprint(const int unit, const char *format, ...);
00091
00092 void Vnm_qsort(int *u, int size);
00093 void Vnm_qsortOrd(int *u, int *ord, int size);
00094 void Vnm_dqsort(double *u, int size);
00095 void Vnm_dqsortOrd(double *u, int *ord, int size);
00096
00097 #endif
00098
00099