Ignore:
Timestamp:
Dec 17, 2006, 6:17:31 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Split preload.c into load-fd.c and load-stream.c.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/load.h

    r1490 r1494  
    1717 */
    1818
    19 extern void zzuf_preload_libc(void);
     19#define STR(x) #x
     20#define ORIG(x) x##_orig
    2021
     22#define LOADSYM(x) \
     23    do { \
     24        ORIG(x) = dlsym(RTLD_NEXT, STR(x)); \
     25        if(!ORIG(x)) \
     26            abort(); \
     27    } while(0)
     28
     29extern void zzuf_load_fd(void);
     30extern void zzuf_load_stream(void);
     31
Note: See TracChangeset for help on using the changeset viewer.