pcsc-lite 2.3.0
|
utility functions More...
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <dirent.h>
#include <fcntl.h>
#include <pthread.h>
#include "config.h"
#include "debuglog.h"
#include "utils.h"
#include "pcscd.h"
#include "sys_generic.h"
Go to the source code of this file.
Macros | |
#define | OPENCT_FILE "/var/run/openct/status" |
Check is OpenCT is running and display a critical message if it is. | |
Functions | |
pid_t | GetDaemonPid (void) |
int | SendHotplugSignal (void) |
int | CheckForOpenCT (void) |
long int | time_sub (struct timeval *a, struct timeval *b) |
return the difference (as long int) in µs between 2 struct timeval r = a - b | |
int | ThreadCreate (pthread_t *pthThread, int attributes, PCSCLITE_THREAD_FUNCTION(pvFunction), LPVOID pvArg) |
utility functions
Definition in file utils.c.
#define OPENCT_FILE "/var/run/openct/status" |
int ThreadCreate | ( | pthread_t * | pthThread, |
int | attributes, | ||
PCSCLITE_THREAD_FUNCTION(pvFunction) | , | ||
LPVOID | pvArg ) |