pcsc-lite 1.9.8
|
This handles abstract system level calls. More...
#include "config.h"
#include <sys/time.h>
#include <limits.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <string.h>
#include "misc.h"
#include "sys_generic.h"
#include "PCSC/debuglog.h"
Go to the source code of this file.
Functions | |
INTERNAL int | SYS_Sleep (int iTimeVal) |
Makes the current process sleep for some seconds. | |
INTERNAL int | SYS_USleep (int iTimeVal) |
Makes the current process sleep for some microseconds. | |
INTERNAL int | SYS_RandomInt (void) |
Generate a pseudo random number. | |
INTERNAL void | SYS_InitRandom (void) |
Initialize the random generator. | |
This handles abstract system level calls.
Definition in file sys_unix.c.
INTERNAL void SYS_InitRandom | ( | void | ) |
Initialize the random generator.
Definition at line 136 of file sys_unix.c.
INTERNAL int SYS_RandomInt | ( | void | ) |
Generate a pseudo random number.
2^31
. getrandom()
is available, LCG otherwise. getrandom()
syscall. getrandom()
syscall. Definition at line 106 of file sys_unix.c.
INTERNAL int SYS_Sleep | ( | int | iTimeVal | ) |
Makes the current process sleep for some seconds.
[in] | iTimeVal | Number of seconds to sleep. |
Definition at line 60 of file sys_unix.c.
INTERNAL int SYS_USleep | ( | int | iTimeVal | ) |
Makes the current process sleep for some microseconds.
[in] | iTimeVal | Number of microseconds to sleep. |
Definition at line 78 of file sys_unix.c.