[Libsysio-commit] strided-io: libsysio/drivers/native fs_native.c
Brought to you by:
lward
|
From: Lee W. <lw...@us...> - 2004-01-27 00:21:53
|
Update of /cvsroot/libsysio/libsysio/drivers/native In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1014/drivers/native Modified Files: Tag: strided-io fs_native.c Log Message: Use O_LARGEFILE or we don't get 64-bit file address space. Fix lots of seek/position checks. Add artificial limit check to _sysio_validx and remove the test for overflow of INT_MAX there. Index: fs_native.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/native/fs_native.c,v retrieving revision 1.25.6.1 retrieving revision 1.25.6.2 diff -u -w -b -B -p -r1.25.6.1 -r1.25.6.2 --- fs_native.c 23 Jan 2004 15:19:37 -0000 1.25.6.1 +++ fs_native.c 26 Jan 2004 07:10:56 -0000 1.25.6.2 @@ -1014,6 +1014,9 @@ native_inop_open(struct pnode *pno, int flags &= ~O_WRONLY; flags |= O_RDWR; } +#ifdef O_LARGEFILE + flags |= O_LARGEFILE; +#endif fd = syscall(SYS_open, path, flags, mode); if (!pno->p_base->pb_ino && fd >= 0) { int err; |