| 1 |
/**************************************************************************/ |
| 2 |
/* */ |
| 3 |
/* This file is part of Frama-C. */ |
| 4 |
/* */ |
| 5 |
/* Copyright (C) 2007-2022 */ |
| 6 |
/* CEA (Commissariat à l'énergie atomique et aux énergies */ |
| 7 |
/* alternatives) */ |
| 8 |
/* */ |
| 9 |
/* you can redistribute it and/or modify it under the terms of the GNU */ |
| 10 |
/* Lesser General Public License as published by the Free Software */ |
| 11 |
/* Foundation, version 2.1. */ |
| 12 |
/* */ |
| 13 |
/* It is distributed in the hope that it will be useful, */ |
| 14 |
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
| 15 |
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
| 16 |
/* GNU Lesser General Public License for more details. */ |
| 17 |
/* */ |
| 18 |
/* See the GNU Lesser General Public License version 2.1 */ |
| 19 |
/* for more details (enclosed in the file licenses/LGPLv2.1). */ |
| 20 |
/* */ |
| 21 |
/**************************************************************************/ |
| 22 |
|
| 23 |
#ifndef __FC_DEFINE_STAT_H |
| 24 |
#define __FC_DEFINE_STAT_H |
| 25 |
#include "features.h" |
| 26 |
__PUSH_FC_STDLIB |
| 27 |
|
| 28 |
|
| 29 |
#include "__fc_define_ino_t.h" |
| 30 |
#include "__fc_define_uid_and_gid.h" |
| 31 |
#include "__fc_define_time_t.h" |
| 32 |
#include "__fc_define_blkcnt_t.h" |
| 33 |
#include "__fc_define_blksize_t.h" |
| 34 |
#include "__fc_define_dev_t.h" |
| 35 |
#include "__fc_define_mode_t.h" |
| 36 |
#include "__fc_define_nlink_t.h" |
| 37 |
#include "__fc_define_off_t.h" |
| 38 |
|
| 39 |
#define __statfs_word unsigned int |
| 40 |
|
| 41 |
__BEGIN_DECLS |
| 42 |
|
| 43 |
struct statfs { |
| 44 |
__statfs_word f_type; |
| 45 |
__statfs_word f_bsize; |
| 46 |
__statfs_word f_blocks; |
| 47 |
__statfs_word f_bfree; |
| 48 |
__statfs_word f_bavail; |
| 49 |
__statfs_word f_files; |
| 50 |
__statfs_word f_ffree; |
| 51 |
__statfs_word f_fsid; |
| 52 |
__statfs_word f_namelen; |
| 53 |
__statfs_word f_frsize; |
| 54 |
__statfs_word f_flags; |
| 55 |
__statfs_word f_spare[4]; |
| 56 |
}; |
| 57 |
|
| 58 |
struct stat { |
| 59 |
dev_t st_dev; |
| 60 |
ino_t st_ino; |
| 61 |
mode_t st_mode; |
| 62 |
nlink_t st_nlink; |
| 63 |
uid_t st_uid; |
| 64 |
gid_t st_gid; |
| 65 |
dev_t st_rdev; |
| 66 |
off_t st_size; |
| 67 |
time_t st_atime; |
| 68 |
time_t st_mtime; |
| 69 |
time_t st_ctime; |
| 70 |
blksize_t st_blksize; |
| 71 |
blkcnt_t st_blocks; |
| 72 |
}; |
| 73 |
|
| 74 |
__END_DECLS |
| 75 |
|
| 76 |
__POP_FC_STDLIB |
| 77 |
#endif |