1 Oct 2003 15:24
Re: [PATCH] Mask out O_LARGEFILE in F_GETFL
Andrea Arcangeli <andrea <at> suse.de>
2003-10-01 13:24:01 GMT
2003-10-01 13:24:01 GMT
Hi, On Thu, Sep 25, 2003 at 07:25:08AM +0200, Andi Kleen wrote: > > This fixes a test in the LSB test suite. > > The kernel sets O_LARGEFILE implicitely on 64bit hosts. > According to POSIX it should not appear on F_GETFL then. Just mask it out > always. > > This will also mask it out for explicitely set O_LARGEFILE, but that seems > to be ok. > > Any flames for this please to the POSIX comittee, not to me. > > -Andi > > diff -X ../../KDIFX -burpN linux-2.4.23-pre5/fs/fcntl.c linux-merge/fs/fcntl.c > --- linux-2.4.23-pre5/fs/fcntl.c 2002-11-30 00:37:11.000000000 +0100 > +++ linux-merge/fs/fcntl.c 2002-11-30 05:22:20.000000000 +0100 > <at> <at> -270,7 +270,7 <at> <at> static long do_fcntl(unsigned int fd, un > set_close_on_exec(fd, arg&1); > break; > case F_GETFL: > - err = filp->f_flags; > + err = filp->f_flags & ~O_LARGEFILE; > break; > case F_SETFL: > lock_kernel(); >(Continue reading)
RSS Feed