Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • c1cb193
  • /
  • test
  • /
  • simpledynamic.h
Raw File
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:d6e1dcbfd1eb578876e0cb163f0d67768cc64541
directory badge Iframe embedding
swh:1:dir:4f21df03df9f34837dd7acee39f79d0bb98f0c8a
simpledynamic.h
/*
 * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the Apache License 2.0 (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

#ifndef OSSL_TEST_SIMPLEDYNAMIC_H
# define OSSL_TEST_SIMPLEDYNAMIC_H

# include "crypto/dso_conf.h"

# if defined(DSO_DLFCN) || defined(DSO_VMS)

#  include <dlfcn.h>

#  define SD_INIT       NULL
#  ifdef DSO_VMS
#   define SD_SHLIB     0
#   define SD_MODULE    0
#  else
#   define SD_SHLIB     (RTLD_GLOBAL|RTLD_LAZY)
#   define SD_MODULE    (RTLD_LOCAL|RTLD_NOW)
#  endif

typedef void *SD;
typedef void *SD_SYM;

# elif defined(DSO_WIN32)

#  include <windows.h>

#  define SD_INIT       0
#  define SD_SHLIB      0
#  define SD_MODULE     0

typedef HINSTANCE SD;
typedef void *SD_SYM;

# endif

# if defined(DSO_DLFCN) || defined(DSO_WIN32) || defined(DSO_VMS)
int sd_load(const char *filename, SD *sd, int type);
int sd_sym(SD sd, const char *symname, SD_SYM *sym);
int sd_close(SD lib);
const char *sd_error(void);
# endif

#endif

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top