Changeset 3878:1d8fae9d2c56 in roaraudio for include/libroar/vio_ctl.h


Ignore:
Timestamp:
05/21/10 11:06:32 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

prepair for an fstat VIO ctl call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio_ctl.h

    r3852 r3878  
    8080#define ROAR_VIO_CTL_SYSIO_IOCTL         (ROAR_VIO_CTL_GENERIC|ROAR_VIO_CTL_SET|0x0180) /* ioctl(), */ 
    8181                                                                                        /* struct roar_vio_sysio_ioctl* */ 
     82#define ROAR_VIO_CTL_FSTAT               (ROAR_VIO_CTL_GENERIC|ROAR_VIO_CTL_GET|0x0184) /* fstat() */ 
    8283 
    8384// get or set data format used for read and write calls, see below 
     
    143144}; 
    144145 
     146#if 0 
     147          struct stat { 
     148              dev_t     st_dev;     /* ID of device containing file */ 
     149              ino_t     st_ino;     /* inode number */ 
     150            X mode_t    st_mode;    /* protection */ 
     151            X nlink_t   st_nlink;   /* number of hard links */ 
     152            X uid_t     st_uid;     /* user ID of owner */ 
     153            X gid_t     st_gid;     /* group ID of owner */ 
     154              dev_t     st_rdev;    /* device ID (if special file) */ 
     155            X off_t     st_size;    /* total size, in bytes */ 
     156            X blksize_t st_blksize; /* blocksize for filesystem I/O */ 
     157            X blkcnt_t  st_blocks;  /* number of blocks allocated */ 
     158              time_t    st_atime;   /* time of last access */ 
     159              time_t    st_mtime;   /* time of last modification */ 
     160              time_t    st_ctime;   /* time of last status change */ 
     161          }; 
     162#endif 
     163 
     164struct roar_vio_stat { 
     165 mode_t mode; 
     166 size_t linkc; 
     167 uid_t  uid; 
     168 gid_t  gid; 
     169 size_t size; 
     170 size_t blksize; 
     171 size_t blocks; 
     172}; 
     173 
    145174#endif 
    146175 
Note: See TracChangeset for help on using the changeset viewer.