| 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 |
// This file includes all compatible libc/POSIX/BSD headers known by the |
| 24 |
// Frama-C standard library. It is used by some Frama-C scripts. |
| 25 |
|
| 26 |
#define _XOPEN_SOURCE 600 |
| 27 |
#define _POSIX_C_SOURCE 200112L |
| 28 |
#define _GNU_SOURCE 1 |
| 29 |
|
| 30 |
#include "aio.h" |
| 31 |
#include "alloca.h" |
| 32 |
#include "argz.h" |
| 33 |
#include "arpa/inet.h" |
| 34 |
#include "assert.h" |
| 35 |
#include "byteswap.h" |
| 36 |
//#include "complex.h" |
| 37 |
#include "cpio.h" |
| 38 |
#include "ctype.h" |
| 39 |
#include "dirent.h" |
| 40 |
#include "dlfcn.h" |
| 41 |
#include "endian.h" |
| 42 |
#include "err.h" |
| 43 |
#include "errno.h" |
| 44 |
#include "fcntl.h" |
| 45 |
#include "features.h" |
| 46 |
#include "fenv.h" |
| 47 |
#include "float.h" |
| 48 |
#include "fmtmsg.h" |
| 49 |
#include "fnmatch.h" |
| 50 |
#include "ftw.h" |
| 51 |
#include "getopt.h" |
| 52 |
#include "glob.h" |
| 53 |
#include "grp.h" |
| 54 |
#include "iconv.h" |
| 55 |
#include "ifaddrs.h" |
| 56 |
#include "inttypes.h" |
| 57 |
#include "iso646.h" |
| 58 |
#include "langinfo.h" |
| 59 |
#include "libgen.h" |
| 60 |
#include "limits.h" |
| 61 |
#include "locale.h" |
| 62 |
#include "malloc.h" |
| 63 |
#include "math.h" |
| 64 |
#include "memory.h" |
| 65 |
#include "monetary.h" |
| 66 |
#include "mqueue.h" |
| 67 |
#include "ndbm.h" |
| 68 |
#include "netdb.h" |
| 69 |
#include "net/if.h" |
| 70 |
#include "netinet/in.h" |
| 71 |
#include "netinet/ip.h" |
| 72 |
#include "netinet/tcp.h" |
| 73 |
#include "nl_types.h" |
| 74 |
#include "poll.h" |
| 75 |
#include "pthread.h" |
| 76 |
#include "pwd.h" |
| 77 |
#include "regex.h" |
| 78 |
#include "resolv.h" |
| 79 |
#include "sched.h" |
| 80 |
#include "search.h" |
| 81 |
#include "semaphore.h" |
| 82 |
#include "setjmp.h" |
| 83 |
#include "signal.h" |
| 84 |
#include "spawn.h" |
| 85 |
#include "stdalign.h" |
| 86 |
#include "stdarg.h" |
| 87 |
#include "stdatomic.h" |
| 88 |
#include "stdbool.h" |
| 89 |
#include "stddef.h" |
| 90 |
#include "stdint.h" |
| 91 |
#include "stdio.h" |
| 92 |
#include "stdlib.h" |
| 93 |
#include "stdnoreturn.h" |
| 94 |
#include "string.h" |
| 95 |
#include "strings.h" |
| 96 |
#include "stropts.h" |
| 97 |
#include "sys/file.h" |
| 98 |
#include "sys/ioctl.h" |
| 99 |
#include "sys/ipc.h" |
| 100 |
#include "syslog.h" |
| 101 |
#include "sys/mman.h" |
| 102 |
#include "sys/msg.h" |
| 103 |
#include "sys/param.h" |
| 104 |
#include "sys/random.h" |
| 105 |
#include "sys/resource.h" |
| 106 |
#include "sys/select.h" |
| 107 |
#include "sys/sem.h" |
| 108 |
#include "sys/sendfile.h" |
| 109 |
#include "sys/shm.h" |
| 110 |
#include "sys/signal.h" |
| 111 |
#include "sys/socket.h" |
| 112 |
#include "sys/stat.h" |
| 113 |
#include "sys/statvfs.h" |
| 114 |
#include "sys/time.h" |
| 115 |
#include "sys/times.h" |
| 116 |
#include "sys/timex.h" |
| 117 |
#include "sys/types.h" |
| 118 |
#include "sys/uio.h" |
| 119 |
#include "sys/un.h" |
| 120 |
#include "sys/utsname.h" |
| 121 |
#include "sys/vfs.h" |
| 122 |
#include "sys/wait.h" |
| 123 |
#include "tar.h" |
| 124 |
#include "termios.h" |
| 125 |
//#include "tgmath.h" |
| 126 |
#include "time.h" |
| 127 |
#include "trace.h" |
| 128 |
#include "ulimit.h" |
| 129 |
#include "unistd.h" |
| 130 |
#include "utime.h" |
| 131 |
#include "utmp.h" |
| 132 |
#include "utmpx.h" |
| 133 |
#include "wait.h" |
| 134 |
#include "wchar.h" |
| 135 |
#include "wctype.h" |
| 136 |
#include "wordexp.h" |