Changeset 33646 for trunk/Ohana/src/libohana/include/ohana.h
- Timestamp:
- Apr 1, 2012, 2:15:36 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/ohana.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/ohana.h
r32632 r33646 215 215 */ 216 216 # define OHANA_WHITESPACE(c)(((c) == 0x09) || ((c) == 0x0a) || ((c) == 0x0b) || ((c) == 0x0b) || ((c) == 0x0c) || ((c) == 0x0d) || ((c) == 0x20)) 217 # define OHANA_ASSERT(LOGIC,...) { if (!(LOGIC)) { fprintf (stderr, __VA_ARGS__); abort(); } } 218 # define myAssert(LOGIC,...) { if (!(LOGIC)) { fprintf (stderr, __VA_ARGS__); abort(); } } 219 # define myAbort(MSG) { fprintf (stderr, "%s\n", MSG); abort(); } 217 220 218 221 // sorting is now defined as a macro call … … 236 239 char *strncreate PROTO((char *string, int n)); 237 240 int scan_line PROTO((FILE *f, char *line)); 241 int scan_line_maxlen PROTO((FILE *f, char *line, int maxlen)); 238 242 int dparse PROTO((double *X, int NX, char *line)); 239 243 int dparse_csv PROTO((double *X, int NX, char *line)); 244 int iparse PROTO((int *X, int NX, char *line)); 245 int iparse_csv PROTO((int *X, int NX, char *line)); 246 int tparse PROTO((time_t *X, int NX, char *line)); 247 int tparse_csv PROTO((time_t *X, int NX, char *line)); 240 248 int fparse PROTO((float *X, int NX, char *line)); 241 249 int get_argument PROTO((int argc, char **argv, char *arg)); … … 256 264 int check_dir_access PROTO((char *path, int verbose)); 257 265 int check_file_exec PROTO((char *filename)); 266 char *abspath PROTO((char *oldpath, int maxlength)); 258 267 259 268 /* in glockfile.c */ … … 323 332 off_t Fwrite PROTO((void *ptr, off_t size, off_t nitems, FILE *f, char *type)); 324 333 334 char *memstr PROTO((char *m1, char *m2, int n)); 335 int write_fmt PROTO((int fd, char *format, ...)); 336 325 337 char **isolate_elements PROTO((int argc, char **argv, int *nstack)); 326 338 … … 332 344 // gprint gets a stub implementation in libohana. opihi implements the real one. 333 345 int gprint (gpDest dest, char *format, ...); 346 347 // rconnect is used to run remote programs with a pipe for communication 348 typedef enum { 349 RCONNECT_ERR_NONE = 0, 350 RCONNECT_ERR_EXEC = 1, 351 RCONNECT_ERR_PIPE = 2, 352 RCONNECT_ERR_CONNECT = 3, 353 } RconnectErrors; 354 355 void rconnect_set_timeout (int timeout); 356 int rconnect (char *command, char *hostname, char *shell, int *stdio, int *errorInfo, int doHandshake); 334 357 335 358 /*
Note:
See TracChangeset
for help on using the changeset viewer.
