Writing Monitors for the Event Monitoring Service (December 1999)
Chapter 2 27
The EMS Application Programming Interface (API)
Functions
EMS Data Types
The EMS API and the objects within EMS use several data types. These
types are described in Table 2-2:
Table 2-2 Data Types
Type Size on
HP-UX
10.20
Description
char * 32 bits A character pointer (also referred to as a
string).
fd_set 256
bytes
A bit array capable of holding 256 bytes
(2048 bits). Used with select(2) in
rm_get_next_event().
int 32 bits A 32-bit signed integer. Used to store
values between -2,147,483,648 and
2,147,483,647
pid_t 32 bits A 32-bit signed integer. Used to store
values between -2,147,483,648 and
2,147,483,647
rm_error_type 32 bits Defined in
/opt/resmon/include/resmon.h
to be an enum. Used to store error codes
reported by a EMS API function.
rm_field_type 32 bits Defined in
/opt/resmon/include/resmon.h
to be an enum. Used to store values that
identify a particular field inside an object.
rm_object_addr 32 bits Defined in
/opt/resmon/include/resmon.h
to be a void *. Contains the address of a
memory block that defines an opaque
object.