Yann Weber
3c2cfd848d
Add forgotten return value test
hace 7 años
Yann Weber
0bd8dd1e1f
Fix #13 Sort files given as argument
Now ttail is able to sort logfiles given as arguement.
The sort function _ttail_file_sort place files with no valid date to the
end of the file list and is able to detect if some files overlaps.
No tests written...
hace 7 años
Yann Weber
489f5b801c
Enhancement & bugfix in #11 solution
hace 7 años
Yann Weber
3e5304bf91
Fix #11
Not 100% sur of implementation. And the feature seems a bit useless..
hace 7 años
Yann Weber
bbaa6b84b4
Fix starts for #11
Adds the option -P --permissive.
Starts implementation for logfiles.
Now -P flag make ttail handle invalid files. When invalid file given the
minmax function set the file pointer and the minmax array to NULL.
May introduce bugs if the binary search function does not handles "holes"
in fp array or in minmax array...
hace 7 años
Yann Weber
7dbc99e4a0
Fixing issue #4 for logfiles
Not done for stdin
hace 7 años
Yann Weber
014d5ffb1f
Changed headers of _ttail_file_(next|start)_line()
hace 7 años
Yann Weber
e92e62046e
Renaming _ttail_file_search_from_end()
hace 7 años
Yann Weber
6734c8ad36
Preparing autoformat detection on loglines
hace 7 años
Yann Weber
8684cc7b38
Fix #5 GPL
hace 7 años
Yann Weber
e27ad730c5
Generalization of ttail_getline() macro
hace 7 años
Yann Weber
710515fdab
Bugfix on invalid dateformat
Segfault was thrown when no files were found with matching date
hace 7 años
Yann Weber
833b2dae19
Bugfix & enhancement
Now an error is triggered if date-min > date-max
Bugfix on date-max searching (on multiple loglines with a date == date-max)
hace 7 años
Yann Weber
2283a16991
Bugfix on datemax > max date
hace 7 años
Yann Weber
1207a9f742
Better error handling
Add some perror calls
hace 7 años
Yann Weber
9d5c000dfa
Bugfix & headers update
Deleted old argument struct tm* from search function (now using infos
stored in ttail_t.session )
hace 7 años
Yann Weber
e3e636e298
Implements support for max-date
hace 7 años
Yann Weber
fd5d6cad18
Bugfix & function implementation
Now we have a running minimal ttail :
src/ttail -d "Mar 6 00:29" -f '%B%n%d %H:%M' -l tests/samples/1.log -l tests/samples/1.1.log
hace 7 años
Yann Weber
9f5cf21919
Tests + bugfix
Testing ttail_search_closest_files() on multiple files
hace 7 años
Yann Weber
5e5f730815
Bugfix + tests for ttail_search_files functions
hace 7 años
Yann Weber
533bb6b52e
Adding missing arguments to search functions
hace 7 años
Yann Weber
5f7d34f9de
[broken] Files searching function 1st implementation
untested
hace 7 años
Yann Weber
71dc7b9d3b
Updated the search_closest_files function
hace 7 años
Yann Weber
261248f6a7
Add some inline functions + utility function
Set some function inlune and implement an utility function
for file searching functions.
hace 7 años
Yann Weber
5ccb971b71
Implement the _ttail_search_file_sorted() function
Telling if the logfile array is sorted
hace 7 años
Yann Weber
876cc00dec
Bugfixes in logfile minmax + tests update
hace 7 años
Yann Weber
89739fc1e6
**temporary commit**
hace 7 años
Yann Weber
92d5f72ddc
Bugfix + tests
hace 7 años
Yann Weber
01c295d459
Code cleaning, updated tests + getline wrapper
The getline wrapper will allow to use getline without calling malloc
and free all the time
hace 7 años
Yann Weber
b74ee6957f
Implemented 2 utility functions + tests
hace 7 años
Yann Weber
2ff86aadef
File spliting
hace 7 años
Yann Weber
fd6a8054ac
Bugfixes
hace 7 años
Yann Weber
26f51ae8a6
Started to implement file search op
hace 7 años
Yann Weber
e46400754a
Starting to write ttail_search + tests
hace 7 años