home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Online / Samba / source / amiga / wrapper / stat.h < prev    next >
C/C++ Source or Header  |  2000-05-22  |  2KB  |  67 lines

  1. #ifndef _WRAPPER_STAT_H
  2. #define _WRAPPER_STAT_H
  3.  
  4. /*
  5.  * $Id: stat.h 1.2 2000/05/22 19:09:30 olsen Exp olsen $
  6.  *
  7.  * :ts=4
  8.  *
  9.  * AmigaOS wrapper routines for Samba 2.0.0, using the AmiTCP V4 API
  10.  * and the SAS/C V6.58 compiler.
  11.  *
  12.  * Copyright (C) 1999-2000 by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  13.  *
  14.  * This program is free software; you can redistribute it and/or modify
  15.  * it under the terms of the GNU General Public License as published by
  16.  * the Free Software Foundation; either version 2 of the License, or
  17.  * (at your option) any later version.
  18.  * 
  19.  * This program is distributed in the hope that it will be useful,
  20.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22.  * GNU General Public License for more details.
  23.  * 
  24.  * You should have received a copy of the GNU General Public License
  25.  * along with this program; if not, write to the Free Software
  26.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  27.  */
  28.  
  29. /****************************************************************************/
  30.  
  31. #include <sys/types.h>
  32. #include <sys/commifmt.h>
  33. #include <time.h>
  34.  
  35. struct stat
  36. {
  37.     dev_t    st_dev;        /* inode's device */
  38.     ino_t    st_ino;        /* inode's number */
  39.     mode_t    st_mode;    /* inode protection mode */
  40.     u_short    st_nlink;    /* number of hard links */
  41.     uid_t    st_uid;        /* user ID of the file's owner */
  42.     gid_t    st_gid;        /* group ID of the file's group */
  43.     u_long    st_rdev;    /* device type */
  44.     off_t    st_size;    /* file size, in bytes */
  45.     time_t    st_atime;    /* time of last access */
  46.     time_t    st_mtime;    /* time of last data modification */
  47.     time_t    st_ctime;    /* time of last file status change */
  48.     long    st_blksize;    /* optimal blocksize for I/O */
  49.     long    st_blocks;    /* blocks allocated for file */
  50. };
  51.  
  52. /****************************************************************************/
  53.  
  54. struct statfs
  55. {
  56.     long f_fsize;        /* fundamental file system block size */
  57.     long f_bsize;        /* optimal transfer block size */
  58.     long f_blocks;        /* total data blocks in file system */
  59.     long f_bfree;        /* free blocks in fs */
  60.     long f_bavail;        /* free blocks avail to non-superuser */
  61.     long f_spare[9];    /* spare for later */
  62. };
  63.  
  64. /****************************************************************************/
  65.  
  66. #endif /* _WRAPPER_STAT_H */
  67.