/usr/include/sblim/OSBase_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 | #ifndef _OSBASE_UNIXPROCESS_H_
#define _OSBASE_UNIXPROCESS_H_
/*
* OSBase_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>
* C. Eric Wu <cwu@us.ibm.com>
*
* Description:
* This file defines the interfaces for the resource access implementation
* of the CIM class Linux_UnixProcess.
*
*/
/* ---------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif
/* ---------------------------------------------------------------------------*/
struct cim_process{
char * pid ; // Handle (Process ID)
char * ppid; // ParentProcessID
char * ptty; // ProcessTTY
char * pcmd; // Name
char * path; // ModulePath
char ** args; // Parameters
char * createdate; // CreationDate
unsigned long prio ; // Priority
unsigned long nice ; // ProcessNiceValue
unsigned long long uid ; // RealUserID
unsigned long long gid ; // ProcessGroupID
unsigned long long sid ; // ProcessSessionID
unsigned short state ; // ExecutionState
unsigned long long kmtime ; // KernelModeTime
unsigned long long umtime ; // UserModeTime
unsigned long long pmem ; // Real Data
unsigned long pcpu ; // CPU Time
};
struct processlist{
struct cim_process * p ;
struct processlist * next ;
};
/* Linux_Process calls */
int enum_all_process( struct processlist ** lptr);
int get_process_data( char * pid, struct cim_process ** sptr);
void free_processlist( struct processlist * lptr);
void free_process( struct cim_process * sptr);
/* ---------------------------------------------------------------------------*/
#ifdef __cplusplus
}
#endif
/* ---------------------------------------------------------------------------*/
#endif
|