summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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-15Merge branch 'master' into pipeTobias Klauser2-1/+8
2007-09-07Release inotail 0.5v0.5Tobias Klauser2-1/+8
2007-09-07Merge branch 'master' into pipeTobias Klauser3-44/+76
Conflicts: changelog inotail.c inotail.h
2007-09-07Rename file_struct membersTobias Klauser2-22/+22
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-20Release inotail 0.4v0.4Tobias Klauser2-1/+12
2007-06-20inotail.h: Update copyrightTobias Klauser1-1/+1
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 Klauser2-19/+38
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
2007-06-15inotail.c: Simplify EINTR handling in watch_files()Tobias Klauser1-13/+8
We don't need another loop, just continue the surrounding while() on EINTR/EAGAIN
2007-06-12inotail.c: Also handle EAGAIN in watch_files()Tobias Klauser1-2/+2
2007-06-12inotail.c: Handle EINTR and EAGAIN in tail_pipe_lines()Tobias Klauser1-4/+6
2007-06-12inotail.c: CleanupTobias Klauser1-11/+7
Save us some lines
2007-06-11inotail.c/.h: Clean up a bitTobias Klauser2-11/+10
2007-06-11inotail.c: Fix stupid data type error in emalloc()Tobias Klauser1-2/+2
2007-06-11Merge branch 'master' into pipeTobias Klauser4-3/+13
Conflicts: inotail.c
2007-06-11inotail.c/.h: Implement is_digit to save some bytes of ctype.h inclusionTobias Klauser2-2/+3
2007-06-11inotail.c: remove debugging outputTobias Klauser1-2/+0
2007-06-11inotail.c: Implement tail_pipe_lines()Tobias Klauser1-8/+131
For now the function is more or less a copy from coreutils tail. This could need some work.
2007-06-08inotail.c: Rename alloc_buffer() to emalloc()Tobias Klauser1-18/+17
This better describes what the function really does. It will be used for the allocating of the line buffers in tail_pipe too.
2007-06-08inotail.c: Prepare for implementation of tail_pipe_{lines,bytes}Tobias Klauser1-7/+15
Split in two functions
2007-06-04inotail.c: Handle return value of lseekTobias Klauser1-5/+20
lseek() could fail so we better handle it. Based on a patch by Folkert van Heusden
2007-06-02inotail.c: Correct error condition in tail_pipe()Tobias Klauser1-1/+1
write() returns 0 on end of file
2007-05-29inotail.c: Fix handling of EINTR in watch_files()Tobias Klauser1-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-23inotail.c: Coding style cleanupsTobias Klauser1-2/+3
2007-05-23Change alloc_buffer to take a size_t which is more logicalTobias Klauser1-22/+17
Some additional cleanups e.g. deletion of unecessary buffer_size variables
2007-05-21Merge commit 'HEAD'; branch 'master' into buffersizeTobias Klauser2-2/+2
2007-05-21Makefile: Reorder CFLAGSTobias Klauser1-1/+1
2007-05-21Some housekeeping after introduction of alloc_buffer()Tobias Klauser1-3/+2
2007-05-21Prevent from some possible memory leaksTobias Klauser1-5/+8
2007-05-21inotail.c: Improve error messageTobias Klauser1-1/+1
2007-05-21Get rid of one variableTobias Klauser1-3/+2
2007-05-21Use optimal buffer size depending on the filesystem containing the fileTobias Klauser2-19/+66
The st_blksize attribute of struct stat conatains the blocksize for filesystem I/O (see stat(2)) which is the optimal size for reading/writing chunks of data. Based on a patch by Folkert van Heusden
2007-05-20inotail.c: Proper check of return value for the previous fixTobias Klauser1-2/+2