add rudimentary unit tests, and logging timestamps

Signed-off-by: Aidan Hahn <aidan@aidanis.online>
This commit is contained in:
Aidan Hahn 2022-02-28 01:09:33 -08:00
parent 7fafcd344d
commit 1e9b701542
No known key found for this signature in database
GPG key ID: 327711E983899316
6 changed files with 188 additions and 37 deletions

2
alog.h
View file

@ -71,6 +71,8 @@ void deinit_alog();
/* adds an fd to out fds or (iff char arg is set to 0x01) err fds */
void alog_add_target(int, char);
#define ALOG_OUT 0x00
#define ALOG_ERR 0x01
/* removes an fd from both out fds and err fds */
void alog_remove_target(int);