epoc32/include/stdapis/sys/stat.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
     1.1 --- a/epoc32/include/stdapis/sys/stat.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/stdapis/sys/stat.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -30,7 +30,7 @@
     1.4   * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     1.5   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     1.6   * SUCH DAMAGE.
     1.7 - * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved.
     1.8 + * © * Portions Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
     1.9   *	@(#)stat.h	8.12 (Berkeley) 6/16/95
    1.10   * $FreeBSD: src/sys/sys/stat.h,v 1.41 2005/03/22 01:19:18 das Exp $
    1.11   */
    1.12 @@ -48,6 +48,11 @@
    1.13  
    1.14  #ifndef _BLKCNT_T_DECLARED
    1.15  typedef	__blkcnt_t	blkcnt_t;
    1.16 +
    1.17 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
    1.18 +typedef __blkcnt_t blkcnt64_t;
    1.19 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
    1.20 +
    1.21  #define	_BLKCNT_T_DECLARED
    1.22  #endif
    1.23  
    1.24 @@ -68,6 +73,11 @@
    1.25  
    1.26  #ifndef _INO_T_DECLARED
    1.27  typedef	__ino_t		ino_t;
    1.28 +
    1.29 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
    1.30 +typedef __ino64_t	ino64_t;
    1.31 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
    1.32 +
    1.33  #define	_INO_T_DECLARED
    1.34  #endif
    1.35  
    1.36 @@ -174,6 +184,10 @@
    1.37  #endif
    1.38  };
    1.39  
    1.40 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
    1.41 +#define stat64 stat 
    1.42 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
    1.43 +
    1.44  #if __BSD_VISIBLE
    1.45  struct nstat {
    1.46  	__dev_t   st_dev;		/* inode's device */
    1.47 @@ -324,6 +338,20 @@
    1.48  IMPORT_C int	mkfifo(const char *, mode_t);
    1.49  IMPORT_C int	stat(const char * __restrict, struct stat * __restrict);
    1.50  IMPORT_C mode_t	umask(mode_t);
    1.51 +
    1.52 +#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
    1.53 +
    1.54 +#define fstat64	fstat
    1.55 +#define stat64	stat
    1.56 +#define __lxstat64	__lxstat
    1.57 +#define __xstat64	__xstat
    1.58 +
    1.59 +#if __POSIX_VISIBLE >= 200112
    1.60 +#define lstat64 lstat
    1.61 +#endif /* __POSIX_VISIBLE >= 200112 */
    1.62 +
    1.63 +#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
    1.64 +
    1.65  __END_DECLS
    1.66  #endif /* !_KERNEL */
    1.67