path: root/inotail.c
AgeCommit message (Collapse)AuthorFilesLines
2009-01-24Lost in the mergefollownameTobias Klauser1-6/+0
2009-01-24Merge branch 'master' into follownameTobias Klauser1-3/+1
Conflicts: inotail.c
2009-01-18Merge branch 'master' of git+ssh:// Klauser1-2/+1
2008-12-15Merge branch 'master' into follownameTobias Klauser1-2/+4
2008-11-14More comments and clearify a return statement.Tobias Klauser1-1/+3
2008-09-23Merge branch 'master' of /home/tklauser/scm/inotailTobias Klauser1-34/+269
Conflicts: inotail.c
2008-09-23use sys/inotify.hAdrian Bunk1-2/+1
Some time ago glibc did not yet have inotify support, which forced several applications (including inotail) to ship their own copy of the required headers. Especially considering that this also requires updating the syscall numbers each time a new architecture wants to get supported it's the best to instead switch to #include <sys/inotify.h> now.
2008-08-31Check for file being a pipe before seekingTobias Klauser1-1/+1
Otherwise inotail -f on a named pipe (fifo) would not work. Thanks Alexander Sulfrian.
2008-06-19Merge branch 'master' into follownameTobias Klauser1-2/+2
Conflicts: inotail.c
2008-05-10Resolve some merge conflicts.Tobias Klauser1-2/+2
2008-05-09inotail.c: Prepare for follow file by nameTobias Klauser1-7/+81
2008-04-14inotail.c: Comment some oarts of tail_pipe_lines/tail_pipe_bytesTobias Klauser1-5/+20
2008-03-24Prevent double calls to ignore_file() in/after tail_file()Tobias Klauser1-6/+1
2008-03-01Merge branch 'pipe'Tobias Klauser1-17/+244
Conflicts: inotail.c
2008-03-01Move all #define's except PROGRAM_NAME to inotail.hTobias Klauser1-6/+0
2008-02-11inotail.c: Handle IN_IGNORED eventTobias Klauser1-0/+2
This event is e.g. emitted when we remove a watch on a file.
2008-02-11inotail.c: Check ignore flag before ignoreing the fileTobias Klauser1-2/+4
This makes ignore_file reentrant. Calling the function on a file which is already ignored shouldn't lead to n_ignored getting incremented.
2008-01-14Update copyright and bump version to pre0 (ti fix Debian bug #460527)Tobias Klauser1-1/+1
2008-01-14inotail.c: Correct format specifier for size_tTobias Klauser1-1/+1
2008-01-14inotail.c: Handle file truncation in follow modeTobias Klauser1-10/+15
2008-01-13inotail.c: Correct format for size_t (fixes warning on amd64)Tobias Klauser1-1/+1
2007-11-11Revert "inotail.c: Decrement n_units before calling tail_pipe_from_begin"pipeTobias Klauser1-2/+5
This reverts commit 21cddfba5f53ed0ad9d8f14bc1555c57cad9790e. Makes inotail -n +0 work again. Sometimes reducing code leads to unrecognised errors ;-)
2007-09-25inotail.c: typdef mode_tTobias Klauser1-2/+3
2007-09-25inotail.c: Decrement n_units before calling tail_pipe_from_beginTobias Klauser1-5/+2
Saves 2 lines of code
2007-09-19inotail.c: Check for n_units == 0 only if tailing from endTobias Klauser1-4/+9
inotail -n+0/-c+0 should be allowed
2007-09-18inotail.c: Implement pipe tailing lines from beginTobias Klauser1-5/+57
Use a general function for lines and bytes to prevent duplicating code.
2007-09-18intotail.c: Check for n_units == 0 before calling tail_pipe_*()Tobias Klauser1-6/+3
2007-09-18inotail.c: Implement tail_pipe_bytes()Tobias Klauser1-9/+70
For now more or less a copy from coreutils
2007-09-18inotail.c: Use BUFSIZ and post-incrementTobias Klauser1-12/+10
For consistency reasons mostly :-)
2007-09-18inotail.c: Set rc/ret when calling the functionsTobias Klauser1-6/+3
2007-09-17inotail.c: Correct error handling in tail_pipe_lines()Tobias Klauser1-4/+7
2007-09-17inotail.c: Fix initialization of blksizeTobias Klauser1-1/+1
2007-09-07Merge branch 'master' into pipeTobias Klauser1-36/+63
Conflicts: changelog inotail.c inotail.h
2007-09-07Rename file_struct membersTobias Klauser1-20/+20
The rationale behind this is to only use the 'st_' prefix for values gotten by calls to fstat()
2007-09-07Also print strerror when file type is not supportedTobias Klauser1-1/+1
2007-07-02inotail.c: Correct error messageTobias Klauser1-1/+1
These could also be bytes
2007-06-24inotail.c: Flush stdout in write_header()Tobias Klauser1-1/+3
To make sure the header is also printed when piping inotail output to pipes.
2007-06-21inotail.c: Reorder emalloc/free in handle_inotify_event()Tobias Klauser1-4/+4
Get rid of the following warning when compiling with -Os: inotail.c:338: warning: 'fbuf' may be used uninitialized in this function
2007-06-20inotail.c: Correct commentTobias Klauser1-1/+1
2007-06-20inotail.c: Move allocation of buffer before place where buf is usedTobias Klauser1-4/+2
This saves two possible free calls
2007-06-20inotail.c: Add missing free() calls after lseek() failureTobias Klauser1-0/+3
2007-06-17inotail.c: One more unlikelyTobias Klauser1-1/+1
2007-06-17inotail.c: emalloc should return void *Tobias Klauser1-3/+3
Also add the unlikely() to the check of the malloc retval. This patch seems to have gotten lost during a merge.
2007-06-17inotail.c: Use emallocTobias Klauser1-5/+1
2007-06-17Merge branch 'master' into buffersizeTobias Klauser1-2/+2
Conflicts: inotail.c
2007-06-17inotail.c: Cleanup commentsTobias Klauser1-3/+2
2007-06-16Merge branch 'master' into buffersizeTobias Klauser1-19/+36
Conflicts: inotail.c
2007-06-15inotail.c: s/Inotify/inotify/Tobias Klauser1-2/+2
2007-06-15inotail.c: Simplify tail_pipe_lines()Tobias Klauser1-15/+13
2007-06-15Merge branch 'master' into pipeTobias Klauser1-20/+11