- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/libohana/include/ohana.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/Ohana/src/libohana/include/ohana.h
r33415 r34041 128 128 # endif 129 129 130 # if defined(darwin_x86) || defined(_DARWIN_C_SOURCE) 130 # if defined(darwin_x86) || defined(_DARWIN_C_SOURCE) || defined(__APPLE__) 131 131 # define BYTE_SWAP 132 132 # endif … … 164 164 // # endif 165 165 # ifdef darwin_x86 166 # define OFF_T_FMT "%lld" 167 # endif 168 // for mac os x 10.7 (lion): they don't use darwin, and i want to make sure it grabs for 10.7 and 64 bit (are they all 64 bit?) 169 # if defined(__APPLE__) && defined(x86_64) 166 170 # define OFF_T_FMT "%lld" 167 171 # endif … … 215 219 */ 216 220 # define OHANA_WHITESPACE(c)(((c) == 0x09) || ((c) == 0x0a) || ((c) == 0x0b) || ((c) == 0x0b) || ((c) == 0x0c) || ((c) == 0x0d) || ((c) == 0x20)) 221 # define OHANA_ASSERT(LOGIC,...) { if (!(LOGIC)) { fprintf (stderr, __VA_ARGS__); abort(); } } 222 # define myAssert(LOGIC,...) { if (!(LOGIC)) { fprintf (stderr, __VA_ARGS__); abort(); } } 223 # define myAbort(MSG) { fprintf (stderr, "%s\n", MSG); abort(); } 217 224 218 225 // sorting is now defined as a macro call … … 236 243 char *strncreate PROTO((char *string, int n)); 237 244 int scan_line PROTO((FILE *f, char *line)); 245 int scan_line_maxlen PROTO((FILE *f, char *line, int maxlen)); 238 246 int dparse PROTO((double *X, int NX, char *line)); 239 247 int dparse_csv PROTO((double *X, int NX, char *line)); 248 int iparse PROTO((int *X, int NX, char *line)); 249 int iparse_csv PROTO((int *X, int NX, char *line)); 250 int tparse PROTO((time_t *X, int NX, char *line)); 251 int tparse_csv PROTO((time_t *X, int NX, char *line)); 240 252 int fparse PROTO((float *X, int NX, char *line)); 241 253 int get_argument PROTO((int argc, char **argv, char *arg)); … … 256 268 int check_dir_access PROTO((char *path, int verbose)); 257 269 int check_file_exec PROTO((char *filename)); 270 char *abspath PROTO((char *oldpath, int maxlength)); 258 271 259 272 /* in glockfile.c */ … … 323 336 off_t Fwrite PROTO((void *ptr, off_t size, off_t nitems, FILE *f, char *type)); 324 337 338 char *memstr PROTO((char *m1, char *m2, int n)); 339 int write_fmt PROTO((int fd, char *format, ...)); 340 325 341 char **isolate_elements PROTO((int argc, char **argv, int *nstack)); 326 342 … … 332 348 // gprint gets a stub implementation in libohana. opihi implements the real one. 333 349 int gprint (gpDest dest, char *format, ...); 350 351 // rconnect is used to run remote programs with a pipe for communication 352 typedef enum { 353 RCONNECT_ERR_NONE = 0, 354 RCONNECT_ERR_EXEC = 1, 355 RCONNECT_ERR_PIPE = 2, 356 RCONNECT_ERR_CONNECT = 3, 357 } RconnectErrors; 358 359 void rconnect_set_timeout (int timeout); 360 int rconnect (char *command, char *hostname, char *shell, int *stdio, int *errorInfo, int doHandshake); 334 361 335 362 /*
Note:
See TracChangeset
for help on using the changeset viewer.
