/usr/include/sblim/cmpiOSBase_UnixProcess.h is in libcmpiosbase-common0-dev 1.6.2-0ubuntu2.
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 91 | #ifndef _CMPIOSBASE_UNIXPROCESS_H_
#define _CMPIOSBASE_UNIXPROCESS_H_
/*
* cmpiOSBase_UnixProcess.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>
* Eric C. Wu <cwu@us.ibm.com>
*
* Interface Type : Common Magabeablity Programming Interface ( CMPI )
*
* Description:
* This file defines the interfaces for the factory implementation of the
* CIM class Linux_UnixProcess.
*
*/
/* ---------------------------------------------------------------------------*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include "cmpidt.h"
#include "OSBase_UnixProcess.h"
/* ---------------------------------------------------------------------------*/
#ifndef _CMPIOSBASE_UTIL_H_
static char * _ClassName = "Linux_UnixProcess";
#endif
/* ---------------------------------------------------------------------------*/
#ifdef MODULE_SYSMAN
typedef struct _SysMan {
unsigned long maxChildProc;
unsigned long maxOpenFiles;
unsigned long maxRealStack;
} SysMan;
int moduleInstalled = 0;
static char pathBuffer[PATH_MAX + 1];
static char * dirPath = "/proc/sysman";
static char * fileName = "pid_rlimit";
int _sysman_data( char * pid , struct _SysMan * sm );
#endif
/* ---------------------------------------------------------------------------*/
/* method to create a CMPIObjectPath of this class */
CMPIObjectPath * _makePath_UnixProcess( const CMPIBroker * _broker,
const CMPIContext * ctx,
const CMPIObjectPath * cop,
struct cim_process * sptr,
CMPIStatus * rc);
/* method to create a CMPIInstance of this class */
CMPIInstance * _makeInst_UnixProcess( const CMPIBroker * _broker,
const CMPIContext * ctx,
const CMPIObjectPath * cop,
const char ** properties,
struct cim_process * sptr,
CMPIStatus * rc);
/* ---------------------------------------------------------------------------*/
#endif
|