Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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 | |
2007-01-10 | README: Mention compiler | Tobias Klauser | 1 | -0/+1 | |
2007-01-10 | inotail.c: Minor cleanups | Tobias Klauser | 1 | -3/+3 | |
Make one more read(2) return value ssize_t and do not initialize n_files to 0 | |||||
2007-01-06 | Makefile: Add mudflap options to CFLAGS and LDFLAGS when debugging | Tobias Klauser | 1 | -8/+10 | |
2007-01-05 | Makefile: Install to /usr/local by default as stated in README | Tobias Klauser | 1 | -1/+1 | |
2007-01-05 | README: Add section about building and installing inotail | Tobias Klauser | 1 | -0/+16 | |
2007-01-05 | inotail.c: Print version information to stdout | Tobias Klauser | 1 | -1/+1 | |
2007-01-05 | inotail.c: Make tail_pipe() return ssize_t | Tobias Klauser | 1 | -2/+2 | |
read() returns ssize_t and we were casting it to signed int which might be smaller on some architectures. | |||||
2007-01-04 | inotail.c: Make it clear that we're handling one file when tailing stdin | Tobias Klauser | 1 | -1/+1 | |
2007-01-04 | inotail.c: Fix an off-by-one error in lines_to_offset_from_end() | Tobias Klauser | 1 | -1/+1 | |
buf[block_size] is obviously _not_ in buf itself. | |||||
2007-01-04 | inotail.c: Make n_ignored global | Tobias Klauser | 1 | -15/+24 | |
It was getting more and more complicated and errorprone with handling n_ignored as local variable. | |||||
2007-01-04 | Makefile: Add custom (e.g. optimization) CFLAGS to our CFLAGS | Tobias Klauser | 1 | -2/+2 | |
2006-12-28 | inotail.c: Use consistent nomenclature for struct file_struct pointers | Tobias Klauser | 1 | -29/+29 | |
f for pointers to one struct file_struct files for pointers to an array of struct file_struct | |||||
2006-12-28 | inotail.c: Add and use ignore_file() function | Tobias Klauser | 1 | -7/+9 | |
2006-12-28 | inotail.c: Handle return value of inotify_add_watch() | Tobias Klauser | 1 | -2/+8 | |
2006-12-23 | inotail.c: Print usage to stdout | Tobias Klauser | 1 | -1/+1 | |
2006-12-23 | inotail.c: Keep tailing moved files by fd | Tobias Klauser | 1 | -1/+1 | |
As a side effect of the recent change to not reopen files while watching (commit 1ddefac3dfe654f23fc944df5d7c52a078692012) it's possible now to follow moved files by their open fd. | |||||
2006-12-21 | inotail.c: Don't open files over and over again | Tobias Klauser | 1 | -11/+19 | |
Up to now files were closed after processing each inotify event which seems to be quite a bit of overhead. The fds are now kept open and are only closed in case of errors. | |||||
2006-12-18 | inotail.c: Minor cleanups and addition of an unlikely() | Tobias Klauser | 1 | -7/+4 | |
2006-12-15 | inotail.c: return instead of break | Tobias Klauser | 1 | -5/+2 | |
2006-12-14 | inotail.c: Move some macros to inotail.h | Tobias Klauser | 2 | -10/+8 | |
Some typos and useless blank lines are also fixed. | |||||
2006-12-14 | inotail.c: Move a variable to the block where it's used | Tobias Klauser | 1 | -2/+1 | |
2006-12-14 | inotail.c: Save 2 LOC | Tobias Klauser | 1 | -4/+2 | |
2006-12-14 | inotail.1: Correct double 'with' | Tobias Klauser | 1 | -1/+1 | |
2006-12-08 | inotail.c: Yet another user for IS_PIPELIKE | Tobias Klauser | 1 | -1/+1 | |
2006-12-08 | inotail.c: Merge S_ISFIFO and S_ISSOCK to IS_PIPELIKE | Tobias Klauser | 1 | -2/+5 | |
2006-12-08 | Makefile: Remove dependency on Makfile from all target | Tobias Klauser | 1 | -1/+1 | |
2006-12-04 | Officially release inotail 0.2v0.2 | Tobias Klauser | 1 | -1/+1 | |
2006-11-30 | changelog: Correct the version | Tobias Klauser | 1 | -1/+1 | |
2006-11-30 | Added changelog | Tobias Klauser | 1 | -0/+7 | |
2006-11-20 | Makefile: Replace deprecated call to git-tar-tree | Tobias Klauser | 1 | -2/+2 | |
git-archive --format=tar is used now | |||||
2006-11-16 | inotail.c: Reorder lines_to_offset* functions | Tobias Klauser | 1 | -31/+37 | |
Make lines_to_offset() just a wrapper function to check whether to tail from begin or from end of the file. The real work is done in lines_to_offset_from_begin() and lines_to_offset_from_end() | |||||
2006-11-15 | Makefile: Remove duplicate -Wsign-compare from $WARN | Tobias Klauser | 1 | -1/+1 | |
2006-11-15 | Minor documentation changes | Tobias Klauser | 2 | -5/+6 | |
2006-11-15 | Add license information to Makefile and inotail.h | Tobias Klauser | 2 | -0/+9 | |
2006-11-09 | Dynamically allocate memory for the inotify event buffer | Tobias Klauser | 1 | -4/+7 | |
By using malloc(3) depending on the number of files we have, the memory footprint can be reduced. Before this change, the buffer size was 32 * sizeof(struct inotify_event) which was an overhead when just tailing some few files. Now the memory is allocated depending on the number of files to tail. I know of no occassion where I received more than one event at a time per file, so the '2 *' can probably be dropped too. | |||||
2006-11-08 | Document -n/-c +N feature | Tobias Klauser | 2 | -9/+14 | |
That should make inotail POSIX tail compatible |