Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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 | |||||
2006-11-08 | Spelling fixes and some small code reordering | Tobias Klauser | 1 | -8/+6 | |
2006-10-26 | inotail.c: Support inotail -n +<num> | Tobias Klauser | 1 | -4/+51 | |
Add function lines_to_offset_from_begin() to allow tailing relative to the begin of the file. Also handle the case where the argument for '-c' or 'n' is '+0'. Like GNU tail (and according to its source also tail in UNIX) print the whole file in this case. | |||||
2006-10-25 | Various change to allow tailing bytes relative to the begin | Tobias Klauser | 2 | -10/+10 | |
"Simplyfy" and inline bytes_to_offset, extend it to support tailing relative to begin of file. Boolean relative makes no sense, make it a char containing 0 for relative to end and 1 for relative to begin. | |||||
2006-10-24 | inotail.c: Introduce relative tailing | Tobias Klauser | 1 | -6/+9 | |
The global variable 'relative' states whether we're tailing relative to the end (R_END, default) or the begin of the file. Also do some minor comment reformatting. | |||||
2006-10-21 | Unify wording all over the tree | Tobias Klauser | 6 | -8/+8 | |
According to the Linux source it's: * s/linux/Linux/ * s/Kernel/kernel/ * s/Inotify/inotify/ (except at the beginning of a sentence) | |||||
2006-10-20 | inotail.c: Add basic support for +/-<num> to -c/-n | Tobias Klauser | 2 | -2/+9 | |
2006-10-20 | inotail.c: More n_units cleanup | Tobias Klauser | 1 | -6/+6 | |
Make n_units unsigned and rename some more variables to the appropriate form. | |||||
2006-10-20 | inotail.c: rename n_lines to n_units | Tobias Klauser | 1 | -5/+5 | |
2006-10-17 | inotail.c: Better error handling in tail_file() | Tobias Klauser | 1 | -9/+14 | |
Close fd on any error, rename rc variable to cleanly state what it's for. | |||||
2006-10-16 | inotail.c: Make pretty_name() an inline | Tobias Klauser | 1 | -1/+1 | |
2006-10-05 | Makefile: Simplify clean rule | Tobias Klauser | 1 | -3/+1 | |
2006-10-05 | Better file type checking and more meaningful return values | Tobias Klauser | 1 | -3/+12 | |
2006-10-05 | Clean all cscope generated files | Tobias Klauser | 1 | -1/+1 | |
2006-09-27 | Move inotify event handling into own function | Tobias Klauser | 1 | -50/+53 | |
2006-09-26 | Add notice about inotify.h and inotify-syscalls.h to License section | Tobias Klauser | 1 | -0/+4 | |
Thanks to Daniel Baumann | |||||
2006-09-26 | Define unlikely() only for GCC | Tobias Klauser | 1 | -2/+5 | |
Some compilers probably don't know __builtin_expect | |||||
2006-09-26 | Add unlikely macro | Tobias Klauser | 2 | -2/+4 | |
And use it for a really unlikely case | |||||
2006-09-26 | Add check for the case that no file produced the inotify event | Tobias Klauser | 1 | -2/+5 | |
This could use an unlikely() | |||||
2006-09-24 | Add license and copyright. | Tobias Klauser | 1 | -0/+9 | |
Don't know whether it is correct to set myself as copyright holder as I only drew this file together from various source in the kernel source, but all of them stating no copyright information. |