28 Commits

Author SHA1 Message Date
c659f5ee8b Remove unused DirIterator 2017-04-06 19:45:27 +02:00
c37f89c99d hovsa 2016-10-21 15:40:19 +02:00
7fa40bf4b4 Slight optimization in DirIterator 2016-10-21 14:47:40 +02:00
bfcff08c34 Added DirIterator class which is more useful that the bare Dir class 2016-10-21 14:33:20 +02:00
608e4fabb6 Minor cleanup in Dir.* 2016-10-21 14:13:15 +02:00
98086abd10 minor codeflow change and member init in Dir 2016-10-20 13:21:16 +02:00
f10c112011 check pattern for null before use in Dir::getNextFilename 2016-09-30 15:52:57 +02:00
e2897bc267 Cleanup headers for Dir.h. Remove duplicated function to return dir filename 2016-08-31 11:13:31 +02:00
9978a58eb6 Some log changes to pass in specific log levels 2016-08-05 10:05:56 +02:00
d6ac4f567c Removed global variable g_inMemFunction
The updates to it were incomplete (eg more functions in openssl calls malloc(). Since we have disabled quickpolls the only two cases that remain are signal handlers (sigsegv/sigbus/...) and the profiler signal handler. For regular signal handlers we just take a chance. For profiler it only calls backtrace() which does use heap.
2016-07-28 18:13:26 +02:00
3c2773a928 Removed gbstrlen()
gbstrlen() just checked for NULL and called gbshutdownAbort(). Dereferncing NULL on mordern platforms cases a SIGSEGV which is cought by our signal handler and .... gbshutdownAbort() is called. So gbstrlen() was superfluous and complicated static analysis.
2016-07-28 17:04:35 +02:00
ff71698d97 Partially fix "return log(...);" to "log(...); return false;" 2016-06-29 11:15:36 +02:00
4d589cf585 Removed unused Dir::getFullName() 2016-05-24 13:08:08 +02:00
f9cb5402db Simplify close-logic in Dir 2016-05-24 13:06:56 +02:00
6cdf281051 goto -> do-while 2016-05-24 13:03:18 +02:00
d0af063303 Use thread-safe/reentrant readdir_r() instead of plain readdir() 2016-05-24 13:01:55 +02:00
f84fcd560f Dir cleanup
Removed unused methods, and added const where sensible, including in
getNextFilename() which modified an input parameter (pattern)
2016-05-24 12:17:28 +02:00
2998290132 Removed unused methdos from Dir 2016-05-23 17:31:58 +02:00
d40ecb2f8e Replace INT32/INT64 and likes with PRId32 and likes. Add space before definition. 2016-05-20 09:18:32 +02:00
b4460bc783 More constness in Dir.* 2016-04-14 18:01:37 +02:00
bb16341f51 try to fix core dumps. not sure how
mem is getting corrupted.
2015-08-22 08:52:28 -07:00
580736d766 support arc injections 2015-02-07 12:07:42 -08:00
96b8197ad3 now it compiles with -m32 2014-11-10 14:45:11 -08:00
e7dd8f7956 replace long long with int64_t 2014-10-30 13:36:39 -06:00
10f897e5be use gbsystem() not system() so it can turn off alarms
since it forks.
2014-09-11 05:01:55 -07:00
6c652c1cc6 more parmdb fixes 2013-12-16 15:39:24 -08:00
c669f8c138 fix file descriptor leak in Dir class.
try to fix core from Thread getting SIGALRM.
try to set NOFILES to 1024 at startup in case
more are allowed.
2013-11-19 13:41:56 -08:00
f6e560c1f4 Initial file population. 2013-08-02 13:12:24 -07:00