Changeset 3508 for trunk/Ohana/src/libohana/include/ohana.h
- Timestamp:
- Mar 24, 2005, 4:50:29 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/ohana.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/ohana.h
r3400 r3508 25 25 # define OHANA_H 26 26 27 extern double hypot();28 29 27 # define TRUE (1) 30 28 # define FALSE (0) … … 36 34 # define MAX(X,Y) ((X) > (Y) ? (X) : (Y)) 37 35 # define SWAP(X,Y) {double tmp=(X); (X) = (Y); (Y) = tmp;} 36 # define DTIME(A,B) ((A.tv_sec - B.tv_sec) + 1e-6*(A.tv_usec - B.tv_usec)) 38 37 39 38 # define LCK_UNLOCK 0 /* file is unlocked */ … … 55 54 # endif 56 55 57 int setlockfile2 (char *filename, double timeout, int type, int *state); 58 int clearlockfile2 (char *filename, int fd, int type, int *state); 59 60 FILE *fsetlockfile (char *filename, double timeout, int type, int *state); 61 int fclearlockfile (char *filename, FILE *f, int type, int *state); 56 # define DEG_RAD 57.295779513082322 57 # define RAD_DEG 0.017453292519943 62 58 63 59 # ifndef PROTO … … 103 99 # endif /* FOPEN */ 104 100 105 # define DEG_RAD 57.295779513082322 106 # define RAD_DEG 0.017453292519943 107 108 # define DTIME(A,B) ((A.tv_sec - B.tv_sec) + 1e-6*(A.tv_usec - B.tv_usec)) 101 extern double hypot(); 109 102 110 103 /* in string.c */ … … 118 111 int get_argument (int argc, char **argv, char *arg); 119 112 int remove_argument (int N, int *argc, char **argv); 113 void uppercase (char *string); 120 114 121 int Fread (void *ptr, int size, int nitems, FILE *f, char *type); 122 int Fwrite (void *ptr, int size, int nitems, FILE *f, char *type); 123 int ByteSwap (char *ptr, int size, int nitems, char *type); 124 int ConvertStruct (char *buffer, int size, int Nbytes, char *type); 125 115 /* in findexec.c */ 126 116 char *pathname (char *name); 127 117 char *filebasename (char *name); 128 118 char *filerootname (char *name); 129 119 char *findexec (int argc, char **argv); 130 int mkdirhier (char *path); 120 int mkdirhier (char *path); 121 void make_backup (char *filename); 131 122 123 /* in glockfile.c */ 132 124 FILE *fsetlockfile (char *filename, double timeout, int type, int *state); 133 int fclearlockfile (char *filename, FILE *f, int type, int *state);134 int setlockfile2 (char *filename, double timeout, int type, int *state);135 int clearlockfile2 (char *filename, int fd, int type, int *state);125 int fclearlockfile (char *filename, FILE *f, int type, int *state); 126 int setlockfile2 (char *filename, double timeout, int type, int *state); 127 int clearlockfile2 (char *filename, int fd, int type, int *state); 136 128 129 /* in config.c */ 137 130 char *SelectConfigFile (int *argc, char **argv, char *progname); 138 131 char *LoadConfigFile (char *filename); … … 141 134 char *fileextname (char *file); 142 135 char *LoadRawConfigFile (char *, int); 136 137 /* in Fseek.c */ 138 int Fseek (FILE *f, long offset, int whence); 143 139 144 140 /*
Note:
See TracChangeset
for help on using the changeset viewer.
