home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Online / Samba / source / amiga_rcs / stat.h < prev    next >
C/C++ Source or Header  |  2000-08-17  |  3KB  |  121 lines

  1. head    1.2;
  2. access;
  3. symbols
  4.     V1_15:1.2
  5.     V1_12:1.1
  6.     V1_11:1.1
  7.     V1_10:1.1
  8.     V1_9:1.1
  9.     V1_8:1.1
  10.     V1_7:1.1
  11.     V1_6:1.1
  12.     V1_5:1.1
  13.     V1_4:1.1
  14.     V1_3:1.1
  15.     V1_2:1.1
  16.     V1_1:1.1;
  17. locks
  18.     olsen:1.2; strict;
  19. comment    @ * @;
  20.  
  21.  
  22. 1.2
  23. date    2000.05.22.19.09.30;    author olsen;    state Exp;
  24. branches;
  25. next    1.1;
  26.  
  27. 1.1
  28. date    99.02.09.08.25.05;    author olsen;    state Exp;
  29. branches;
  30. next    ;
  31.  
  32.  
  33. desc
  34. @.
  35. @
  36.  
  37.  
  38. 1.2
  39. log
  40. @.
  41. @
  42. text
  43. @#ifndef _WRAPPER_STAT_H
  44. #define _WRAPPER_STAT_H
  45.  
  46. /*
  47.  * $Id: stat.h 1.1 1999/02/09 08:25:05 olsen Exp olsen $
  48.  *
  49.  * :ts=4
  50.  *
  51.  * AmigaOS wrapper routines for Samba 2.0.0, using the AmiTCP V4 API
  52.  * and the SAS/C V6.58 compiler.
  53.  *
  54.  * Copyright (C) 1999-2000 by Olaf `Olsen' Barthel <olsen@@sourcery.han.de>
  55.  *
  56.  * This program is free software; you can redistribute it and/or modify
  57.  * it under the terms of the GNU General Public License as published by
  58.  * the Free Software Foundation; either version 2 of the License, or
  59.  * (at your option) any later version.
  60.  * 
  61.  * This program is distributed in the hope that it will be useful,
  62.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  63.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  64.  * GNU General Public License for more details.
  65.  * 
  66.  * You should have received a copy of the GNU General Public License
  67.  * along with this program; if not, write to the Free Software
  68.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  69.  */
  70.  
  71. /****************************************************************************/
  72.  
  73. #include <sys/types.h>
  74. #include <sys/commifmt.h>
  75. #include <time.h>
  76.  
  77. struct stat
  78. {
  79.     dev_t    st_dev;        /* inode's device */
  80.     ino_t    st_ino;        /* inode's number */
  81.     mode_t    st_mode;    /* inode protection mode */
  82.     u_short    st_nlink;    /* number of hard links */
  83.     uid_t    st_uid;        /* user ID of the file's owner */
  84.     gid_t    st_gid;        /* group ID of the file's group */
  85.     u_long    st_rdev;    /* device type */
  86.     off_t    st_size;    /* file size, in bytes */
  87.     time_t    st_atime;    /* time of last access */
  88.     time_t    st_mtime;    /* time of last data modification */
  89.     time_t    st_ctime;    /* time of last file status change */
  90.     long    st_blksize;    /* optimal blocksize for I/O */
  91.     long    st_blocks;    /* blocks allocated for file */
  92. };
  93.  
  94. /****************************************************************************/
  95.  
  96. struct statfs
  97. {
  98.     long f_fsize;        /* fundamental file system block size */
  99.     long f_bsize;        /* optimal transfer block size */
  100.     long f_blocks;        /* total data blocks in file system */
  101.     long f_bfree;        /* free blocks in fs */
  102.     long f_bavail;        /* free blocks avail to non-superuser */
  103.     long f_spare[9];    /* spare for later */
  104. };
  105.  
  106. /****************************************************************************/
  107.  
  108. #endif /* _WRAPPER_STAT_H */
  109. @
  110.  
  111.  
  112. 1.1
  113. log
  114. @.
  115. @
  116. text
  117. @d12 1
  118. a12 1
  119.  * Copyright (C) 1999 by Olaf `Olsen' Barthel <olsen@@sourcery.han.de>
  120. @
  121.