epoc32/include/stdapis/unistd.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 /*-
     1 /*-
     2  * © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
       
     3  * © Portions copyright (c) 2006 Symbian Software Ltd. All rights reserved.
       
     4  * Copyright (c) 1991, 1993, 1994
     2  * Copyright (c) 1991, 1993, 1994
     5  *	The Regents of the University of California.  All rights reserved.
     3  *	The Regents of the University of California.  All rights reserved.
     6  *
     4  *
     7  * Redistribution and use in source and binary forms, with or without
     5  * Redistribution and use in source and binary forms, with or without
     8  * modification, are permitted provided that the following conditions
     6  * modification, are permitted provided that the following conditions
    25  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    26  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    27  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    28  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    29  * SUCH DAMAGE.
    27  * SUCH DAMAGE.
    30  * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved.
    28  *
       
    29  * Portions Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
    31  *	@(#)unistd.h	8.12 (Berkeley) 4/27/95
    30  *	@(#)unistd.h	8.12 (Berkeley) 4/27/95
    32  * $FreeBSD: src/include/unistd.h,v 1.78 2005/05/13 16:27:30 delphij Exp $
    31  * $FreeBSD: src/include/unistd.h,v 1.78 2005/05/13 16:27:30 delphij Exp $
    33  */
    32  */
    34 
    33 
    35 #ifndef _UNISTD_H_
    34 #ifndef _UNISTD_H_
   357 IMPORT_C int	 isatty(int);
   356 IMPORT_C int	 isatty(int);
   358 IMPORT_C int	 link(const char *, const char *);
   357 IMPORT_C int	 link(const char *, const char *);
   359 #ifndef _LSEEK_DECLARED
   358 #ifndef _LSEEK_DECLARED
   360 #define	_LSEEK_DECLARED
   359 #define	_LSEEK_DECLARED
   361 IMPORT_C off_t	 lseek(int, off_t, int);
   360 IMPORT_C off_t	 lseek(int, off_t, int);
       
   361 
       
   362 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
       
   363 #define lseek64  lseek
       
   364 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
       
   365 
   362 #endif
   366 #endif
   363 IMPORT_C long	 pathconf(const char *, int);
   367 IMPORT_C long	 pathconf(const char *, int);
   364 IMPORT_C int pipe(int *);
   368 IMPORT_C int pipe(int *);
   365 IMPORT_C ssize_t	 read(int, void *, size_t);
   369 IMPORT_C ssize_t	 read(int, void *, size_t);
   366 IMPORT_C int	 rmdir(const char *);
   370 IMPORT_C int	 rmdir(const char *);
   407  * memory), but truncate() was not.
   411  * memory), but truncate() was not.
   408  */
   412  */
   409 #ifndef _FTRUNCATE_DECLARED
   413 #ifndef _FTRUNCATE_DECLARED
   410 #define	_FTRUNCATE_DECLARED
   414 #define	_FTRUNCATE_DECLARED
   411 IMPORT_C int	 ftruncate(int, off_t);
   415 IMPORT_C int	 ftruncate(int, off_t);
       
   416 
       
   417 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
       
   418 #define ftruncate64 ftruncate
       
   419 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
       
   420 
   412 #endif
   421 #endif
   413 #endif
   422 #endif
   414 
   423 
   415 #if __POSIX_VISIBLE >= 199506
   424 #if __POSIX_VISIBLE >= 199506
   416 
   425 
   459 #endif /* _SWAB_DECLARED */
   468 #endif /* _SWAB_DECLARED */
   460 
   469 
   461 void	 sync(void);
   470 void	 sync(void);
   462 IMPORT_C int	 usleep(useconds_t);
   471 IMPORT_C int	 usleep(useconds_t);
   463 
   472 
       
   473 IMPORT_C unsigned int	alarm(unsigned int seconds);
       
   474 
   464 /* See comment at ftruncate() above. */
   475 /* See comment at ftruncate() above. */
   465 #ifndef _TRUNCATE_DECLARED
   476 #ifndef _TRUNCATE_DECLARED
   466 #define	_TRUNCATE_DECLARED
   477 #define	_TRUNCATE_DECLARED
   467 IMPORT_C int	 truncate(const char *, off_t);
   478 IMPORT_C int	 truncate(const char *, off_t);
       
   479 
       
   480 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
       
   481 #define truncate64 truncate
       
   482 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
       
   483 
   468 #endif
   484 #endif
   469 #endif /* __XSI_VISIBLE */
   485 #endif /* __XSI_VISIBLE */
   470 
   486 
   471 #if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
   487 #if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
   472 IMPORT_C int	 brk(const void *);
   488 IMPORT_C int	 brk(const void *);
   487 int	 mknod(const char *, mode_t, dev_t);
   503 int	 mknod(const char *, mode_t, dev_t);
   488 #define	_MKNOD_DECLARED
   504 #define	_MKNOD_DECLARED
   489 #endif
   505 #endif
   490 #ifndef _MKSTEMP_DECLARED
   506 #ifndef _MKSTEMP_DECLARED
   491 IMPORT_C int	 mkstemp(char *);
   507 IMPORT_C int	 mkstemp(char *);
       
   508 
       
   509 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
       
   510 #define mkstemp64	mkstemp
       
   511 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
       
   512 
   492 #define	_MKSTEMP_DECLARED
   513 #define	_MKSTEMP_DECLARED
   493 #endif
   514 #endif
   494 
   515 
   495 #ifdef __SYMBIAN_COMPILE_UNUSED__
   516 #ifdef __SYMBIAN_COMPILE_UNUSED__
   496 int	 mkstemps(char *, int);
   517 int	 mkstemps(char *, int);