MALOC 0.1
|
00001 00033 #ifndef _VNM_H_ 00034 #define _VNM_H_ 00035 00036 #include <maloc/maloc_base.h> 00037 00038 00046 int Vnm_sigInt(void); 00047 00055 void Vnm_sigIntSet(void); 00056 00064 void Vnm_sigIntClear(void); 00065 00073 int Vnm_jmpOk(void); 00074 00082 void Vnm_jmpOkSet(void); 00083 00091 void Vnm_jmpOkClear(void); 00092 00100 jmp_buf *Vnm_signalInit(void); 00101 00109 void Vnm_regHand(void); 00110 00119 void Vnm_sigHand(int num); 00120 00125 #define VPOW_SAFE(x,y) (Vnm_powsafe(x,y)) 00126 00136 double Vnm_powsafe(double x, double y); 00137 00145 void Vnm_typeChk(void); 00146 00160 double Vnm_epsmac(void); 00161 00196 int Vnm_gentokens(char *buf, char **argv, 00197 const int argvmax, const char *white, const char *comment); 00198 00203 #define VTIMERS 100 00204 00214 void Vnm_tstart(int timer, const char *name); 00215 00225 void Vnm_tstop(int timer, const char *name); 00226 00236 char *Vnm_getuser(char *user, int usermax); 00237 00247 char *Vnm_getos(char *os, int osmax); 00248 00258 char *Vnm_gethost(char *host, int hostmax); 00259 00279 char *Vnm_gethome(char *path, int pathmax); 00280 00297 char *Vnm_getcwd(char *path, int pathmax); 00298 00307 int Vnm_chdir(const char *path); 00308 00317 int Vnm_mkdir(const char *path); 00318 00327 int Vnm_system(const char *cmd); 00328 00337 int Vnm_systemBack(const char *cmd); 00338 00347 int Vnm_systemKill(const char *cmd); 00348 00359 int Vnm_exec(int argc, char **argv); 00360 00371 void Vnm_sleep(int nusecs); 00372 00380 int Vnm_ioTag(void); 00381 00389 int Vnm_nTags(void); 00390 00400 void Vnm_setIoTag(int myTag, int numTags); 00401 00429 FILE *Vnm_open(const int unit); 00430 00440 int Vnm_close(const int unit); 00441 00451 void Vnm_flush(const int unit); 00452 00463 void Vnm_redirect(const int flag); 00464 00475 void Vnm_print(const int unit, const char *format, ...); 00476 00490 void Vnm_tprint(const int unit, const char *format, ...); 00491 00501 void Vnm_qsort(int *u, int size); 00502 00513 void Vnm_qsortOrd(int *u, int *ord, int size); 00514 00524 void Vnm_dqsort(double *u, int size); 00525 00536 void Vnm_dqsortOrd(double *u, int *ord, int size); 00537 00538 #endif /* _VNM_H_ */ 00539 00540