Commit Graph

26 Commits (v6.2.5)

Author SHA1 Message Date
Jukka Ojanen 0edab2b20f Allow CPU affinity mask up to 64 processors in Windows. Remove call to SetThreadAffinityMask as SetProcessAffinityMask limits all threads in process. Report error code. pthread_setaffinity_np returns non-zero if failure; works also with OSX as it reports KERN_SUCCESS which is zero.
3 years ago
jsteube 05a01d3843 fix some datatypes
6 years ago
philsmd 9d58ddd9f6
fixed strtok_r () calls, could prevent memory crashes
7 years ago
Rosen Penev 1109017a53 Change atoi family to strtol family
7 years ago
Royce Williams be4cf9ef67 more event_log_* standardization
7 years ago
Royce Williams 067372f5ce more event_log_* standardization
7 years ago
philsmd f535eb2bd0
always check the input for NULL before the strtok_r () calls
7 years ago
philsmd a82f6fb77c
our usage of strtok_r () was not totally correct (but almost)
7 years ago
jsteube 521c819842 CPU Affinity: Fixed memory leak when invalid cpu Id was specified
7 years ago
Rosen Penev 4d09cc10fd
Fix some formats and conversion errors
8 years ago
Rosen Penev 96783ed7a3 Fix compilation for native Cygwin
8 years ago
Nikolai Lifanov 9c937aa3d3 add missing includes for FreeBSD
8 years ago
jsteube ea4fd1de50 Remove complicated checks after memory allocation and in case of error print to stderr instead. This makes the memory allocation functions more natural to use.
8 years ago
jsteube 536dcef7eb Replaced all calls to strtok() with strtok_r() to ensure thread safety
8 years ago
jsteube 93adde9d2f * Wrap everything related to *stat() into own functions
8 years ago
jsteube af9de0a7b7 Fix some error string formats
8 years ago
jsteube 8fc4da795b Replace fprintf(stderr, ...) on malloc.c with log_event_error()
8 years ago
jsteube 07f5b2195b Hopefully fixes some OSX compiler errors
8 years ago
jsteube 88565b4a5e Switch CPU affinity stuff to event_log_*
8 years ago
jsteube a5f842c4b5 Fix some missing sign conversions
8 years ago
jsteube a0f6ed6832 Introduce hashes_t; not finishe yet
8 years ago
jsteube 3daf0af480 Added docs/credits.txt
8 years ago
jsteube 9eb47153d4 Replace all #ifdef with #if defined (...) for convention
8 years ago
jsteube ac3de4a57e Fix CPU_ISSET() access for apple
8 years ago
jsteube 9336ca8838 Remove data. access from pthread_setaffinity_np (apple version)
8 years ago
jsteube 3ba5c743f8 Move affinity specific functions into their own source file
8 years ago