summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-05-18inotail.c: read() call cleanupTobias Klauser1-6/+6
buf instead of &buf
2007-05-18inotail.c: Forward just one event, we might miss some events otherwiseTobias Klauser1-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-17Release inotail 0.3v0.3Tobias Klauser2-2/+2
2007-04-16inotail.c: Really fix byte_to_offset() this timeTobias Klauser1-6/+12
Also make a bit more readable
2007-04-13inotail.c: Fix an integer underflow in bytes_to_offset()Tobias Klauser1-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-06Makefile: s/DESTDIR/prefix/ which is more intuitiveTobias Klauser1-3/+3
2007-03-28Makefile: Remove LDFLAGSTobias Klauser1-2/+0
2007-03-28Makefile: Clean up some moreTobias Klauser1-2/+4
2007-03-28Makfile: Get rid of prefix var, it's not necessaryTobias Klauser1-4/+3
Additionally this leads to problems when building debian packages
2007-03-28chanlog: Updates for 0.3Tobias Klauser1-3/+2
2007-03-18inotail.c: Proper exit after printing of versionTobias Klauser1-1/+1
2007-03-04inotail.c: Fix bug in parsing of +<num> parametersTobias Klauser1-2/+3
2007-03-04inotail.c: Datatype cleanupTobias Klauser1-2/+2
2007-03-03inotail.c: Ignore file cleanupTobias Klauser1-26/+23
Get rid of some nasty code. Ok, it isn't much better now.
2007-03-03Remove stuff unneeded in releaseTobias Klauser1-2/+2
2007-03-03inotail.c: Cleanup before releaseTobias Klauser1-17/+9
2007-03-02Preparing inotail 0.3Tobias Klauser1-0/+10
2007-02-26inotify-syscalls.h: Add syscall numbers for m32r for those who careTobias Klauser1-12/+10
Also do some cleanup work.
2007-02-09Makefile: Add -W to CFLAGSTobias Klauser1-1/+1
According to TAOSA chapter 6 -Wall does not warn about some bug types.
2007-02-05inotail.c: Some more branch predictionTobias Klauser1-6/+6
2007-02-05inotail.c: Better checking of -n/-c argumentsTobias Klauser1-10/+12
Also change n_lines/n_bytes to an unsigned long Additionally remove some spurious memset()'s
2007-02-03inotail.c: Remember last printed headerTobias Klauser1-1/+5
Prevents inotail from printing the header with the name of the file everytime it changes.
2007-02-02README: Small fixupsTobias Klauser1-4/+4
2007-01-22inotail.c: Set new file size _after_ read/write in handle_inotify_event()Tobias Klauser1-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-22inotail.c: Gaaah! buf is on the stack now.Tobias Klauser1-2/+1
2007-01-21inotail.c: Use strcmp rather than strncmpTobias Klauser1-2/+2
We're compare against a constant string
2007-01-21Makefile: Consolidate CFLAGSTobias Klauser1-5/+3
2007-01-21inotail.c: Inline some functions and initialize files pointer in mainTobias Klauser1-3/+3
2007-01-21Makefile: Correct verison for target releaseTobias Klauser1-3/+3
2007-01-20inotify-syscalls.h: Add syscall numbers for m68kTobias Klauser1-0/+4
I should build on all of these now: http://buildd.debian.org/pkg.cgi?pkg=inotail
2007-01-20inotail.c: Adjust block size according to return value of readTobias Klauser1-3/+4
...and use proper types
2007-01-20inotail.c: Better handling of errors on inotify_init()Tobias Klauser1-1/+4
2007-01-20inotify-syscalls.h: Check whether the syscall numbers are already definedTobias Klauser1-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-20inotail.c: Simplify iterating through inotify eventsTobias Klauser1-13/+17
2007-01-15inotail.c: One more ssize_tTobias Klauser1-1/+1
2007-01-10README: Mention compilerTobias Klauser1-0/+1
2007-01-10inotail.c: Minor cleanupsTobias Klauser1-3/+3
Make one more read(2) return value ssize_t and do not initialize n_files to 0
2007-01-06Makefile: Add mudflap options to CFLAGS and LDFLAGS when debuggingTobias Klauser1-8/+10
2007-01-05Makefile: Install to /usr/local by default as stated in READMETobias Klauser1-1/+1
2007-01-05README: Add section about building and installing inotailTobias Klauser1-0/+16
2007-01-05inotail.c: Print version information to stdoutTobias Klauser1-1/+1
2007-01-05inotail.c: Make tail_pipe() return ssize_tTobias Klauser1-2/+2
read() returns ssize_t and we were casting it to signed int which might be smaller on some architectures.
2007-01-04inotail.c: Make it clear that we're handling one file when tailing stdinTobias Klauser1-1/+1
2007-01-04inotail.c: Fix an off-by-one error in lines_to_offset_from_end()Tobias Klauser1-1/+1
buf[block_size] is obviously _not_ in buf itself.
2007-01-04inotail.c: Make n_ignored globalTobias Klauser1-15/+24
It was getting more and more complicated and errorprone with handling n_ignored as local variable.
2007-01-04Makefile: Add custom (e.g. optimization) CFLAGS to our CFLAGSTobias Klauser1-2/+2
2006-12-28inotail.c: Use consistent nomenclature for struct file_struct pointersTobias Klauser1-29/+29
f for pointers to one struct file_struct files for pointers to an array of struct file_struct
2006-12-28inotail.c: Add and use ignore_file() functionTobias Klauser1-7/+9
2006-12-28inotail.c: Handle return value of inotify_add_watch()Tobias Klauser1-2/+8
2006-12-23inotail.c: Print usage to stdoutTobias Klauser1-1/+1