/usr/include/sidlOps.h is in libsidl-dev 1.4.0.dfsg-8.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /*
* File: sidlOps.h
* Copyright: (c) 2005 Lawrence Livermore National Security, LLC
* Revision: @(#) $Revision: 4434 $
* Date: $Date: 2005-03-17 09:05:29 -0800 (Thu, 17 Mar 2005) $
* Description: Special options that are common through out babel.
*
*/
#ifndef included_sidlOps_h
#define included_sidlOps_h
#include "babel_config.h"
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/* forward struct declaration */
struct sidl_BaseInterface__object;
void* sidl_dynamicLoadIOR(const char* objName, const char* extName);
/**
* Check if libMajor and libMinor are consistent with progMajor
* and progMinor. A mismatch on major will cause the program
* to exit. A mismatch on minor will cause a warning message.
* libraryOrType should indicate the name of the shared library
* or type where the mismatch may have taken place.
*/
void
sidl_checkIORVersion(const char *libraryOrType,
int libMajor, int libMinor,
int progMajor, int progMinor);
/**
* Register a function to be called during normal program termination
* via the ANSI Standard C atexit() function. The documentation for
* atexit implies that the number of functions that can be registered
* may be limited. This routine enables Babel to have several functions
* called during normal program terminal while only taking one slot
* in the standard atexit() list.
*
* Functions are called in the reverse order of their registration.
* The data pointer passed to babel_atexit is passed to fcn when it's
* called.
*/
typedef void (*sidl_atexit_func)(void *);
void sidl_atexit(sidl_atexit_func fcn, void *data);
/**
* This is a convenience function to call deleteRef on a sidl.BaseInterface
* during normal program termination. It's intended to be used with
* sidl_atexit.
*
* The true signature for this function is:
* void
* sidl_deleteRef_atexit(struct sidl_BaseInterface__object **objref)
* {
* if (objref && *objref) {
* sidl_BaseInterface_deleteRef(*objref);
* *objref = NULL;
* }
* }
*/
void sidl_deleteRef_atexit(void *objref);
/**
* Allocate memory using the system malloc, and if it fails, make
* a sidl_MemAllocException. Normally, this is called with
* foo = sidl_malloc(sizeof(struct foo), "Foo allocation failed.",
* "foo_alloc", __FILE__, __LINE__, &exception);
*/
void *
sidl_malloc(size_t numbytes,
const char *note,
const char *filename,
const int lineno,
const char *function,
struct sidl_BaseInterface__object **exception)
#ifdef __GNUC__
__attribute__((malloc))
#endif
;
#ifdef __cplusplus
}
#endif
#endif /* included_sidlOps_h */
|