Classes | Defines | Functions | Variables

lt__private.h File Reference

#include <config.h>
#include <stdio.h>
#include <ctype.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include "lt__alloc.h"
#include "lt__dirent.h"
#include "lt__strl.h"
#include "lt__glibc.h"
#include "ltdl.h"

Go to the source code of this file.

Classes

struct  lt_interface_data
struct  lt__handle
struct  lt__advise

Defines

#define LT_GLOBAL_DATA
#define __attribute__(x)
#define LT__UNUSED   __attribute__ ((__unused__))
#define strneq(s1, s2)   (strcmp((s1), (s2)) != 0)
#define streq(s1, s2)   (!strcmp((s1), (s2)))
#define LT__STRERROR(name)   lt__error_string(LT_CONC(LT_ERROR_,name))
#define LT__GETERROR(lvalue)   (lvalue) = lt__get_last_error()
#define LT__SETERRORSTR(errormsg)   lt__set_last_error(errormsg)
#define LT__SETERROR(errorcode)   LT__SETERRORSTR(LT__STRERROR(errorcode))

Functions

LT_SCOPE void lt__alloc_die_callback (void)
LT_SCOPE const char * lt__error_string (int errorcode)
LT_SCOPE const char * lt__get_last_error (void)
LT_SCOPE const char * lt__set_last_error (const char *errormsg)

Variables

LT_BEGIN_C_DECLS int errno

Define Documentation

#define __attribute__ (   x  ) 
#define LT__GETERROR (   lvalue  )     (lvalue) = lt__get_last_error()

Referenced by lt_dlerror(), lt_dlexit(), and lt_dlsym().

#define LT__SETERROR (   errorcode  )     LT__SETERRORSTR(LT__STRERROR(errorcode))
#define LT__SETERRORSTR (   errormsg  )     lt__set_last_error(errormsg)
#define LT__STRERROR (   name  )     lt__error_string(LT_CONC(LT_ERROR_,name))
#define LT__UNUSED   __attribute__ ((__unused__))
#define LT_GLOBAL_DATA
#define streq (   s1,
  s2 
)    (!strcmp((s1), (s2)))
#define strneq (   s1,
  s2 
)    (strcmp((s1), (s2)) != 0)

Referenced by lt_dlpreload_open().


Function Documentation

LT_SCOPE void lt__alloc_die_callback ( void   ) 

References LT__SETERROR.

LT_SCOPE const char* lt__error_string ( int  errorcode  ) 
LT_SCOPE const char* lt__get_last_error ( void   ) 
LT_SCOPE const char* lt__set_last_error ( const char *  errormsg  ) 

Variable Documentation

LT_BEGIN_C_DECLS int errno