SHMProcessEventsContext(): do not timeout every 1 second on Linux.
We do timeout only on *BSD like in SHMProcessEventsServer()
9 lines of code changed in 1 file:
use asynchronous events instead of polling for SCardGetStatusChange()
on client side use WaitForPcscdEvent() instead of
SYS_USleep(PCSCLITE_STATUS_WAIT)
on server side use StatSynchronize() instead of SYS_MMapSynchronize()
61 lines of code changed in 3 files:
SCardGetStatusChange(): use k instead of i
warning: declaration of 'i' shadows a previous local
3 lines of code changed in 1 file:
move time_sub() outside of #ifdef DO_PROFILE
16 lines of code changed in 1 file:
define PCSCLITE_EVENTS_DIR
1 lines of code changed in 1 file:
main(): create PCSCLITE_EVENTS_DIR directory
clean_temp_files(): purge & remove PCSCLITE_EVENTS_DIR directory
24 lines of code changed in 1 file:
add StatSynchronize() "Sends an asynchronous event to any waiting
client"
71 lines of code changed in 2 files:
SHMProcessEventsContext(): also log the received command not just the
client ID
24 lines of code changed in 1 file:
use SYS_RemoveFile() instead of SYS_Unlink()
8 lines of code changed in 3 files:
remove SYS_Unlink() since it duplicates SYS_RemoveFile()
0 lines of code changed in 2 files:
reorder two lines
2 lines of code changed in 1 file:
call SYS_Chmod() for PCSCLITE_RUN_PID and PCSCLITE_PUBSHM_FILE to force
the file access mode in case umask is too restrictive
12 lines of code changed in 2 files:
#include "pcscd.h" to get definitions MAX_LIBNAME, MAX_DEVICENAME,
PCSCLITE_MAX_READER_CONTEXT_CHANNELS
1 lines of code changed in 1 file:
main(): call SYS_OpenFile() with the modes used by SYS_Chmod() and
remove useless SYS_Chmod() call
4 lines of code changed in 1 file:
EHInitializeEventStructures(): call SYS_OpenFile() with the modes used
by SYS_Chmod() and remove useless SYS_Chmod() call
2 lines of code changed in 1 file:
EHInitializeEventStructures(): use POSIX instead of Unix V7 permissions
names
1 lines of code changed in 1 file: