summaryrefslogtreecommitdiff
path: root/inotail.c
diff options
context:
space:
mode:
Diffstat (limited to 'inotail.c')
-rw-r--r--inotail.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/inotail.c b/inotail.c
index 1c5f8f0..123a3fa 100644
--- a/inotail.c
+++ b/inotail.c
@@ -328,8 +328,8 @@ int main(int argc, char **argv)
{
int i, c, ret = 0;
int n_files = 0;
- unsigned int n_units = DEFAULT_N_LINES;
- char forever = 0, mode = M_LINES;
+ int n_units = DEFAULT_N_LINES;
+ char forever = 0, mode = M_LINES, relative = R_END;
char **filenames;
struct file_struct *files;
@@ -339,6 +339,10 @@ int main(int argc, char **argv)
case 'n':
if (c == 'c')
mode = M_BYTES;
+ if (*optarg == '+')
+ relative = R_BEGIN;
+ else if (*optarg == '-')
+ optarg++;
n_units = strtoul(optarg, NULL, 0);
if (n_units < 0)
n_units = 0;
02?id=cfbe800b8b771afc7d5aa113e19f85ec933b7618'>802: fix a possible race conditionCong Wang1-0/+4 2013-02-11mrp: make mrp_rcv staticStephen Hemminger1-2/+2 2013-02-10net/802: Implement Multiple Registration Protocol (MRP)David Ward3-0/+899 2012-05-15tokenring: delete all remaining driver supportPaul Gortmaker2-670/+0 2012-05-15net: delete all instances of special processing for token ringPaul Gortmaker2-3/+1 2012-05-09802: Convert compare_ether_addr to ether_addr_equalJoe Perches1-1/+1 2012-04-20net: Convert all sysctl registrations to register_net_sysctlEric W. Biederman1-7/+1 2012-04-20net: Move all of the network sysctls without a namespace into init_net.Eric W. Biederman1-1/+1 2012-04-15net: cleanup unsigned to unsigned intEric Dumazet4-5/+5 2012-04-13net/garp: fix GID rbtree orderingDavid Ward1-4/+4 2012-04-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netLinus Torvalds1-12/+10 2012-04-01net/garp: avoid infinite loop if attribute already existsDavid Ward1-12/+10 2012-03-28Remove all #inclusions of asm/system.hDavid Howells4-4/+0 2011-10-31net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modulesPaul Gortmaker1-0/+1 2011-10-31net: Fix files explicitly needing to include module.hPaul Gortmaker2-0/+2 2011-08-02rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTERStephen Hemminger2-4/+4 2011-05-23snap: remove one synchronize_net()Eric Dumazet1-1/+0 2011-05-21garp: use kfree_rcu()Eric Dumazet1-18/+2 2011-05-12garp: remove last synchronize_rcu() callEric Dumazet1-2/+12 2011-05-09garp: remove one synchronize_rcu() callEric Dumazet1-2/+6 2010-10-25net/802: add __rcu annotationsEric Dumazet2-11/+11