1.1 --- a/epoc32/include/stdapis/unistd.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/stdapis/unistd.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,6 +1,4 @@
1.4 /*-
1.5 - * © Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
1.6 - * © Portions copyright (c) 2006 Symbian Software Ltd. All rights reserved.
1.7 * Copyright (c) 1991, 1993, 1994
1.8 * The Regents of the University of California. All rights reserved.
1.9 *
1.10 @@ -27,7 +25,8 @@
1.11 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.12 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.13 * SUCH DAMAGE.
1.14 - * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved.
1.15 + *
1.16 + * Portions Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
1.17 * @(#)unistd.h 8.12 (Berkeley) 4/27/95
1.18 * $FreeBSD: src/include/unistd.h,v 1.78 2005/05/13 16:27:30 delphij Exp $
1.19 */
1.20 @@ -359,6 +358,11 @@
1.21 #ifndef _LSEEK_DECLARED
1.22 #define _LSEEK_DECLARED
1.23 IMPORT_C off_t lseek(int, off_t, int);
1.24 +
1.25 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
1.26 +#define lseek64 lseek
1.27 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
1.28 +
1.29 #endif
1.30 IMPORT_C long pathconf(const char *, int);
1.31 IMPORT_C int pipe(int *);
1.32 @@ -409,6 +413,11 @@
1.33 #ifndef _FTRUNCATE_DECLARED
1.34 #define _FTRUNCATE_DECLARED
1.35 IMPORT_C int ftruncate(int, off_t);
1.36 +
1.37 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
1.38 +#define ftruncate64 ftruncate
1.39 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
1.40 +
1.41 #endif
1.42 #endif
1.43
1.44 @@ -461,10 +470,17 @@
1.45 void sync(void);
1.46 IMPORT_C int usleep(useconds_t);
1.47
1.48 +IMPORT_C unsigned int alarm(unsigned int seconds);
1.49 +
1.50 /* See comment at ftruncate() above. */
1.51 #ifndef _TRUNCATE_DECLARED
1.52 #define _TRUNCATE_DECLARED
1.53 IMPORT_C int truncate(const char *, off_t);
1.54 +
1.55 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
1.56 +#define truncate64 truncate
1.57 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
1.58 +
1.59 #endif
1.60 #endif /* __XSI_VISIBLE */
1.61
1.62 @@ -489,6 +505,11 @@
1.63 #endif
1.64 #ifndef _MKSTEMP_DECLARED
1.65 IMPORT_C int mkstemp(char *);
1.66 +
1.67 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
1.68 +#define mkstemp64 mkstemp
1.69 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
1.70 +
1.71 #define _MKSTEMP_DECLARED
1.72 #endif
1.73