Contemplating implementing syslog support for something and holding back mostly because I don't want to pull in strftime.
-
Cassandrichreplied to Ryan Castellucci :nonbinary_flag: last edited by
@ryanc Uhg that's cursed. I'd avoid it in musl except strftime is super small anyway, nothing really to be saved by open coding it.
-
Ryan Castellucci :nonbinary_flag:replied to Cassandrich last edited by
@dalias I'm doing static builds against musl for this thing, actually.
-
Cassandrichreplied to Ryan Castellucci :nonbinary_flag: last edited by
@ryanc Don't sweat it then. 3.6k for strftime.
-
Ryan Castellucci :nonbinary_flag:replied to Cassandrich last edited by
@dalias On 32 bit Arm? I was a bit upset that
getpwnam
added over 10k.Then again, I cut down the binary size by over 100k by not linking in libpcap...
-
Ryan Castellucci :nonbinary_flag:replied to Ryan Castellucci :nonbinary_flag: last edited by
@dalias It turns out that libpcap exists for a reason, and doing packet capture without it is genuinely painful.
-
Cassandrichreplied to Ryan Castellucci :nonbinary_flag: last edited by
@ryanc I would guess less there. 32bit arm is among the most efficient instruction encodings.
-
Ryan Castellucci :nonbinary_flag:replied to Cassandrich last edited by
@dalias Funny you say that, because this thing compiles 58.8k with musl/armlv7 and 18.6k for musl/x86_64.
-
argv minus onereplied to Ryan Castellucci :nonbinary_flag: last edited by
Ugh. The syslog protocol is so, so bad. Somebody at UC Berkeley must've been on some heavy narcotics.
-
Ryan Castellucci :nonbinary_flag:replied to argv minus one last edited by
@argv_minus_one Go read the TOTP RFC.