- Timestamp:
- Feb 10, 2012, 1:53:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/libohana/include/ohana.h
r33217 r33238 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 … … 328 331 off_t Fwrite PROTO((void *ptr, off_t size, off_t nitems, FILE *f, char *type)); 329 332 333 char *memstr PROTO((char *m1, char *m2, int n)); 334 int write_fmt PROTO((int fd, char *format, ...)); 335 330 336 char **isolate_elements PROTO((int argc, char **argv, int *nstack)); 331 337 … … 337 343 // gprint gets a stub implementation in libohana. opihi implements the real one. 338 344 int gprint (gpDest dest, char *format, ...); 345 346 // rconnect is used to run remote programs with a pipe for communication 347 typedef enum { 348 RCONNECT_ERR_NONE = 0, 349 RCONNECT_ERR_EXEC = 1, 350 RCONNECT_ERR_PIPE = 2, 351 RCONNECT_ERR_CONNECT = 3, 352 } RconnectErrors; 353 354 void rconnect_set_timeout (int timeout); 355 int rconnect (char *command, char *hostname, char *shell, int *stdio, int *errorInfo, int doHandshake); 339 356 340 357 /*
Note:
See TracChangeset
for help on using the changeset viewer.
