summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-18simplify sfeed(5) format, remove feedtype alsoHiltjo Posthuma
Remove type of feed per item, it is not that interesting. sfeed(1) can parse both RSS and Atom feeds.
2016-04-12sfeed_update: fix sorting on fields: id, link, titleHiltjo Posthuma
2016-04-12sfeed_frames: make content filename more unique: use UNIX timestamp in titleHiltjo 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-10absuri, encodeuri: make encodeuri static, change argument orderHiltjo Posthuma
2016-04-10xml: stricter check of entity: must end with ';', ...Hiltjo Posthuma
... zero output buffer if codepoint length is 0
2016-04-10update READMEHiltjo Posthuma
2016-04-10improve documentation, add sfeed(5) for the file formatHiltjo Posthuma
separate sfeed(5) page for just the feed file format.
2016-04-10util: standard pattern to check for valid number strtoulHiltjo Posthuma
2016-04-10reword some sentences in the documentation/man pagesHiltjo Posthuma
2016-04-10sfeed_frames: dont make title of content a link if its emptyHiltjo Posthuma
2016-04-10minor style fixesHiltjo Posthuma
2016-04-10remove basename, just use last part of the path...Hiltjo Posthuma
... as a bonus it also saves an allocation.
2016-04-10add comment for strtotimeHiltjo Posthuma
2016-04-10strtotime: improveHiltjo 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-10small style fixHiltjo Posthuma
2016-04-10improve MakefileHiltjo Posthuma
2016-04-03fix warning: return early, fixes bogus end NULL dereference warningHiltjo Posthuma
2016-04-03just initialize to zero, no need for memsetHiltjo Posthuma
2016-03-29remove time fieldHiltjo Posthuma
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-03-27time experimentHiltjo Posthuma
2016-03-21check for tagid == TagUnknown, bit more clearHiltjo Posthuma
2016-03-20sfeed_frames: also XML encode formatted time (just in case)Hiltjo Posthuma
2016-03-20README: remove versionHiltjo Posthuma
2016-03-20Makefile: improve make dist, bump version to 0.9.1Hiltjo Posthuma
2016-03-20update CHANGELOG and TODOHiltjo Posthuma
2016-03-20code cleanup: put table of parsed tagid at top (near reverse table)Hiltjo Posthuma
2016-03-20fix crash with repeated <link href=""> tags in Atom feedsHiltjo Posthuma
add some detail to the comments
2016-03-19don't use temporary pointer for realloc, it will exit on errorHiltjo Posthuma
2016-03-10remove cast of unused variablesHiltjo Posthuma
2016-03-10Makefile: define CPPFLAGS once, fix typoHiltjo Posthuma
2016-03-08Makefile: also clean util and xml object filesHiltjo Posthuma
2016-03-04remove optimization with no effect, makes the code cleanerHiltjo Posthuma
2016-03-04sfeed_frames: use S_IR* names (portability), respect umaskHiltjo Posthuma
use 0777 and 0666 permissions, it will respect the process umask (generally 0022), so 0755 and 0644 effectively.
2016-03-04sfeed_frames: use mkdir and check errno EEXISTHiltjo Posthuma
no need to stat and then mkdir, this is a (theoretical) race-condition too.
2016-03-02sfeed: no need to call strlen, we know the length alreadyHiltjo Posthuma
2016-02-29sfeed_frames: no need to read from index files, mode "w+b" to "wb"Hiltjo Posthuma
2016-02-29sfeed_frames: whoops, set file permissions (else its 0000)Hiltjo Posthuma
2016-02-28sfeed_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-28sfeed_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-28sfeed_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-28use prime as seed for murmur3 seed (doesnt matter much)Hiltjo Posthuma
2016-02-28null-terminate line at newline from getline()Hiltjo Posthuma
2016-02-28util: simplify encodehex, use inlineHiltjo Posthuma
2016-02-28sfeed_tail: terminate line at newline, small cleanupHiltjo Posthuma
2016-02-28sfeed_tail: fix pledge when opening filesHiltjo Posthuma
2016-02-27config.mk: disable pledge by default, only OpenBSD 5.9 (unreleased) supports itHiltjo Posthuma
2016-02-27simplify build and fix linking for strlcat.o and strlcpy.oHiltjo Posthuma
separate util source (util.c, strlcat.c, strlcpy.c) to libutil.a separate xml source (xml.c) to libxml.a
2016-02-27fix missing includes for uint32_t and time_tHiltjo Posthuma
2016-02-27add util for pledgeHiltjo Posthuma