Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

spthread.h(4) OSS System Calls Reference Manual
ssize_t spt_write(
int filedes, void *buffer, size_t nbytes );
ssize_t spt_writev(
int filedes, struct iovec *iov, int iov_count );
Thread-Aware Toolkit API Extensions
The following are the thread-aware toolkit API definitions:
int spt_fd_read_ready(
const int fd, struct timeval *timeout );
int spt_fd_write_ready(
const int fd, struct timeval *timeout );
long spt_generateTag( void );
spt_error_t spt_interrupt(
const short filenum,
const spt_error_t errorSPT );
spt_error_t spt_interruptTag(
const short filenum, const long tag,
const, spt_error_t errorSPT );
spt_error_t spt_regFile( const short filenum );
spt_error_t spt_regFileIOHandler(
const short filenum,
const spt_FileIOHandler_p functionPtr );
spt_error_t spt_regOSSFileIOHandler( const int filedes,
const spt_OSSFileIOHandler_p functionPtr );
spt_error_t spt_regTimerHandler(
const spt_TimerHandler_p functionPtr );
spt_error_t spt_setOSSFileIOHandler(
const int filedes, const int read,
const int write,
const int error );
spt_error_t spt_unregFile( const short filenum );
spt_error_t spt_unregOSSFileIOHandler(
const int filedes );
Thread-Aware $RECEIVE API Definitions
The following are the thread-aware $RECEIVE API definitions:
long spt_INITRECEIVE(
const short filenum,
const short receive_depth );
long spt_RECEIVEREAD( const short filenum,
char *buffer,
const short read_count, long *count_read,
const long timelimit, short *receive_info,
short *dialog_info );
1146 Hewlett-Packard Company 527186-023