| 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_SYS_TYPES_H__ |
| 24 |
#define __FC_SYS_TYPES_H__ |
| 25 |
#include "../features.h" |
| 26 |
__PUSH_FC_STDLIB |
| 27 |
__BEGIN_DECLS |
| 28 |
|
| 29 |
#include "../__fc_machdep.h" |
| 30 |
#include "../__fc_define_id_t.h" |
| 31 |
#include "../__fc_define_pid_t.h" |
| 32 |
#include "../__fc_define_size_t.h" |
| 33 |
#include "../__fc_define_ssize_t.h" |
| 34 |
#include "../__fc_define_uid_and_gid.h" |
| 35 |
#include "../__fc_define_time_t.h" |
| 36 |
#include "../__fc_define_suseconds_t.h" |
| 37 |
#include "../__fc_define_ino_t.h" |
| 38 |
#include "../__fc_define_blkcnt_t.h" |
| 39 |
#include "../__fc_define_blksize_t.h" |
| 40 |
#include "../__fc_define_dev_t.h" |
| 41 |
#include "../__fc_define_mode_t.h" |
| 42 |
#include "../__fc_define_nlink_t.h" |
| 43 |
#include "../__fc_define_off_t.h" |
| 44 |
#include "../__fc_define_pthread_types.h" |
| 45 |
#include "../__fc_define_key_t.h" |
| 46 |
|
| 47 |
#ifndef __u_char_defined |
| 48 |
typedef unsigned long u_long; |
| 49 |
typedef unsigned int u_int; |
| 50 |
typedef unsigned short u_short; |
| 51 |
typedef unsigned char u_char; |
| 52 |
|
| 53 |
// The macros below are non-POSIX; the definitions below should allow |
| 54 |
// parsing coreutils. |
| 55 |
# define major(dev) (((dev) >> 8) & 0xff) |
| 56 |
# define minor(dev) ((dev) & 0xff) |
| 57 |
# define makedev(maj, min) (((maj) << 8) | (min)) |
| 58 |
|
| 59 |
#define __u_char_defined |
| 60 |
#endif |
| 61 |
|
| 62 |
__END_DECLS |
| 63 |
__POP_FC_STDLIB |
| 64 |
#endif |