src/os/unix/ngx_dlopen.h - nginx source code

Macros defined

Source code


  1. /*
  2. * Copyright (C) Maxim Dounin
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_DLOPEN_H_INCLUDED_
  6. #define _NGX_DLOPEN_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>


  9. #define ngx_dlopen(path)           dlopen((char *) path, RTLD_NOW | RTLD_GLOBAL)
  10. #define ngx_dlopen_n               "dlopen()"

  11. #define ngx_dlsym(handle, symbol)  dlsym(handle, symbol)
  12. #define ngx_dlsym_n                "dlsym()"

  13. #define ngx_dlclose(handle)        dlclose(handle)
  14. #define ngx_dlclose_n              "dlclose()"


  15. #if (NGX_HAVE_DLOPEN)
  16. char *ngx_dlerror(void);
  17. #endif


  18. #endif /* _NGX_DLOPEN_H_INCLUDED_ */