2.9
[glibc/nacl-glibc.git] / sysdeps / unix / sysv / linux / powerpc / aix / aix-stat.h
blobdc5ad5f73167b50ce1944820389a0e05d9cbe9c5
1 /* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 struct aixstat
21 aixdev_t st_dev;
22 aixino_t st_ino;
23 aixmode_t st_mode;
24 aixnlink_t st_nlink;
25 unsigned short int st_flag;
26 aixuid_t st_uid;
27 aixgid_t st_gid;
28 aixdev_t st_rdev;
29 aixoff_t st_size;
30 aixtime_t st_atime;
31 unsigned long int __unused1;
32 aixtime_t st_mtime;
33 unsigned long int __unused2;
34 aixtime_t st_ctime;
35 unsigned long int __unused3;
36 aixblksize_t st_blksize;
37 aixblkcnt_t st_blocks;
38 int st_vfstype;
39 unsigned int st_vfs;
40 unsigned int st_type;
41 unsigned int st_gen;
43 #define _STATBUF_RESERVED_SPACE 9
44 unsigned int st_reserved[_STATBUF_RESERVED_SPACE];
47 struct aixstat64
49 aixdev_t st_dev;
50 aixino64_t st_ino;
51 aixmode_t st_mode;
52 aixnlink_t st_nlink;
53 unsigned short int st_flag;
54 aixuid_t st_uid;
55 aixgid_t st_gid;
56 aixdev_t st_rdev;
57 int st_ssize;
58 aixtime_t st_atime;
59 unsigned long int __unused1;
60 aixtime_t st_mtime;
61 unsigned long int __unused2;
62 aixtime_t st_ctime;
63 unsigned long int __unused3;
64 aixblksize_t st_blksize;
65 aixblkcnt64_t st_blocks;
66 int st_vfstype;
67 unsigned int st_vfs;
68 unsigned int st_type;
69 unsigned int st_gen;
70 unsigned int st_reserved[_STATBUF_RESERVED_SPACE];
71 unsigned int st_padto_ll;
72 aixoff64_t st_size;
75 #define aix_major(x) (int) ((unsigned int) (x) >> 16)
76 #define aix_minor(x) (int) ((x) & 0xFFFF)