#include <string.h> on plateform that have strlcpy() to avoid a warning
(Mac OS X and Android)
error.c: In function �pcsc_stringify_error�:
error.c:64: warning: implicit declaration of function �strlcpy�
error.c:64: warning: nested extern declaration of �strlcpy�
3 lines of code changed in 1 file:
#include <pthread.h>
Declare pthread_mutex_* functions
1 lines of code changed in 1 file:
#include "utils.h"
Fix
hotplug_linux.c:391: error: �THREAD_ATTR_DETACHED� undeclared (first use in this function)
1 lines of code changed in 1 file:
HPEstablishUSBNotifications(): do not call RFReCheckReaderConf if
USE_SERIAL is defined. The function is not defined in this case.
2 lines of code changed in 1 file:
Add --disable-serial and --disable-usb options
--disable-serial removes support of /etc/reader.conf
gain: 8.0kB of .text (12%) and 160 bytes of .bss (4%) for pcscd
--disable-usb removes support of USB hotplug
gain: 9.7kB of .text (14%) and 960 bytes of .bss (23%) for pcscd
If you use both options (and use a static driver configuration)
gain: 17.7kB of .text (26%) and 1152 bytes of .bss (28%) for pcscd
48 lines of code changed in 5 files:
Define a minimal pcsc_stringify_error() if NO_LOG is defined.
Only the error code in hex is displayed in this case.
Gain: 2kB of .text (10%) for libpcsclite
12 lines of code changed in 1 file:
main(): fork() only in case of auto exit to not detach from the terminal
if launched in stand alone forground mode ("pcscd -fda" for example)
6 lines of code changed in 1 file:
main(): always fork() so that pcscd always return in --auto-exit mode
but do not close stdout yet since we may need to send logs
6 lines of code changed in 1 file:
SCardEstablishContext(): call waitpid() to avoid having a defunct pcscd
process when pcscd is auto started by the client.
The process becomes defunct because pcscd calls daemon() and daemon()
does fork() and exit() in the father. The father death must then be
reclaimed by libpcsclite.
Thanks to Patrice Angelini for the bug report
5 lines of code changed in 1 file:
Directly use pthread_mutex_* fucntions instead of using wrappers
Remove thread_unix.c and thread_generic.h now useless
161 lines of code changed in 14 files:
Use pthread_t instead of PCSCLITE_THREAD_T
7 lines of code changed in 7 files:
move thread related definition from thread_generic.h to utils.h
7 lines of code changed in 2 files:
Directly use pthread_* instead of SYS_Thread* indirection
Move SYS_ThreadCreate in utils.c. This function is not just one
pthread_* call
44 lines of code changed in 10 files:
SYS_ThreadExit(): remove dead code
From Sun Studio CC
"thread_unix.c", line 108: warning: statement not reached
0 lines of code changed in 1 file:
update versions of autotools used
3 lines of code changed in 1 file:
remove ; at end of a { } block defined by a macro. The Solaris compiler
complains with:
"simclist.c", line 1317: warning: syntax error: empty declaration
Thanks to J�rg Schilling for the bug report
30 lines of code changed in 1 file:
use fork(), close() and chdir() instead of SYS_Fork(), SYS_CloseFile()
and SYS_Chdir() in SYS_Daemon() if HAVE_DAEMON is not defined (Solaris)
Thanks to J�rg Schilling for the bug report
13 lines of code changed in 1 file:
Log the command return code using DEBUG (SCARD_S_SUCCESS) or ERROR
(every thing else) level
4 lines of code changed in 1 file:
reset a card using SCardDisconnect (default) or SCardReconnect (if an
argument is passed)
59 lines of code changed in 1 file:
call SCardTransmit in an endless loop
36 lines of code changed in 1 file:
SCardReconnect(): mimic the code from SCardDisconnect() regarding card
event state notifications (changed in revision 4862).
44 lines of code changed in 1 file:
no more pcsc_demo target
1 lines of code changed in 1 file:
SCardDisconnect(): Set the card event state to SCARD_RESET _before_ doing
the reset.
This will avoid an SCardTransmit from another application between the
card reset and the card event state change. In the problematic case the
SCardTransmit was sending an APDU in T=1 to a reseted card but not yet
configured (IFDHSetProtocolParameters was not yet called) and still in
T=0 (default)
5 lines of code changed in 1 file:
SCardConnect() & SCardReconnect(): correctly log SCARD_PROTOCOL_RAW
protocol instead of "unknown"
32 lines of code changed in 1 file:
Fix copyright name and date
4 lines of code changed in 2 files:
Doxygen: document SHMMessageReceive() command argument added in revision 4718
1 lines of code changed in 1 file:
Doxygen: SCARD_ATTR_DEVICE_FRIENDLY_NAME is implemented by
SCardGetAttrib() if the IFD Handler (driver) returns IFD_ERROR_TAG.
pcsc-lite then returns the same reader name as returned by
SCardListReaders.
4 lines of code changed in 1 file:
Add PCSCv2_PART10_PROPERTY_* defines
10 lines of code changed in 1 file: