Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought



          _setostype(2P)   INTERACTIVE UNIX System (POSIX)   _setostype(2P)



          NAME
               _setostype - set operating system semantics for a process

          SYNOPSIS
               #include sys/user.h
               void _setostype (ostype)
               int ostype;

          DESCRIPTION
               The _setostype function tells the system what set of system
               call semantics to use for the process.  The two useful
               values are _OS_SYSV and _OS_POSIX.  The default value for a
               process is set at exec time to be _OS_SYSV.

               A call to _setostype(_OS _POSIX) is made in the startup rou-
               tines for C programs compiled for POSIX execution before
               main() is entered.

               If the operating system does not support this new system
               call, the illegal system call signal SIGSYS is delivered to
               the process.  This allows the startup code to intercept the
               signal, issue an error message to the user, and exit.

               This system call is not intended to be directly invoked by a
               programmer.






























          Rev. 1.1                                                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026