/usr/include/sblim/OSBase_Common.h is in libcmpiosbase-common0-dev 1.6.0-0ubuntu3.
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 89 90 | #ifndef _OSBASE_COMMOM_H_
#define _OSBASE_COMMOM_H_
/*
* OSBase_Common.h
*
* (C) Copyright IBM Corp. 2002, 2009
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
* CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
*
* You can obtain a current copy of the Eclipse Public License from
* http://www.opensource.org/licenses/eclipse-1.0.php
*
* Author: Heidi Neumann <heidineu@de.ibm.com>
* Contributors: Viktor Mihajlovski <mihajlov@de.ibm.com>
* C. Eric Wu <cwu@us.ibm.com>
* Tyrel Datwyler <tyreld@us.ibm.com>
*
* Description: CIM Base Instrumentation for Linux
*/
/* ---------------------------------------------------------------------------*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
/* ---------------------------------------------------------------------------*/
extern int _debug;
extern char * CIM_HOST_NAME;
extern char * CIM_OS_NAME;
int kernel_release();
/* ---------------------------------------------------------------------------*/
#define _OSBASE_TRACE(LEVEL,STR) \
if ( (LEVEL<=_debug) && (LEVEL>0) ) \
_osbase_trace(LEVEL,__FILE__,__LINE__,_format_trace STR)
/* ---------------------------------------------------------------------------*/
void _init_system_name();
void _init_os_name();
static inline char * get_system_name() { return CIM_HOST_NAME; }
static inline char * get_os_name() { return CIM_OS_NAME; }
signed short get_os_timezone();
unsigned long _get_os_boottime();
void _cat_timezone( char * str, signed short zone );
/* ---------------------------------------------------------------------------*/
int runcommand(const char *, char **, char ***, char ***);
void freeresultbuf(char **);
char ** line_to_array( char * , int );
/* ---------------------------------------------------------------------------*/
int get_system_parameter(char *, char *, char *, int);
int set_system_parameter(char *, char *, char *);
/* ---------------------------------------------------------------------------*/
/* ---------------------------------------------------------------------------*/
// TRACE FACILITY
/* ---------------------------------------------------------------------------*/
char * _format_trace(char *fmt,...);
void _osbase_trace( int, char *, int, char *);
/* ---------------------------------------------------------------------------*/
#ifdef __cplusplus
}
#endif
/* ---------------------------------------------------------------------------*/
#endif
|