pcsc-lite  1.8.20
Functions
sys_unix.c File Reference

This handles abstract system level calls. More...

#include "config.h"
#include <sys/time.h>
#include <stdlib.h>
#include <time.h>
#include "misc.h"
#include "sys_generic.h"

Go to the source code of this file.

Functions

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

Detailed Description

This handles abstract system level calls.

Definition in file sys_unix.c.

Function Documentation

◆ SYS_RandomInt()

INTERNAL 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()

INTERNAL 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()

INTERNAL 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.