The error codes return from Sthread methods are:
stTIMEOUT - Timed out waiting for resource stSEMBUSY - Semaphore busy stSEMPOSTED - Semaphore already posted stSEMALREADYRESET - Semaphore was already reset stNOTHREAD - No active thread stBADFD - Bad file descriptor for I/O operation, seek, or close stBADIOVCNT - Bad count for io vector (too high) stTOOMANYOPEN - Too many open files stBADADDR - Bad offset in shared memory segment stBADFILEHDL - Attempt to wait on file handle that is down