- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/libohana/include/ohana.h
r21508 r27840 68 68 # endif 69 69 70 #ifdef __GNUC__ 71 #define OHANA_FORMAT(style, fmt, varargs) __attribute__((format(style, fmt, varargs))) 72 #else // __GNUC__ 73 #define OHANA_FORMAT(style, fmt, varargs) 74 #endif // __GNUC__ 75 70 76 enum { 71 77 LCK_UNLOCK, /* file is unlocked */ … … 87 93 LCK_XCLD, /* exclusive soft lock */ 88 94 }; 95 96 # ifndef NAN 97 # ifndef BYTE_SWAP 98 # define __nan_bytes { 0x7f, 0xc0, 0, 0 } 99 # else 100 # define __nan_bytes { 0, 0, 0xc0, 0x7f } 101 # endif 102 static union { unsigned char __c[4]; float __d; } __nan_union 103 __attribute_used__ = { __nan_bytes }; 104 # define NAN (__nan_union.__d) 105 # endif 89 106 90 107 # ifndef M_PI … … 166 183 int mkdirhier PROTO((char *path, int mode)); 167 184 void make_backup PROTO((char *filename)); 168 int check_file_access PROTO((char *basefile, int backup, int verbose));185 int check_file_access PROTO((char *basefile, int backup, int readwrite, int verbose)); 169 186 int check_dir_access PROTO((char *path, int verbose)); 170 187 int check_file_exec PROTO((char *filename)); … … 177 194 char *SelectConfigFile PROTO((int *argc, char **argv, char *progname)); 178 195 char *LoadConfigFile PROTO((char *filename)); 179 char *ScanConfig PROTO((char *config, char *field, char *mode, int N,...)) ;196 char *ScanConfig PROTO((char *config, char *field, char *mode, int N,...)) OHANA_FORMAT(scanf, 3, 5); 180 197 char *expandline PROTO((char *line, char *config)); 181 198 char *fileextname PROTO((char *file)); … … 183 200 184 201 /* others */ 185 int Fseek PROTO((FILE *f, longoffset, int whence));202 int Fseek PROTO((FILE *f, off_t offset, int whence)); 186 203 char *ohana_version PROTO((void)); 187 204 … … 214 231 int EmptyIOBuffer PROTO((IOBuffer *buffer, int Nmax, int fd)); 215 232 void FreeIOBuffer PROTO((IOBuffer *buffer)); 216 int PrintIOBuffer PROTO((IOBuffer *buffer, char *format, ...)) ;233 int PrintIOBuffer PROTO((IOBuffer *buffer, char *format, ...)) OHANA_FORMAT(printf, 2, 3); 217 234 int vPrintIOBuffer PROTO((IOBuffer *buffer, char *format, va_list argp)); 218 235 … … 220 237 int ExpectMessage PROTO((int device, double timeout, IOBuffer *message)); 221 238 int ExpectCommand PROTO((int device, int length, double timeout, IOBuffer *buffer)); 222 int SendMessage PROTO((int device, char *format, ...)) ;239 int SendMessage PROTO((int device, char *format, ...)) OHANA_FORMAT(printf, 2, 3); 223 240 int SendMessageFixed PROTO((int device, int length, char *messge)); 224 int SendCommand PROTO((int device, int length, char *format, ...)) ;241 int SendCommand PROTO((int device, int length, char *format, ...)) OHANA_FORMAT(printf, 3, 4); 225 242 int SendCommandV PROTO((int device, int length, char *format, va_list argp)); 226 243 227 244 char *CheckForMessage PROTO((IOBuffer *buffer)); 245 246 off_t Fread PROTO((void *ptr, off_t size, off_t nitems, FILE *f, char *type)); 247 off_t Fwrite PROTO((void *ptr, off_t size, off_t nitems, FILE *f, char *type)); 228 248 229 249 /*
Note:
See TracChangeset
for help on using the changeset viewer.
