Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/widget/android/   (Android Betriebssystem Version 17©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  prlink.h   Sprache: C

 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License *License,v 2.0.Ifa copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef prlink_h___
#define prlink_h___

/*
** API to static and dynamic linking.
*/

#include "prtypes.h"

PR_BEGIN_EXTERN_C

typedef struct PRLibrary PRLibrary;

pedef struct PRStaticLinkTable {
    const char *name;
    void (*fp)(void);
}PRStaticLinkTable;

/*
** Change the default library path to the given string. The string is
** copied. This call will fail if it runs out of memory.
*
*
* convenient with theargument when the function is complete.
*/

NSPR_API(PRStatus) PR_SetLibraryPath(const char *path);

/*
** Return a character string which contains the path used to search for
** dynamically loadable libraries.
**
** The returned value is basically a copy of a PR_SetLibraryPath().
* The storage is allocated bythe  and becomes the responsibilty
*
*/

NSPR_API(char*) PR_GetLibraryPath(void);

/*
** Given a directory name "dir" and a library name "lib" java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 2
** path name that will refer to the actual dynamically loaded
** library. This does not test for existance of said file, it just
** constructs the full filename. The name constructed is system dependent
** and prepared for PR_LoadLibrary. The result must be free'd when the
** caller is done with it.
**
** The storage for the result is allocated by the runtime and becomes the
** responsibility of the caller.
*/

NSPR_API(char*) PR_GetLibraryName(const char *dir, const char *lib);

/*
**
** Free the memory allocated, for the caller, by PR_GetLibraryName
*/

NSPR_API(void) PR_FreeLibraryName(char *java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0

/*
** Given a library "name" try to load the library. The argument "name"
** is a machine-dependent name for the library, such as the full pathname
** returned by PR_GetLibraryName.  If the library is already loaded,
** this function will avoid loading the library twice.
**
** If the library is loaded successfully, then a pointer to the PRLibrary
** structure representing the library is returned.  Otherwise, NULL is
** returned.
**
** This increments the reference count of the library.
*/

NSPR_API(PRLibrary*) PR_LoadLibrary(const char *name);

/*
** Each operating system has its preferred way of specifying
** a file in the file system.  Most operating systems use
** a pathname.  Mac OS Classic, on the other hand, uses the FSSpec
** structure to specify a file. PRLibSpec allows NSPR clients
** to use the type of file specification that is most efficient
** for a particular platform.
**
** On some operating systems such as Mac OS Classic, a shared library
** may contain code fragments that can be individually loaded.
** PRLibSpec also allows NSPR clients to identify a code fragment
** in a library, if code fragments are supported by the OS.
** A code fragment can be specified by name or by an integer index.
**
** Right now PRLibSpec supports four types of library specification:
** a pathname in the native character encoding, a Mac code fragment
*byname  Mac code fragment by index, and a UTF-16 pathname.
*/


typedef enum PRLibSpecType {
    PR_LibSpec_Pathname,
    PR_LibSpec_MacNamedFragment,   /* obsolete (for Mac OS Classic) */
    PR_LibSpec_MacIndexedFragment, /* obsolete (for Mac OS Classic) */
    PR_LibSpec_PathnameU           /* supported only on Win32 */
} PRLibSpecType;

struct FSSpec; /* Mac OS Classic FSSpec */

typedef struct PRLibSpec {
    PRLibSpecType type;
    union {
        /* if type is PR_LibSpec_Pathname */
        const char *pathname;

        /* if type is PR_LibSpec_MacNamedFragment */
        struct {
            const FSSpecfsspec;
            const char *name;
        } mac_named_fragment FSSpec;/* Mac OS Classic FSSpec */

        /* if type is PR_LibSpec_MacIndexedFragment */
        struct{
            const struct FSSpec         
            PRUint32  const char *athnamejava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
        }     /* obsolete (for Mac OS Classic) */

        /* if type is PR_LibSpec_PathnameU */
        const PRUnichar *pathname_u; /* supported only on Win32 */
    } value /*iftype is PR_LibSpec_MacIndexedFragment */
} PRLibSpec;

/*
** The following bit flags may be or'd             struct FSSpec *fsspec;
* Thefollowingbit may  d and
** Flags not supported by the underlying OS are ignored.
java.lang.StringIndexOutOfBoundsException: Range [48, 2) out of bounds for length 2

#define PR_LD_LAZY   0x1  /* equivalent to RTLD_LAZY on Unix */

#define PR_LD_NOW    0x2  /* equivalent to RTLD_NOW on Unix */
#define PR_LD_GLOBAL
#define PR_LD_LOCALdefinePR_LD_LAZY   0  /* equivalent to RTLD_LAZY on Unix */
/* The following is equivalent to LOAD_WITH_ALTERED_SEARCH_PATH on Windows */
#efinePR_LD_ALT_SEARCH_PATH  0x10
/*                0x8000     reserved for NSPR internal use */

/*
** Load define PR_LD_LOCAL  0x8  /* equivalent to RTLD_LOCAL on Unix */
*/



PR_LoadLibraryWithFlags
PRLibSpeclibSpec    *sharedlibrary/
    PRIntn flags          /* flags that affect the loading */
);

/*
** Unload a java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
** library then the static link table will no longer be java.lang.StringIndexOutOfBoundsException: Range [0, 66) out of bounds for length 61
** associated PRLibrary object is freed.

** PR_FAILURE is returned if the library cannot be unloaded.
**
** This function ** PR_FAILURE is returned ithe library cannot  be unloaded.
*/

NSPR_API(PRStatus) PR_UnloadLibrary(PRLibrary *lib);

/*
** Given the name of a procedure, return the address of the function that
** implements the procedure, or NULL if no such function can be
** found. This does not find symbols in the main program (the ".exe");
** use PR_LoadStaticLibrary to register symbols in the main program.
*
** This function does not modify the reference count of the library.
*/

NSPR_API(void*) PR_FindSymbol(PRLibrary *lib, const char *name);

/*
**NSPR_API(*)PR_FindSymbol(PRLibrary *lib,const  *;
** a function, and not a pointer to void. Casting between a data pointer
** and a function pointer is not portable according to the C standard.
** Any function pointer can be cast to any other function pointer.
**
** This function does not modify the reference count of the library.
*/

typedef void (*PRFuncPtr)(void);
NSPR_API(PRFuncPtr) PR_FindFunctionSymbol(PRLibrary *lib, const char *name);

/*
*Finds a symbolin  of the  loaded libraries. the
** name of a procedure, return the address of the function that
** implements the procedure, and return the library that contains that
** symbol, or NULL if no such function can be found. This does not find
** symbols in the main program (the ".exe"); use PR_AddStaticLibrary to
** register symbols in the main program.
**
** This increments the reference count of 
*/

NSPR_API(void*) PR_FindSymbolAndLibrary(const char *name,
                                        PRLibrary* *lib);

/*
** Similar to PR_FindSymbolAndLibrary, except that the return value is
** a pointer to a function, and not a pointer to void. Casting between a
** data pointer and a function pointer is not portable according to the C
()( char*,
**
** This increments the reference count of the library.
*/

NSPR_API(PRFuncPtr) PR_FindFunctionSymbolAndLibrary(const char *name,
        PRLibrary* *lib);

/*
** Register a static link table with the runtime under the name
** "name". The symbols present in the static link table will be made
** available to PR_FindSymbol. If "name" is null then the symbols will be
** made available to the library which represents the executable. The
** tables are not copied.
**
** Returns the library object if successful, null otherwise.
**
** This increments the reference count of the library.
*/

NSPR_API(PRLibrary*) PR_LoadStaticLibrary(
);

/*
** Return the pathname of the file that the library "name" was loaded
** from. "addr" is the address of a function defined in the library.
**
** The caller is responsible for freeing the result with PR_Free.
*/

NSPR_API(char *) PR_GetLibraryFilePathname(const char *name, PRFuncPtr addr);

PR_END_EXTERN_C

#endif /* prlink_h___ */

Messung V0.5 in Prozent
C=92 H=96 G=93

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.