Open System Services Porting Guide (G06.29+, H06.06+, J06.03+)

OSS and Guardian APIs..............................................................................................120
System and Process Limit Values....................................................................................120
Device Interfaces.........................................................................................................121
/etc/passwd and /etc/group Data Files........................................................................121
OSS Programs and CRE...............................................................................................121
Using OSS Function Calls..................................................................................................122
Using OSS File Function Calls............................................................................................122
Special Considerations for Files in Restricted-Access Filesets..............................................122
Using the access() Function...........................................................................................123
Using the chdir() Function.............................................................................................123
Using the chmod() Function...........................................................................................123
Using the chown() Function...........................................................................................123
Using the chroot() Function...........................................................................................124
Using the fcntl() Function..............................................................................................124
Using the link() Function...............................................................................................124
Using the lseek() Function.............................................................................................124
Using the lstat(), lstat64(), readlink(), and symlink() Functions............................................124
Using the mkdir() Function............................................................................................124
Using the mknod() Function...........................................................................................125
Using the mkfifo() Function............................................................................................125
Using the open() and open64() Functions.......................................................................125
Using the opendir(), readdir(), and readdir64() Functions.................................................125
Using the read() and write() Functions............................................................................125
Using the rename() and rmdir() Functions........................................................................126
Using the select() Function............................................................................................126
Using socket() and Related Functions..............................................................................126
AF_INET and AF_INET6 Sockets...............................................................................126
AF_UNIX Sockets...................................................................................................126
Using the stat(), stat64(), fstat() and fstat64() Functions.....................................................127
Using the unlink() Function............................................................................................127
Using OSS Process Function Calls......................................................................................127
Using the fork() and exec Set of Functions.......................................................................128
Using the exit() Function...............................................................................................128
Using the kill() Function................................................................................................128
Using the wait() and waitpid() Functions.........................................................................129
Using HP Extensions.............................................................................................................129
Guardian Procedure Calls for Interoperability......................................................................129
Process-Creation Functions Specific to HP............................................................................130
Using the tdm_fork() and tdm_execve Set of Functions .....................................................130
Using the tdm_spawn Set of Functions ...........................................................................131
Calling Guardian Procedures ...........................................................................................131
Environment-Specific I/O Routines......................................................................................132
Large File Aware Functions................................................................................................132
OSS ACL Functions..........................................................................................................133
Other Extension Functions.................................................................................................134
Using the OSS Internationalization Subsystem...........................................................................134
Internationalization Design and Development Guidelines.......................................................134
Porting Considerations for Locales......................................................................................134
Locales in OSS Client/Server Applications..........................................................................135
Interoperability Between OSS and Guardian Locales............................................................135
8 Migrating Guardian Applications to the OSS Environment...........................136
General Migration Guidelines................................................................................................136
TNS to TNS/R or TNS/E Native Migration..........................................................................137
Migration Options...........................................................................................................137
8 Contents