Back to index

glibc  2.9
aix-stat.h
Go to the documentation of this file.
00001 /* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 struct aixstat
00020   {
00021     aixdev_t st_dev;
00022     aixino_t st_ino;
00023     aixmode_t st_mode;
00024     aixnlink_t st_nlink;
00025     unsigned short int st_flag;
00026     aixuid_t st_uid;
00027     aixgid_t st_gid;
00028     aixdev_t st_rdev;
00029     aixoff_t st_size;
00030     aixtime_t st_atime;
00031     unsigned long int __unused1;
00032     aixtime_t st_mtime;
00033     unsigned long int __unused2;
00034     aixtime_t st_ctime;
00035     unsigned long int __unused3;
00036     aixblksize_t st_blksize;
00037     aixblkcnt_t st_blocks;
00038     int st_vfstype;
00039     unsigned int st_vfs;
00040     unsigned int st_type;
00041     unsigned int st_gen;
00042 
00043 #define _STATBUF_RESERVED_SPACE 9
00044     unsigned int st_reserved[_STATBUF_RESERVED_SPACE];
00045   };
00046 
00047 struct aixstat64
00048   {
00049     aixdev_t st_dev;
00050     aixino64_t st_ino;
00051     aixmode_t st_mode;
00052     aixnlink_t st_nlink;
00053     unsigned short int st_flag;
00054     aixuid_t st_uid;
00055     aixgid_t st_gid;
00056     aixdev_t st_rdev;
00057     int st_ssize;
00058     aixtime_t st_atime;
00059     unsigned long int __unused1;
00060     aixtime_t st_mtime;
00061     unsigned long int __unused2;
00062     aixtime_t st_ctime;
00063     unsigned long int __unused3;
00064     aixblksize_t st_blksize;
00065     aixblkcnt64_t st_blocks;
00066     int st_vfstype;
00067     unsigned int st_vfs;
00068     unsigned int st_type;
00069     unsigned int st_gen;
00070     unsigned int st_reserved[_STATBUF_RESERVED_SPACE];
00071     unsigned int st_padto_ll;
00072     aixoff64_t st_size;
00073   };
00074 
00075 #define aix_major(x) (int) ((unsigned int) (x) >> 16)
00076 #define aix_minor(x) (int) ((x) & 0xFFFF)