home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / sompstat.idl < prev    next >
Text File  |  1999-02-22  |  4KB  |  72 lines

  1. //
  2. //   COMPONENT_NAME: somp
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,1996  
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13. //#  @(#) 2.13 src/somp/sompstat.idl, somp, som2.1 12/26/95 17:02:50 [7/30/96 14:47:06]
  14.  
  15.  
  16. /* This IDL structure should match that of the system include stat.h */
  17.  
  18. #ifndef SOMPSTAT_IDL
  19. #define SOMPSTAT_IDL
  20.  
  21. typedef struct  somp_stat {
  22. #ifdef __OS2__
  23.   short           st_dev;         /* ID of device containing a directory*/
  24.                                   /*   entry for this file.  File serial*/
  25.                                   /*   no + device ID uniquely identify */
  26.                                   /*   the file within the system */
  27.   unsigned short  st_ino;         /* File serial number */
  28.   unsigned short  st_mode;        /* File mode; see #define's below */
  29.   short           st_nlink;       /* Number of links */
  30.   short           st_uid;         /* User ID of the file's owner */
  31.   short           st_gid;         /* Group ID of the file's group */
  32.   short           st_rdev;        /* ID of device */
  33.                                   /*   This entry is defined only for */
  34.                                   /*   character or block special files */
  35.   long            st_size;        /* File size in bytes */
  36.   long            st_atime;       /* Time of last access */
  37.   long            st_mtime;       /* Time of last data modification */
  38.   long            st_ctime;       /* Time of last file status change */
  39. #else
  40.   unsigned long   st_dev;         /* ID of device containing a directory*/
  41.                                   /*   entry for this file.  File serial*/
  42.                                   /*   no + device ID uniquely identify */
  43.                                   /*   the file within the system */
  44.   unsigned long   st_ino;         /* File serial number */
  45.   unsigned long   st_mode;        /* File mode; see #define's below */
  46.   short           st_nlink;       /* Number of links */
  47.   unsigned long   st_uid;         /* User ID of the file's owner */
  48.   unsigned long   st_gid;         /* Group ID of the file's group */
  49.   unsigned long   st_rdev;        /* ID of device */
  50.                                   /*   This entry is defined only for */
  51.                                   /*   character or block special files */
  52.   long            st_size;        /* File size in bytes */
  53.   long            st_atime;       /* Time of last access */
  54.   long            st_spare1;
  55.   long            st_mtime;       /* Time of last data modification */
  56.   long            st_spare2;
  57.   long            st_ctime;       /* Time of last file status change */
  58.   long            st_spare3;
  59.                                   /* Time measured in seconds since */
  60.                                   /*   00:00:00 GMT, Jan. 1, 1970 */
  61.   unsigned long   st_blksize;     /* Optimal blocksize for file system
  62.                                      i/o ops */
  63.   unsigned long   st_blocks;      /* Actual number of blocks allocated
  64.                                      in DEV_BSIZE blocks */
  65.   unsigned long   st_vfstype;     /* Type of fs (see vnode.h) */
  66.   unsigned long   st_vfs;         /* Vfs number */
  67.   unsigned long   st_type;        /* Vnode type */
  68. #endif
  69. } sompstat ;
  70.  
  71. #endif
  72.