EPICS Base  7.0.8.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
osiProcess.h File Reference

Operating System Independent Interface to Process Environment. More...

#include "libComAPI.h"
Include dependency graph for osiProcess.h:

Go to the source code of this file.

Enumerations

enum  osiGetUserNameReturn { osiGetUserNameFail, osiGetUserNameSuccess }
 
enum  osiSpawnDetachedProcessReturn { osiSpawnDetachedProcessFail, osiSpawnDetachedProcessSuccess, osiSpawnDetachedProcessNoSupport }
 

Functions

LIBCOM_API
osiGetUserNameReturn
epicsStdCall 
osiGetUserName (char *pBuf, unsigned bufSize)
 get user name More...
 
LIBCOM_API
osiSpawnDetachedProcessReturn
epicsStdCall 
osiSpawnDetachedProcess (const char *pProcessName, const char *pBaseExecutableName)
 Spawn detached process. More...
 

Enumeration Type Documentation

Return code for osiGetUserName()

Enumerator
osiGetUserNameFail 

Failed

osiGetUserNameSuccess 

Succeeded

Definition at line 30 of file osiProcess.h.

Return code for osiSpawnDetachedProcess()

Enumerator
osiSpawnDetachedProcessFail 

Failed

osiSpawnDetachedProcessSuccess 

Succeeded

osiSpawnDetachedProcessNoSupport 

Not supported by OS

Definition at line 49 of file osiProcess.h.

Function Documentation

LIBCOM_API osiGetUserNameReturn epicsStdCall osiGetUserName ( char *  pBuf,
unsigned  bufSize 
)

Get the name of the user associated with the current process and copy the name into the provided buffer

Parameters
pBufbuffer where user name is copied into
bufSizesize of input buffer.
Returns
return failed if unable to get user name or user name is too large to fit in buffer. Otherwise return success
LIBCOM_API osiSpawnDetachedProcessReturn epicsStdCall osiSpawnDetachedProcess ( const char *  pProcessName,
const char *  pBaseExecutableName 
)

Spawn detached process with named executable.

Parameters
pProcessNameprocess name to be displayed. Not used in all OSs
pBaseExecutableNamepath to executable
Returns
return code indicating success or failure