CPGuide - Control Program Functions: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 55: | Line 55: | ||
|[[DosCancelLockRequest]]||[[DosProtectSetFHState]] | |[[DosCancelLockRequest]]||[[DosProtectSetFHState]] | ||
|- | |- | ||
|DosProtectClose||DosProtectSetFileInfo | |[[DosProtectClose]]||[[DosProtectSetFileInfo]] | ||
|- | |- | ||
|DosProtectOpen||DosProtectSetFileLocks | |[[DosProtectOpen]]||[[DosProtectSetFileLocks]] | ||
|- | |- | ||
|DosProtectQueryFileInfo||DosProtectSetFilePtr | |[[DosProtectQueryFileInfo]]||[[DosProtectSetFilePtr]] | ||
|- | |- | ||
|DosProtectRead||DosProtectSetFileSize | |[[DosProtectRead]]||[[DosProtectSetFileSize]] | ||
|- | |- | ||
|DosProtectQueryFHState||DosProtectWrite | |[[DosProtectQueryFHState]]||[[DosProtectWrite]] | ||
|- | |- | ||
!colspan=2|File Management | !colspan=2|File Management | ||
Line 83: | Line 83: | ||
|[[DosEditName]]||[[DosSetMaxFH]] | |[[DosEditName]]||[[DosSetMaxFH]] | ||
|- | |- | ||
|DosFindClose||DosSetVerify | |[[DosFindClose]]||[[DosSetVerify]] | ||
|- | |- | ||
|DosFindFirst||DosWrite | |[[DosFindFirst]]||[[DosWrite]] | ||
|- | |- | ||
!colspan=2|Queries | !colspan=2|Queries | ||
|- | |- | ||
|DosQueryAppType||DosQueryFileInfo | |[[DosQueryAppType]]||[[DosQueryFileInfo]] | ||
|- | |- | ||
|DosQueryCurrentDir||DosQueryPathInfo | |[[DosQueryCurrentDir]]||[[DosQueryPathInfo]] | ||
|- | |- | ||
|DosQueryCurrentDisk||DosQueryHType | |[[DosQueryCurrentDisk]]||[[DosQueryHType]] | ||
|- | |- | ||
|DosQueryFHState||DosQueryVerify | |[[DosQueryFHState]]||[[DosQueryVerify]] | ||
|- | |- | ||
!colspan=2|Settings | !colspan=2|Settings | ||
|- | |- | ||
|DosResetBuffer||DosSetFileLocks | |[[DosResetBuffer]]||[[DosSetFileLocks]] | ||
|- | |- | ||
|DosSetCurrentDir||DosSetFilePtr | |[[DosSetCurrentDir]]||[[DosSetFilePtr]] | ||
|- | |- | ||
|DosSetDefaultDisk||DosSetFileSize | |[[DosSetDefaultDisk]]||[[DosSetFileSize]] | ||
|- | |- | ||
|DosSetFHState||DosSetPathInfo | |[[DosSetFHState]]||[[DosSetPathInfo]] | ||
|- | |- | ||
|DosSetFileInfo||DosSetRelMaxFH | |[[DosSetFileInfo]]||[[DosSetRelMaxFH]] | ||
|- | |- | ||
!colspan=2|File Systems | !colspan=2|File Systems | ||
|- | |- | ||
|DosFSAttach||DosQueryFSAttach | |[[DosFSAttach]]||[[DosQueryFSAttach]] | ||
|- | |- | ||
|DosFSCtl||DosQueryFSInfo | |[[DosFSCtl]]l||[[DosQueryFSInfo]] | ||
|- | |- | ||
|DosPhysicalDisk||DosSetFSInfo | |[[DosPhysicalDisk]]||[[DosSetFSInfo]] | ||
|- | |- | ||
!colspan=2|General | !colspan=2|General | ||
|- | |- | ||
|DosBeep||DosShutdown | |[[DosBeep]]||[[DosShutdown]] | ||
|- | |- | ||
!colspan=2|Memory Management | !colspan=2|Memory Management | ||
|- | |- | ||
|DosAllocMem||DosGiveSharedMem | |[[DosAllocMem]]||[[DosGiveSharedMem]] | ||
|- | |- | ||
|DosAllocSharedMem||DosQueryMem | |[[DosAllocSharedMem]]||[[DosQueryMem]] | ||
|- | |- | ||
|DosAllocThreadLocalMemory||DosSetMem | |[[DosAllocThreadLocalMemory]]||[[DosSetMem]] | ||
|- | |- | ||
|DosFreeMem||DosSubAllocMem | |[[DosFreeMem]]||[[DosSubAllocMem]] | ||
|- | |- | ||
|DosFreeThreadLocalMemory||DosSubFreeMem | |[[DosFreeThreadLocalMemory]]||[[DosSubFreeMem]] | ||
|- | |- | ||
|DosGetNamedSharedMem||DosSubSetMem | |[[DosGetNamedSharedMem]]||[[DosSubSetMem]] | ||
|- | |- | ||
|DosGetSharedMem||DosSubUnsetMem | |[[DosGetSharedMem]]||[[DosSubUnsetMem]] | ||
|- | |- | ||
!colspan=2|Message Management | !colspan=2|Message Management | ||
|- | |- | ||
|DosGetMessage||DosPutMessage | |[[DosGetMessage]]||[[DosPutMessage]] | ||
|- | |- | ||
|DosInsertMessage||DosQueryMessageCP | |[[DosInsertMessage]]||[[DosQueryMessageCP]] | ||
|- | |- | ||
!colspan=2|National Language Support | !colspan=2|National Language Support | ||
|- | |- | ||
|DosMapCase||DosQueryCtryInfo | |[[DosMapCase]]||[[DosQueryCtryInfo]] | ||
|- | |- | ||
|DosQueryCollate||DosQueryDBCSEnv | |[[DosQueryCollate]]||[[DosQueryDBCSEnv]] | ||
|- | |- | ||
|DosQueryCp||DosSetProcessCp | |[[DosQueryCp]]||[[DosSetProcessCp]] | ||
|- | |- | ||
!colspan=2|Pipes | !colspan=2|Pipes | ||
|- | |- | ||
|DosCallNPipe||DosQueryNPipeSemState | |[[DosCallNPipe]]||[[DosQueryNPipeSemState]] | ||
|- | |- | ||
|DosConnectNPipe||DosQueryNPHState | |[[DosConnectNPipe]]||[[DosQueryNPHState]] | ||
|- | |- | ||
|DosCreatePipe||DosSetNPHState | |[[DosCreatePipe]]||[[DosSetNPHState]] | ||
|- | |- | ||
|DosCreateNPipe||DosSetNPipeSem | |[[DosCreateNPipe]]||[[DosSetNPipeSem]] | ||
|- | |- | ||
|DosDisConnectNPipe||DosTransactNPipe | |[[DosDisConnectNPipe]]||[[DosTransactNPipe]] | ||
|- | |- | ||
|DosPeekNPipe||DosWaitNPipe | |[[DosPeekNPipe]]||[[DosWaitNPipe]] | ||
|- | |- | ||
|DosQueryNPipeInfo | |[[DosQueryNPipeInfo]] | ||
|- | |- | ||
!colspan=2|Processes, Threads and Sessions | !colspan=2|Processes, Threads and Sessions | ||
|- | |- | ||
|DosCreateThread||DosSelectSession | |[[DosCreateThread]]||[[DosSelectSession]] | ||
|- | |- | ||
|DosEnterCritSec||DosSetPriority | |[[DosEnterCritSec]]||[[DosSetPriority]] | ||
|- | |- | ||
|DosExecPgm||DosSetSession | |[[DosExecPgm]]||[[DosSetSession]] | ||
|- | |- | ||
|DosExitCritSec||DosSleep | |[[DosExitCritSec]]||[[DosSleep]] | ||
|- | |- | ||
|DosExit||DosStartSession | |[[DosExit]]||[[DosStartSession]] | ||
|- | |- | ||
|DosExitList||DosStopSession | |[[DosExitList]]||[[DosStopSession]] | ||
|- | |- | ||
|DosGetInfoBlocks||DosSuspendThread | |[[DosGetInfoBlocks]]||[[DosSuspendThread]] | ||
|- | |- | ||
|DosKillProcess||DosWaitChild | |[[DosKillProcess]]||[[DosWaitChild]] | ||
|- | |- | ||
|DosKillThread||DosWaitThread | |[[DosKillThread]]||[[DosWaitThread]] | ||
|- | |- | ||
|DosResumeThread||DosQueryThreadContext | |[[DosResumeThread]]||[[DosQueryThreadContext]] | ||
|- | |- | ||
!colspan=2|Query System Information | !colspan=2|Query System Information | ||
|- | |- | ||
|DosQuerySysInfo||DosScanEnv | |[[DosQuerySysInfo]]||[[DosScanEnv]] | ||
|- | |- | ||
!colspan=2|Queues | !colspan=2|Queues | ||
|- | |- | ||
|DosCloseQueue||DosPurgeQueue | |[[DosCloseQueue]]||[[DosPurgeQueue]] | ||
|- | |- | ||
|DosCreateQueue||DosQueryQueue | |[[DosCreateQueue]]||[[DosQueryQueue]] | ||
|- | |- | ||
|DosOpenQueue||DosReadQueue | |[[DosOpenQueue]]||[[DosReadQueue]] | ||
|- | |- | ||
|DosPeekQueue||DosWriteQueue | |[[DosPeekQueue]]||[[DosWriteQueue]] | ||
|- | |- | ||
!colspan=2|Resource Objects | !colspan=2|Resource Objects | ||
|- | |- | ||
|DosFreeResource||DosQueryResourceSize | |[[DosFreeResource]]||[[DosQueryResourceSize]] | ||
|- | |- | ||
|DosGetResource | |[[DosGetResource]] | ||
|- | |- | ||
!colspan=2|Semaphores | !colspan=2|Semaphores | ||
Line 213: | Line 213: | ||
!colspan=2|Event Semaphores | !colspan=2|Event Semaphores | ||
|- | |- | ||
|DosCloseEventSem||DosQueryEventSem | |[[DosCloseEventSem]]||[[DosQueryEventSem]] | ||
|- | |- | ||
|DosCreateEventSem||DosResetEventSem | |[[DosCreateEventSem]]||[[DosResetEventSem]] | ||
|- | |- | ||
|DosOpenEventSem||DosWaitEventSem | |[[DosOpenEventSem]]||[[DosWaitEventSem]] | ||
|- | |- | ||
|DosPostEventSem | |[[DosPostEventSem]] | ||
|- | |- | ||
!colspan=2|Mutex Semaphores | !colspan=2|Mutex Semaphores | ||
|- | |- | ||
|DosCloseMutexSem||DosQueryMutexSem | |[[DosCloseMutexSem]]||[[DosQueryMutexSem]] | ||
|- | |- | ||
|DosCreateMutexSem||DosReleaseMutexSem | |[[DosCreateMutexSem]]||[[DosReleaseMutexSem]] | ||
|- | |- | ||
|DosOpenMutexSem||DosRequestMutexSem | |[[DosOpenMutexSem]]||[[DosRequestMutexSem]] | ||
|- | |- | ||
!colspan=2|Muxwait Semaphores | !colspan=2|Muxwait Semaphores |
Latest revision as of 21:02, 2 October 2020
Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation
This chapter contains an alphabetic list of the Control Program functions available in the OS/2 operating system. These functions can be used in full-screen, windowed (VIO), and Presentation Manager sessions to perform basic operating-system functions, such as file input and output, memory allocation, thread control and communication, process control and communication, pipe and queue manipulation, and exception and error handling.
The following table lists the available functions.