1.1 --- a/epoc32/include/stdapis/sys/fcntl.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/stdapis/sys/fcntl.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,6 +1,5 @@
1.4 /*-
1.5 - * © Portions copyright (c) 2005 Nokia Corporation. All rights reserved.
1.6 - * © Portions copyright (c) 2006-2007 Symbian Software Ltd. All rights reserved.
1.7 + *
1.8 * Copyright (c) 1983, 1990, 1993
1.9 * The Regents of the University of California. All rights reserved.
1.10 * (c) UNIX System Laboratories, Inc.
1.11 @@ -32,6 +31,7 @@
1.12 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.13 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.14 * SUCH DAMAGE.
1.15 + * * © * Portions Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
1.16 *
1.17 * @(#)fcntl.h 8.3 (Berkeley) 1/21/94
1.18 * $FreeBSD: src/sys/sys/fcntl.h,v 1.16 2004/04/07 04:19:49 imp Exp $
1.19 @@ -56,6 +56,11 @@
1.20
1.21 #ifndef _OFF_T_DECLARED
1.22 typedef __off_t off_t;
1.23 +
1.24 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
1.25 +typedef __off_t off64_t;
1.26 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
1.27 +
1.28 #define _OFF_T_DECLARED
1.29 #endif
1.30
1.31 @@ -77,6 +82,10 @@
1.32 #define O_RDWR 0x0002 /* open for reading and writing */
1.33 #define O_ACCMODE 0x0003 /* mask for above modes */
1.34
1.35 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
1.36 +#define O_LARGEFILE 0x0004
1.37 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
1.38 +
1.39 /*
1.40 * Kernel encoding of open mode; separate read and write bits that are
1.41 * independently testable: 1 greater than the above.
1.42 @@ -173,7 +182,10 @@
1.43 #ifdef __SYMBIAN32__
1.44 #define O_TMPFILE 0x10000000 /* flag for cleanup of tmpfiles*/
1.45 #endif //__SYMBIAN32__
1.46 -
1.47 +/*SYMBIAN Flag for shm_open()*/
1.48 +#ifdef __SYMBIAN32__
1.49 +#define O_SHMFLG 0x01000000 /* flag for shm_open()*/
1.50 +#endif //__SYMBIAN32__
1.51 /*
1.52 * Constants used for fcntl(2)
1.53 */
1.54 @@ -192,6 +204,12 @@
1.55 #define F_SETLK 8 /* set record locking information */
1.56 #define F_SETLKW 9 /* F_SETLK; wait if blocked */
1.57
1.58 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
1.59 +#define F_GETLK64 F_GETLK
1.60 +#define F_SETLK64 F_SETLK
1.61 +#define F_SETLKW64 F_SETLKW
1.62 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
1.63 +
1.64 /* file descriptor flags (F_GETFD, F_SETFD) */
1.65 #define FD_CLOEXEC 1 /* close-on-exec flag */
1.66
1.67 @@ -217,6 +235,10 @@
1.68 short l_whence; /* type of l_start */
1.69 };
1.70
1.71 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
1.72 +#define flock64 flock
1.73 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
1.74 +
1.75
1.76 #if __BSD_VISIBLE
1.77 /* lock operations for flock(2) */
1.78 @@ -235,6 +257,12 @@
1.79 IMPORT_C int open(const char *, int, ...);
1.80 IMPORT_C int creat(const char *, mode_t);
1.81 IMPORT_C int fcntl(int, int, ...);
1.82 +
1.83 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
1.84 +#define open64 open
1.85 +#define creat64 creat
1.86 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
1.87 +
1.88 #if __BSD_VISIBLE
1.89 int flock(int, int);
1.90 #endif