/usr/share/frama-c/machine.h is in frama-c-base 20111001+nitrogen+dfsg-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | /**************************************************************************/
/* */
/* This file is part of Frama-C. */
/* */
/* Copyright (C) 2007-2011 */
/* CEA (Commissariat à l'énergie atomique et aux énergies */
/* alternatives) */
/* */
/* you can redistribute it and/or modify it under the terms of the GNU */
/* Lesser General Public License as published by the Free Software */
/* Foundation, version 2.1. */
/* */
/* It is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU Lesser General Public License for more details. */
/* */
/* See the GNU Lesser General Public License version 2.1 */
/* for more details (enclosed in the file licenses/LGPLv2.1). */
/* */
/**************************************************************************/
/* $Id: machine.h,v 1.5 2008-07-01 12:02:37 uid562 Exp $ */
#ifdef FRAMA_C_LYNX
typedef unsigned int size_t;
typedef int ssize_t;
typedef void FILE;
typedef long time_t;
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
typedef struct fsynch {
int w_count;
int mut_owner;
unsigned int id;
int owncnt;
} fsynch_struct;
typedef struct __iobuf {
char *_ptr;
int _cnt;
char *_base;
short _flag;
char _nobuf; /* One-character buffer used for _UNBUF */
char _unused;
int _fd;
long _mark; /* position relative to start of file of _base */
int _bufsize; /* buffer size for this file */
fsynch_struct lock; /* Guards against concurrent access */
} FILE;
#else
// This is the default for regression tests
typedef unsigned long int size_t;
typedef long int ssize_t;
//typedef FILE;
typedef long time_t;
#ifdef FRAMA_CXX
struct tm;
struct FRAMA_C_IO_FILE;
#else
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
struct FRAMA_C_IO_FILE { char *content; };
#endif
typedef struct FRAMA_C_IO_FILE FILE;
#endif
|