OSF DCE Application Development Guide--Core Components
Using the DCE Serviceability Application Interface
4.1.2.4 Building and Running the Program
To build the application, you simply perform these steps:
1. Process the hel.sams file with the sams command
2. Build and link hello_svc from the the following modules:
• dcehelmsg.c
• dcehelsvc.c
• hello_svc.c
4.1.2.5 Fields of a Serviceability Message
When executed, the program will print a message similar to the following:
1994-04-05-20:13:34.500+00:00I----- PID#9467 NOTICE hel main hello_svc.c 47 0xa444e208
Hello World
This message is made up of the following fields:
time inaccuracy process_ID severity component subcomponent src_file src_line thread_ID text
Where the field names have the following meanings:
time The time that the message was written, in ISO format:
CCYY-MM-DD-hh:mm:ss.fff[+|-]II:ii
Where the digit groups represent:
CCYY Century and year
MM Month
DD Day
hh Hour
mm Minutes
ss Seconds
fff Fractions of second
II:ii Time inaccuracy expressed in hours and minutes
The final groups represent a time differential factor (expressed in
hours and minutes), followed by an inaccuracy component. For
further information on time format, see Chapter 19.
process_ID The process ID of the program that wrote the message (PID#9467 in
the example). If dce_svc_set_progname( ) had been called to
124245 Tandem Computers Incorporated 4− 11