Changeset 55cb6b in git for libpolys/polys/mod_raw.cc
- Timestamp:
- Apr 10, 2013, 4:04:09 PM (11 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- ccae2f26143f71606cceb669458d60a2c39c4654
- Parents:
- c60380d927be780ce0fe437b14c03e70f0df8f5984299e1e1d2b92c5e28fc52391cc529f8eb8ade7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/mod_raw.cc
r84299e r55cb6b 16 16 #include <ctype.h> 17 17 #include <sys/stat.h> 18 #include <errno.h> 18 19 19 20 … … 39 40 char* si_bultin_libs[]={ SI_FOREACH_BUILTIN(SI_BUILTIN_LIBSTR) NULL }; 40 41 41 #undef SI_BUILTIN_LIBSTR 42 #undef SI_BUILTIN_LIBSTR 42 43 43 44 lib_types type_of_LIB(char *newlib, char *libnamebuf) … … 45 46 const unsigned char mach_o[]={0xfe,0xed,0xfa,0xce,0}; 46 47 const unsigned char mach_O[]={0xce,0xfa,0xed,0xfe,0}; 47 48 48 49 const unsigned char mach_o64[]={0xfe,0xed,0xfa,0xcf,0}; 49 50 const unsigned char mach_O64[]={0xcf,0xfa,0xed,0xfe,0}; 50 51 51 52 int i=0; 52 53 while(si_bultin_libs[i]!=NULL) … … 62 63 struct stat sb; 63 64 int nbytes = 0; 64 //int ret;65 int ret; 65 66 lib_types LT=LT_NONE; 66 67 67 68 FILE * fp = feFopen( newlib, "r", libnamebuf, FALSE ); 68 /*ret =*/ (void) stat(libnamebuf, &sb); 69 70 do 71 { 72 ret = stat(libnamebuf, &sb); 73 } while((ret < 0) and (errno == EINTR)); 69 74 70 75 if (fp==NULL)
Note: See TracChangeset
for help on using the changeset viewer.