Ignore:
Timestamp:
Jul 13, 2017, 9:01:05 AM (21 months ago)
Author:
Juanma
Message:

Initial release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • squid-ssl/trunk/fuentes/libltdl/loaders/dyld.c

    r5495 r5496  
    11/* loader-dyld.c -- dynamic linking on darwin and OS X
    22
    3    Copyright (C) 1998-2000, 2004, 2006-2008, 2011-2015 Free Software
    4    Foundation, Inc.
     3   Copyright (C) 1998, 1999, 2000, 2004, 2006,
     4                 2007, 2008 Free Software Foundation, Inc.
    55   Written by Peter O'Gorman, 1998
    66
     
    9494
    9595
    96 #if defined HAVE_MACH_O_DYLD_H
    97 #  if !defined __APPLE_CC__ && !defined __MWERKS__ && !defined __private_extern__
     96#if defined(HAVE_MACH_O_DYLD_H)
     97#  if !defined(__APPLE_CC__) && !defined(__MWERKS__) && !defined(__private_extern__)
    9898  /* Is this correct? Does it still function properly? */
    9999#    define __private_extern__ extern
     
    105105
    106106/* We have to put some stuff here that isn't in older dyld.h files */
    107 #if !defined ENUM_DYLD_BOOL
     107#if !defined(ENUM_DYLD_BOOL)
    108108# define ENUM_DYLD_BOOL
    109109# undef FALSE
     
    114114 };
    115115#endif
    116 #if !defined LC_REQ_DYLD
     116#if !defined(LC_REQ_DYLD)
    117117# define LC_REQ_DYLD 0x80000000
    118118#endif
    119 #if !defined LC_LOAD_WEAK_DYLIB
     119#if !defined(LC_LOAD_WEAK_DYLIB)
    120120# define LC_LOAD_WEAK_DYLIB (0x18 | LC_REQ_DYLD)
    121121#endif
    122122
    123 #if !defined NSADDIMAGE_OPTION_NONE
     123#if !defined(NSADDIMAGE_OPTION_NONE)
    124124#  define NSADDIMAGE_OPTION_NONE                          0x0
    125125#endif
    126 #if !defined NSADDIMAGE_OPTION_RETURN_ON_ERROR
     126#if !defined(NSADDIMAGE_OPTION_RETURN_ON_ERROR)
    127127#  define NSADDIMAGE_OPTION_RETURN_ON_ERROR               0x1
    128128#endif
    129 #if !defined NSADDIMAGE_OPTION_WITH_SEARCHING
     129#if !defined(NSADDIMAGE_OPTION_WITH_SEARCHING)
    130130#  define NSADDIMAGE_OPTION_WITH_SEARCHING                0x2
    131131#endif
    132 #if !defined NSADDIMAGE_OPTION_RETURN_ONLY_IF_LOADED
     132#if !defined(NSADDIMAGE_OPTION_RETURN_ONLY_IF_LOADED)
    133133#  define NSADDIMAGE_OPTION_RETURN_ONLY_IF_LOADED         0x4
    134134#endif
    135 #if !defined NSADDIMAGE_OPTION_MATCH_FILENAME_BY_INSTALLNAME
     135#if !defined(NSADDIMAGE_OPTION_MATCH_FILENAME_BY_INSTALLNAME)
    136136#  define NSADDIMAGE_OPTION_MATCH_FILENAME_BY_INSTALLNAME 0x8
    137137#endif
    138138
    139 #if !defined NSLOOKUPSYMBOLINIMAGE_OPTION_BIND
     139#if !defined(NSLOOKUPSYMBOLINIMAGE_OPTION_BIND)
    140140#  define NSLOOKUPSYMBOLINIMAGE_OPTION_BIND               0x0
    141141#endif
    142 #if !defined NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_NOW
     142#if !defined(NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_NOW)
    143143#  define NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_NOW           0x1
    144144#endif
    145 #if !defined NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_FULLY
     145#if !defined(NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_FULLY)
    146146#  define NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_FULLY         0x2
    147147#endif
    148 #if !defined NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR
     148#if !defined(NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR)
    149149#  define NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR    0x4
    150150#endif
     
    153153                                | NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR)
    154154
    155 #if defined __BIG_ENDIAN__
     155#if defined(__BIG_ENDIAN__)
    156156#  define LT__MAGIC     MH_MAGIC
    157157#else
     
    186186   longer needed by the application.  */
    187187static int
    188 vl_exit (lt_user_data loader_data LT__UNUSED)
     188vl_exit (lt_user_data LT__UNUSED loader_data)
    189189{
    190190  vtable = NULL;
     
    227227static lt_module
    228228vm_open (lt_user_data loader_data, const char *filename,
    229          lt_dladvise advise LT__UNUSED)
     229         lt_dladvise LT__UNUSED advise)
    230230{
    231231  lt_module module = 0;
     
    241241    case NSObjectFileImageSuccess:
    242242      module = NSLinkModule (ofi, filename, NSLINKMODULE_OPTION_RETURN_ON_ERROR
    243                                             | NSLINKMODULE_OPTION_PRIVATE
    244                                             | NSLINKMODULE_OPTION_BINDNOW);
     243                                            | NSLINKMODULE_OPTION_PRIVATE
     244                                            | NSLINKMODULE_OPTION_BINDNOW);
    245245      NSDestroyObjectFileImage (ofi);
    246246
     
    303303              flags |= NSUNLINKMODULE_OPTION_KEEP_MEMORY_MAPPED;
    304304            }
    305 #if defined __ppc__
     305#if defined(__ppc__)
    306306          flags |= NSUNLINKMODULE_OPTION_RESET_LAZY_REFERENCES;
    307307#endif
     
    351351  if (!nssym)
    352352    {
    353       strlcpy (saveError, dylderror (LT__STRERROR (SYMBOL_NOT_FOUND)), 255);
     353      strncpy (saveError, dylderror (LT__STRERROR (SYMBOL_NOT_FOUND)), 255);
    354354      saveError[255] = 0;
    355355      if (!mh)
Note: See TracChangeset for help on using the changeset viewer.