pcsc-lite  1.8.20
Functions
sys_generic.h File Reference

This handles abstract system level calls. More...

#include <sys/stat.h>
#include <sys/mman.h>

Go to the source code of this file.

Functions

int SYS_Sleep (int)
 Makes the current process sleep for some seconds. More...
 
int SYS_USleep (int)
 Makes the current process sleep for some microseconds. More...
 
int SYS_RandomInt (int, int)
 Generate a pseudo random number. More...
 
void SYS_InitRandom (void)
 Initialize the random generator.
 

Detailed Description

This handles abstract system level calls.

Definition in file sys_generic.h.

Function Documentation

◆ SYS_RandomInt()

int SYS_RandomInt ( int  fStart,
int  fEnd 
)

Generate a pseudo random number.

Parameters
[in]fStartminimal value
[in]fEndmaximal value or -1 for a full range
Returns
a random number between fStart and fEnd

Definition at line 95 of file sys_unix.c.

◆ SYS_Sleep()

int SYS_Sleep ( int  iTimeVal)

Makes the current process sleep for some seconds.

Parameters
[in]iTimeValNumber of seconds to sleep.

Definition at line 53 of file sys_unix.c.

◆ SYS_USleep()

int SYS_USleep ( int  iTimeVal)

Makes the current process sleep for some microseconds.

Parameters
[in]iTimeValNumber of microseconds to sleep.

Definition at line 71 of file sys_unix.c.