summaryrefslogtreecommitdiff
path: root/inotail.h
blob: 882d78d199f7aed7d08fa187bea1319e0da1728f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _INOTAIL_H
#define _INOTAIL_H

/* Number of items to tail. */
#define DEFAULT_N_LINES 10

/* tail modes */
enum { M_LINES, M_BYTES };

/* Every tailed file is represented as a file_struct */
struct file_struct {
	char	*name;		/* Name of file (or '-' for stdin) */
	int 	fd;		/* File descriptor (or -1 if file is not open */
	off_t	st_size;	/* File size */

	int	i_watch;	/* Inotify watch associated with file_struct */
};

#ifdef DEBUG
#define dprintf(fmt, args...) fprintf(stderr, fmt, ##args)
#else
#define dprintf(fmt, args...)
#endif /* DEBUG */

#endif /* _INOTAIL_H */
lass='right'>2017-02-14 15:02:17 -0500 commit6f2e3f7d9785dacb358b48b44950182b5c13e4bc (patch) treedbed4d1cfd5590a7d615f129b28caac6632a0de5 parent044950cc48ced25ccb2f4ea7c31228399e19d5d6 (diff)
net_sched: nla_memdup_cookie() can be static
Fixes the following sparse warning: net/sched/act_api.c:532:5: warning: symbol 'nla_memdup_cookie' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat
-rw-r--r--net/sched/act_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c