Changeset bdda8c2 in git for libpolys/polys/mod_raw.cc


Ignore:
Timestamp:
Apr 9, 2013, 4:39:42 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
2d5ff537ab672bcbb2ca73df6830672f38b1ea63
Parents:
bc0d32def5d3461a77eed40c1e1a3d254811858a
Message:
add: handling signals in system calls, p2
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/mod_raw.cc

    rbc0d32 rbdda8c2  
    1616#include <ctype.h>
    1717#include <sys/stat.h>
     18#include <errno.h>
    1819
    1920
     
    3940char* si_bultin_libs[]={ SI_FOREACH_BUILTIN(SI_BUILTIN_LIBSTR)  NULL };
    4041
    41 #undef SI_BUILTIN_LIBSTR 
     42#undef SI_BUILTIN_LIBSTR
    4243
    4344lib_types type_of_LIB(char *newlib, char *libnamebuf)
     
    4546  const unsigned char mach_o[]={0xfe,0xed,0xfa,0xce,0};
    4647  const unsigned char mach_O[]={0xce,0xfa,0xed,0xfe,0};
    47    
     48
    4849  const unsigned char mach_o64[]={0xfe,0xed,0xfa,0xcf,0};
    4950  const unsigned char mach_O64[]={0xcf,0xfa,0xed,0xfe,0};
    50    
     51
    5152  int i=0;
    5253  while(si_bultin_libs[i]!=NULL)
     
    6263  struct stat sb;
    6364  int nbytes = 0;
    64   // int ret;
     65  int ret;
    6566  lib_types LT=LT_NONE;
    6667
    6768  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));
    6974
    7075  if (fp==NULL)
Note: See TracChangeset for help on using the changeset viewer.