Open System Services Programmer's Guide

10 Starting the Visual Inspect Debugger..................................................................................49
11 Convert Type 180 File to Type 101 File................................................................................50
12 Convert Type 101 File to Type 180 File................................................................................50
13 Using gname to Obtain a Guardian Filename.....................................................................56
14 Using pname to Obtain an OSS Pathname..........................................................................57
15 FUP INFO DETAIL Display With an OSS File........................................................................57
16 Using the Guardian PATHNAME_TO_FILENAME_ Procedure.................................................58
17 Using the Guardian FILENAME_TO_PATHNAME_ Procedure.................................................59
18 Using FILE_COMPLETE_SET_, FILE_COMPLETE_, and FILE_COMPLETE_GETINFO_ ..................60
19 Reading a Guardian File With an OSS Function Call ...........................................................67
20 Using fopen_guardian() in an OSS Module.........................................................................68
21 Reading an OSS File in Nowait Mode With Guardian Procedures ........................................71
22 Reading an OSS File With Guardian Procedures .................................................................73
23 Using a Guardian Procedure to Get OSS File Information by Name .......................................75
24 Using a Guardian Procedure to Get OSS File Information by Number ....................................77
25 Using select() on FIFOs...............................................................................................84
26 Dynamic Launcher Program ............................................................................................107
27 Dynamic Echo Server Program ........................................................................................110
28 Determining and Changing Process Priority using getpriority() and nice() ..............................112
29 Creating an OSS Process Using tdm_fork() and tdm_execvep() ............................................120
30 Creating an OSS Process Using tdm_spawnp() ..................................................................122
31 Creating and Controlling a Guardian Process Using Guardian Procedures ...........................124
32 Creating an OSS Process Using PROCESS_SPAWN_ .........................................................127
33 Getting Information About System Limits Using sysconf() .....................................................130
34 Getting Information About a Process Using PROCESS_GETINFO_........................................132
35 Getting Information About a Process Using PROCESS_GETINFOLIST_ ..................................134
36 Setting the User ID of the Current Process Using setuid() .....................................................136
37 Modifying Information About the Current Process Using PROCESS_SETINFO_ and
PROCESS_SETSTRINGINFO_ .........................................................................................137
38 Dynamic Launcher Program to Spawn Dynamic Server .......................................................140
39 Launcher Program to Spawn Static Servers .......................................................................143
40 Static Echo Server .........................................................................................................147
41 Using SETLOOPTIMER in an OSS Program........................................................................168
42 Using gettimeofday()......................................................................................................170
43 Using AF_INET in an OSS Server Process..........................................................................179
44 Using AF_INET in an OSS Requester Process.....................................................................182
45 Using AF_INET in a Guardian Server Process....................................................................185
46 Using $RECEIVE in an OSS Server Process........................................................................192
47 Using $RECEIVE in an OSS Requester Process...................................................................194
48 Using the pax Utility From a Program ..............................................................................209
49 Accessing an OSS Terminal With Guardian Procedures in the OSS API ................................213
50 Example Logger Program Used With OSSTTY ...................................................................219
51 Running an Interactive OSS Session From the Guardian Environment ....................................223
52 Printing an OSS File With the lp Utility .............................................................................227
53 Sending an OSS File to the Guardian Spooler...................................................................229
54 Sending an OSS File Directly to a Printer Using the Guardian API .......................................232
55 Calling syslog() With Formatting Codes ...........................................................................241
56 Calling syslog() With the %m Formatting Code .................................................................241
57 Use of System Logging Functions .....................................................................................242
58 Using OSS Security Functions .........................................................................................257
59 Using acl() and aclsort().......................................................................................269
60 Examples of _ptr64 and _ptr32 Pointer Modifiers...............................................................299
61 Mixed Data-Model Programming Example........................................................................301
62 getsockname() Data Type Change for LP64.......................................................................305
63 Handling the Synchronous Signal SIGFPE..........................................................................320