Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-04-12 | sfeed_frames: make content filename more unique: use UNIX timestamp in title | Hiltjo Posthuma | |
this makes sure if an item has the same title but is posted or updated at a different time it will not overwrite the file. | |||
2016-04-10 | absuri, encodeuri: make encodeuri static, change argument order | Hiltjo Posthuma | |
2016-04-10 | xml: stricter check of entity: must end with ';', ... | Hiltjo Posthuma | |
... zero output buffer if codepoint length is 0 | |||
2016-04-10 | update README | Hiltjo Posthuma | |
2016-04-10 | improve documentation, add sfeed(5) for the file format | Hiltjo Posthuma | |
separate sfeed(5) page for just the feed file format. | |||
2016-04-10 | util: standard pattern to check for valid number strtoul | Hiltjo Posthuma | |
2016-04-10 | reword some sentences in the documentation/man pages | Hiltjo Posthuma | |
2016-04-10 | sfeed_frames: dont make title of content a link if its empty | Hiltjo Posthuma | |
2016-04-10 | minor style fixes | Hiltjo Posthuma | |
2016-04-10 | remove basename, just use last part of the path... | Hiltjo Posthuma | |
... as a bonus it also saves an allocation. | |||
2016-04-10 | add comment for strtotime | Hiltjo Posthuma | |
2016-04-10 | strtotime: improve | Hiltjo Posthuma | |
use long long: atleast 32-bit, but now time_t (real) to 32-bit or 64-bit is supported. Long long is C99 though, but that is fine. check errno, it can have ERANGE. | |||
2016-04-10 | small style fix | Hiltjo Posthuma | |
2016-04-10 | improve Makefile | Hiltjo Posthuma | |
2016-04-03 | fix warning: return early, fixes bogus end NULL dereference warning | Hiltjo Posthuma | |
2016-04-03 | just initialize to zero, no need for memset | Hiltjo Posthuma | |
2016-03-29 | remove time field | Hiltjo Posthuma | |
2016-03-29 | add time parsing to sfeed itself, remove time field | Hiltjo 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-03-27 | time experiment | Hiltjo Posthuma | |
2016-03-21 | check for tagid == TagUnknown, bit more clear | Hiltjo Posthuma | |
2016-03-20 | sfeed_frames: also XML encode formatted time (just in case) | Hiltjo Posthuma | |
2016-03-20 | README: remove version | Hiltjo Posthuma | |
2016-03-20 | Makefile: improve make dist, bump version to 0.9.1 | Hiltjo Posthuma | |
2016-03-20 | update CHANGELOG and TODO | Hiltjo Posthuma | |
2016-03-20 | code cleanup: put table of parsed tagid at top (near reverse table) | Hiltjo Posthuma | |
2016-03-20 | fix crash with repeated <link href=""> tags in Atom feeds | Hiltjo Posthuma | |
add some detail to the comments | |||
2016-03-19 | don't use temporary pointer for realloc, it will exit on error | Hiltjo Posthuma | |
2016-03-10 | remove cast of unused variables | Hiltjo Posthuma | |
2016-03-10 | Makefile: define CPPFLAGS once, fix typo | Hiltjo Posthuma | |
2016-03-08 | Makefile: also clean util and xml object files | Hiltjo Posthuma | |
2016-03-04 | remove optimization with no effect, makes the code cleaner | Hiltjo Posthuma | |
2016-03-04 | sfeed_frames: use S_IR* names (portability), respect umask | Hiltjo Posthuma | |
use 0777 and 0666 permissions, it will respect the process umask (generally 0022), so 0755 and 0644 effectively. | |||
2016-03-04 | sfeed_frames: use mkdir and check errno EEXIST | Hiltjo Posthuma | |
no need to stat and then mkdir, this is a (theoretical) race-condition too. | |||
2016-03-02 | sfeed: no need to call strlen, we know the length already | Hiltjo Posthuma | |
2016-02-29 | sfeed_frames: no need to read from index files, mode "w+b" to "wb" | Hiltjo Posthuma | |
2016-02-29 | sfeed_frames: whoops, set file permissions (else its 0000) | Hiltjo Posthuma | |
2016-02-28 | sfeed_frames: add fattr to pledge... | Hiltjo Posthuma | |
... it did not abort, but set it anyway. I think cpath implies fattr, it makes sense. | |||
2016-02-28 | sfeed_frames: fix open file permission (write only). | Hiltjo Posthuma | |
check errno EEXIST (file exist? -> ignore), handle other errno codes as errors. ... also make sure to fflush write before modifying file access and modification timestamps or it will be overwritten again. | |||
2016-02-28 | sfeed_frames: fix TOCTTUO with access() and fopen() | Hiltjo Posthuma | |
... and use futimens() in favor of deprecated utime(). a minor difference in behaviour is now filetimes are only updated when the file doesn't exist. minor cleanup: remove namelen, its variable was unused (reported by cppcheck). | |||
2016-02-28 | use prime as seed for murmur3 seed (doesnt matter much) | Hiltjo Posthuma | |
2016-02-28 | null-terminate line at newline from getline() | Hiltjo Posthuma | |
2016-02-28 | util: simplify encodehex, use inline | Hiltjo Posthuma | |
2016-02-28 | sfeed_tail: terminate line at newline, small cleanup | Hiltjo Posthuma | |
2016-02-28 | sfeed_tail: fix pledge when opening files | Hiltjo Posthuma | |
2016-02-27 | config.mk: disable pledge by default, only OpenBSD 5.9 (unreleased) supports it | Hiltjo Posthuma | |
2016-02-27 | simplify build and fix linking for strlcat.o and strlcpy.o | Hiltjo Posthuma | |
separate util source (util.c, strlcat.c, strlcpy.c) to libutil.a separate xml source (xml.c) to libxml.a | |||
2016-02-27 | fix missing includes for uint32_t and time_t | Hiltjo Posthuma | |
2016-02-27 | add util for pledge | Hiltjo Posthuma | |
2016-02-27 | reference sfeedrc(5) in manpages | Hiltjo Posthuma | |
2016-02-27 | sfeed_tail | Hiltjo Posthuma | |