summaryrefslogtreecommitdiff
path: root/sfeed_tail.c
AgeCommit message (Collapse)Author
2018-11-04whitespace and comment fixHiltjo Posthuma
2018-08-23sfeed_tail: sleep the proper time, was a debug left-overHiltjo Posthuma
2018-08-23sfeed_tail: file need to exist the first run, but not afterHiltjo Posthuma
+ dont memcpy the struct stat(2) when nothing changed.
2018-08-22sfeed_tail: improvementsHiltjo Posthuma
- sfeed_tail only reads from files now, not from stdin anymore. This had too many caveats. - Instead of a timer it now detects changes faster and is more efficient using memory. - Improve documentation of its behaviour.
2018-08-22remove stdint.h includeHiltjo Posthuma
the uint* types in XML are not exposed anymore.
2018-03-11sfeed_tail: remove unused variablesHiltjo Posthuma
2018-03-11sfeed_tail improvementsHiltjo Posthuma
keep sfeed_tail until sfeed is reworked to support tail -f (eventually)
2018-03-11Revert "remove sfeed_tail: the standard tail -f can (soon) be used"Hiltjo Posthuma
This reverts commit 7f3a45b0031ec9cababf764f7826e21bbb59e258.
2017-12-24remove sfeed_tail: the standard tail -f can (soon) be usedHiltjo Posthuma
2017-12-24add latest (DEBUG version) of sfeed_tailHiltjo Posthuma
2017-12-09sfeed_tail: replace hashmap + linked-list with RBtreeHiltjo Posthuma
- This is much more memory efficient. I have not done any speed comparison yet but it is not noticable atleast. - add BSD <sys/tree.h>
2017-04-27simplify pledge stubHiltjo Posthuma
2016-08-06add USE_PLEDGE, remove pledge dummy functionHiltjo Posthuma
2016-04-10remove basename, just use last part of the path...Hiltjo Posthuma
... as a bonus it also saves an allocation.
2016-03-29add time parsing to sfeed itself, remove time fieldHiltjo Posthuma
- less overhead (we only need GMT time) so no setenv("TZ", ...) tzset() crap. - timezone format (for example %z in strptime) is non-standard, this will add some lines of code and some complexity to our code though, but the trade-off is worth it imho.
2016-02-28use prime as seed for murmur3 seed (doesnt matter much)Hiltjo Posthuma
2016-02-28sfeed_tail: terminate line at newline, small cleanupHiltjo Posthuma
2016-02-28sfeed_tail: fix pledge when opening filesHiltjo Posthuma
2016-02-27sfeed_tailHiltjo Posthuma
2016-02-27various improvementsHiltjo Posthuma
- pledge tools and add define to enable it on platforms that support it, currently only OpenBSD 5.9+ - separate getline and parseline functionality. - use murmur3 hash instead of jenkins1: faster and less collisions. - make some error messages a bit more clear, for example with path truncation. - some small cleanups, move printutf8pad to util.
2016-02-01sfeed_tail: tune memory consumption down a bit, tested with a file with ↵Hiltjo Posthuma
10,000,000 lines (50MB)
2016-01-31Add missing stdint headerQuentin Rameau
2016-01-31add sfeed_tail (test), might be removed again laterHiltjo Posthuma
fix Makefile (compat)