From 7b2b04536464157d31a34aab6968608a7849c0ab Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 21 Apr 2009 16:48:09 -0700 Subject: inotail: open with O_LARGEFILE Opening with O_LARGEFILE avoids failing with -EFBIG on large (>2gb?) files on 32bit machines (tested on 32bit x86). --- inotail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inotail.c b/inotail.c index dca2605..735c4b7 100644 --- a/inotail.c +++ b/inotail.c @@ -548,7 +548,7 @@ static int tail_file(struct file_struct *f, unsigned long n_units, char mode) if (strcmp(f->name, "-") == 0) f->fd = STDIN_FILENO; else { - f->fd = open(f->name, O_RDONLY); + f->fd = open(f->name, O_RDONLY|O_LARGEFILE); if (unlikely(f->fd < 0)) { fprintf(stderr, "Error: Could not open file '%s' (%s)\n", f->name, strerror(errno)); return -1; -- cgit v1.2.3-54-g00ecf d class='main'>index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/arch/blackfin/mach-bf548
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-22 21:06:16 -0400
committerMike Frysinger <vapier@gentoo.org>2011-03-22 21:06:16 -0400
commitde55aa33ca6928881ca5c402bb0f5db242fbcdba (patch)
tree3884210fcbb7b8017042c0fc8b386716fc33fedc /arch/blackfin/mach-bf548
parentbee18bebda46bc112916a5124a23a9c7b244b82d (diff)
Blackfin: bf54x: re-enable anomaly 05000353 for all revs
Even though the anomaly sheet says that the the bootrom is fixed, tests have shown that the fix itself does not handle all cases. So until we get a ROM update, assume the reset code is still broken and we need to handle things ourselves. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf548')