Re: [Toybox] [PATCH] Implement tail -f.

2015-12-20 Thread enh
ping? i assume we'll want a follow-up change adding error-checking here: - TT.files[TT.file_no].fd = dup(fd); - TT.files[TT.file_no].path = strdup(name); + TT.files[TT.file_no].fd = xdup(fd); + TT.files[TT.file_no].path = xstrdup(name); and this can probably just use toybuf? - #define

[Toybox] [PATCH] Implement tail -f.

2015-12-05 Thread Josh Gao
Patch attached because I don't trust gmail to not mangle it. From 394e1330bbeba6aed1f7897ea981610d5a925187 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Fri, 4 Dec 2015 13:30:02 -0800 Subject: [PATCH] Implement tail -f. --- toys/posix/tail.c | 74 +