Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2007-06-11 | inotail.c: Fix stupid data type error in emalloc() | Tobias Klauser | 1 | -2/+2 | |
2007-06-11 | Merge branch 'master' into pipe | Tobias Klauser | 4 | -3/+13 | |
Conflicts: inotail.c | |||||
2007-06-11 | inotail.c/.h: Implement is_digit to save some bytes of ctype.h inclusion | Tobias Klauser | 2 | -2/+3 | |
2007-06-11 | inotail.c: remove debugging output | Tobias Klauser | 1 | -2/+0 | |
2007-06-11 | inotail.c: Implement tail_pipe_lines() | Tobias Klauser | 1 | -8/+131 | |
For now the function is more or less a copy from coreutils tail. This could need some work. | |||||
2007-06-08 | inotail.c: Prepare for implementation of tail_pipe_{lines,bytes} | Tobias Klauser | 1 | -7/+15 | |
Split in two functions | |||||
2007-06-04 | inotail.c: Handle return value of lseek | Tobias Klauser | 1 | -5/+20 | |
lseek() could fail so we better handle it. Based on a patch by Folkert van Heusden | |||||
2007-06-02 | inotail.c: Correct error condition in tail_pipe() | Tobias Klauser | 1 | -1/+1 | |
write() returns 0 on end of file | |||||
2007-05-29 | inotail.c: Fix handling of EINTR in watch_files() | Tobias Klauser | 1 | -4/+15 | |
If inotail gets an EINTR signal while reading inotify events, it breaks. However, a common thing to generate these events is hitting ^Z/fg The patch fixes this shortcoming and allows inotail to be interrupted by EINTR. Patch from Anthony Martinez | |||||
2007-05-23 | inotail.c: Coding style cleanups | Tobias Klauser | 1 | -2/+3 | |
2007-05-21 | Makefile: Reorder CFLAGS | Tobias Klauser | 1 | -1/+1 | |
2007-05-21 | inotail.c: Improve error message | Tobias Klauser | 1 | -1/+1 | |
2007-05-20 | inotail.c: Proper check of return value for the previous fix | Tobias Klauser | 1 | -2/+2 | |
2007-05-20 | inotail.c: Some more error checking in tail_pipe() | Tobias Klauser | 1 | -2/+7 | |
Taken from a patch by Folkert van Heusden | |||||
2007-05-18 | Makefile: Add uninstall target and compress manpage | Tobias Klauser | 1 | -0/+4 | |
Thanks to Folkert van Heusden for the patch | |||||
2007-05-18 | inotail.c: read() call cleanup | Tobias Klauser | 1 | -6/+6 | |
buf instead of &buf | |||||
2007-05-18 | inotail.c: Forward just one event, we might miss some events otherwise | Tobias Klauser | 1 | -1/+2 | |
INOTIFY_BUFLEN is defined as 4 times the size of an event, so we would skip some events. Though I've never seen a case where more than one event arrived at a time. | |||||
2007-04-17 | Release inotail 0.3v0.3 | Tobias Klauser | 2 | -2/+2 | |
2007-04-16 | inotail.c: Really fix byte_to_offset() this time | Tobias Klauser | 1 | -6/+12 | |
Also make a bit more readable | |||||
2007-04-13 | inotail.c: Fix an integer underflow in bytes_to_offset() | Tobias Klauser | 1 | -2/+3 | |
This also caused the bug that nothing was printed when a number greater than the number of characters in the file was specifed with the -c parameter. | |||||
2007-04-06 | Makefile: s/DESTDIR/prefix/ which is more intuitive | Tobias Klauser | 1 | -3/+3 | |
2007-03-28 | Makefile: Remove LDFLAGS | Tobias Klauser | 1 | -2/+0 | |
2007-03-28 | Makefile: Clean up some more | Tobias Klauser | 1 | -2/+4 | |
2007-03-28 | Makfile: Get rid of prefix var, it's not necessary | Tobias Klauser | 1 | -4/+3 | |
Additionally this leads to problems when building debian packages | |||||
2007-03-28 | chanlog: Updates for 0.3 | Tobias Klauser | 1 | -3/+2 | |
2007-03-18 | inotail.c: Proper exit after printing of version | Tobias Klauser | 1 | -1/+1 | |
2007-03-04 | inotail.c: Fix bug in parsing of +<num> parameters | Tobias Klauser | 1 | -2/+3 | |
2007-03-04 | inotail.c: Datatype cleanup | Tobias Klauser | 1 | -2/+2 | |
2007-03-03 | inotail.c: Ignore file cleanup | Tobias Klauser | 1 | -26/+23 | |
Get rid of some nasty code. Ok, it isn't much better now. | |||||
2007-03-03 | Remove stuff unneeded in release | Tobias Klauser | 1 | -2/+2 | |
2007-03-03 | inotail.c: Cleanup before release | Tobias Klauser | 1 | -17/+9 | |
2007-03-02 | Preparing inotail 0.3 | Tobias Klauser | 1 | -0/+10 | |
2007-02-26 | inotify-syscalls.h: Add syscall numbers for m32r for those who care | Tobias Klauser | 1 | -12/+10 | |
Also do some cleanup work. | |||||
2007-02-09 | Makefile: Add -W to CFLAGS | Tobias Klauser | 1 | -1/+1 | |
According to TAOSA chapter 6 -Wall does not warn about some bug types. | |||||
2007-02-05 | inotail.c: Some more branch prediction | Tobias Klauser | 1 | -6/+6 | |
2007-02-05 | inotail.c: Better checking of -n/-c arguments | Tobias Klauser | 1 | -10/+12 | |
Also change n_lines/n_bytes to an unsigned long Additionally remove some spurious memset()'s | |||||
2007-02-03 | inotail.c: Remember last printed header | Tobias Klauser | 1 | -1/+5 | |
Prevents inotail from printing the header with the name of the file everytime it changes. | |||||
2007-02-02 | README: Small fixups | Tobias Klauser | 1 | -4/+4 | |
2007-01-22 | inotail.c: Set new file size _after_ read/write in handle_inotify_event() | Tobias Klauser | 1 | -13/+10 | |
This works around the problem when receving multiple inotify events for _one_ write to the file. This was a problem in the bordercase where the string written to the file was larger than 4096 chars, the last sizeof(string) - 4096 chars were repeated. Still have to check why there are _two_ IN_MODIFY events for _one_ write. But at least it does not affect inotail anymore. Also fix a dumb thinko in watch_files(): Move the ev_idx only one event forward, not n_files * INOTIFY_BUFLEN. | |||||
2007-01-22 | inotail.c: Gaaah! buf is on the stack now. | Tobias Klauser | 1 | -2/+1 | |
2007-01-21 | inotail.c: Use strcmp rather than strncmp | Tobias Klauser | 1 | -2/+2 | |
We're compare against a constant string | |||||
2007-01-21 | Makefile: Consolidate CFLAGS | Tobias Klauser | 1 | -5/+3 | |
2007-01-21 | inotail.c: Inline some functions and initialize files pointer in main | Tobias Klauser | 1 | -3/+3 | |
2007-01-21 | Makefile: Correct verison for target release | Tobias Klauser | 1 | -3/+3 | |
2007-01-20 | inotify-syscalls.h: Add syscall numbers for m68k | Tobias Klauser | 1 | -0/+4 | |
I should build on all of these now: http://buildd.debian.org/pkg.cgi?pkg=inotail | |||||
2007-01-20 | inotail.c: Adjust block size according to return value of read | Tobias Klauser | 1 | -3/+4 | |
...and use proper types | |||||
2007-01-20 | inotail.c: Better handling of errors on inotify_init() | Tobias Klauser | 1 | -1/+4 | |
2007-01-20 | inotify-syscalls.h: Check whether the syscall numbers are already defined | Tobias Klauser | 1 | -2/+4 | |
glibc already defines the inotify syscall numbers on some architectures. This should fix the following warning on arm and hppa: In file included from inotail.c:37: inotify-syscalls.h:50:1: warning: "__NR_inotify_init" redefined In file included from /usr/include/sys/syscall.h:25, from inotify-syscalls.h:13, from inotail.c:37: /usr/include/asm/unistd.h:344:1: warning: this is the location of the previous definition In file included from inotail.c:37: inotify-syscalls.h:51:1: warning: "__NR_inotify_add_watch" redefined In file included from /usr/include/sys/syscall.h:25, from inotify-syscalls.h:13, from inotail.c:37: /usr/include/asm/unistd.h:345:1: warning: this is the location of the previous definition In file included from inotail.c:37: inotify-syscalls.h:52:1: warning: "__NR_inotify_rm_watch" redefined In file included from /usr/include/sys/syscall.h:25, from inotify-syscalls.h:13, from inotail.c:37: /usr/include/asm/unistd.h:346:1: warning: this is the location of the previous definition | |||||
2007-01-20 | inotail.c: Simplify iterating through inotify events | Tobias Klauser | 1 | -13/+17 | |
2007-01-15 | inotail.c: One more ssize_t | Tobias Klauser | 1 | -1/+1 | |