Changeset 32a5f7 in git for Singular/mod_lib.cc


Ignore:
Timestamp:
Aug 5, 2013, 7:50:01 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
ce9bfe4db5a16a3879122ddef6492a0b970949cb
Parents:
46e869cc5ffe6ff2378166330f78fca4a2bb2f0d
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-08-05 19:50:01+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-08-12 12:19:32+02:00
Message:
More MACH-O signatures
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/mod_lib.cc

    r46e869 r32a5f7  
    3232  const unsigned char mach_o64[]={0xfe,0xed,0xfa,0xcf,0};
    3333  const unsigned char mach_O64[]={0xcf,0xfa,0xed,0xfe,0};
     34
     35  const unsigned char mach_FAT[]={0xca,0xfe,0xba,0xbe,0};
     36  const unsigned char mach_fat[]={0xbe,0xba,0xfe,0xca,0};
    3437
    3538  int i=0;
     
    99102  }
    100103
     104  if( (strncmp(buf, (const char *)mach_FAT, 4)==0) || (strncmp(buf, (const char *)mach_fat, 4)==0)) /* generic Mach-O fat universal module */
     105  {
     106    LT = LT_MACH_O;
     107    //omFree(newlib);
     108    //newlib = omStrDup(libnamebuf);
     109    goto lib_type_end;
     110  }
     111
    101112  if( (strncmp(buf, "\02\020\01\016\05\022@", 7)==0))
    102113  {
Note: See TracChangeset for help on using the changeset viewer.