stat.h

00001 /*  wcecompat: Windows CE C Runtime Library "compatibility" library.
00002  *
00003  *  Copyright (C) 2001-2002 Essemer Pty Ltd.  All rights reserved.
00004  *  http://www.essemer.com.au/
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Lesser General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2.1 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Lesser General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU Lesser General Public
00017  *  License along with this library; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 
00022 #ifndef __wcecompat__SYS__STAT_H__
00023 #define __wcecompat__SYS__STAT_H__
00024 
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 
00031 #include <stdlib.h>             /* time_t */
00032 
00033 
00034 #define _S_IFMT         0170000         /* file type mask */
00035 #define _S_IFDIR        0040000         /* directory */
00036 #define _S_IFCHR        0020000         /* character special */
00037 #define _S_IFIFO        0010000         /* pipe */
00038 #define _S_IFREG        0100000         /* regular */
00039 #define _S_IREAD        0000400         /* read permission, owner */
00040 #define _S_IWRITE       0000200         /* write permission, owner */
00041 #define _S_IEXEC        0000100         /* execute/search permission, owner */
00042 
00043 #define S_IFMT                  _S_IFMT
00044 #define S_IFDIR                 _S_IFDIR
00045 #define S_IFCHR                 _S_IFCHR
00046 #define S_IFIFO                 _S_IFIFO
00047 #define S_IFREG                 _S_IFREG
00048 #define S_IREAD                 _S_IREAD
00049 #define S_IWRITE                _S_IWRITE
00050 #define S_IEXEC                 _S_IEXEC
00051 
00052 
00053 #ifndef _DEV_T_DEFINED
00054 typedef unsigned int _dev_t;
00055 #define _DEV_T_DEFINED
00056 #endif
00057 
00058 #ifndef _INO_T_DEFINED
00059 typedef unsigned short _ino_t;
00060 #define _INO_T_DEFINED
00061 #endif
00062 
00063 #ifndef _OFF_T_DEFINED
00064 typedef long _off_t;
00065 #define _OFF_T_DEFINED
00066 #endif
00067 
00068 struct stat
00069 {
00070         _dev_t                  st_dev;
00071         _ino_t                  st_ino;
00072         unsigned short  st_mode;
00073         short                   st_nlink;
00074         short                   st_uid;
00075         short                   st_gid;
00076         _dev_t                  st_rdev;
00077         _off_t                  st_size;
00078         time_t                  st_atime;
00079         time_t                  st_mtime;
00080         time_t                  st_ctime;
00081 };
00082 
00083 
00084 int __cdecl stat(const char *filename, struct stat *buf);
00085 
00086 
00087 #ifdef __cplusplus
00088 }
00089 #endif
00090 
00091 
00092 #endif // __wcecompat__SYS__STAT_H__

Generated on Mon Jun 5 10:20:48 2006 for Intelligence.kdevelop by  doxygen 1.4.6