1
/**************************************************************************/
3
/* This file is part of Frama-C. */
5
/* Copyright (C) 2007-2008 */
6
/* INRIA (Institut National de Recherche en Informatique et en */
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. */
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. */
18
/* See the GNU Lesser General Public License version 2.1 */
19
/* for more details (enclosed in the file licenses/LGPLv2.1). */
20
/**************************************************************************/
22
/* $Id: unistd.h,v 1.4 2008/11/24 10:29:18 uid570 Exp $ */
27
extern char *FRAMA_C_STRING_OR_NULL optarg;
28
extern int optind, opterr, optopt;
30
/*@ assigns optarg, optind, opterr, optopt;
31
@ ensures \result == -1 || valid_string(optarg);
33
extern int getopt (int argc, char *FRAMA_C_STRING const argv[],
34
const char *FRAMA_C_STRING_OR_NULL optstring);
37
@ ensures -1 <= \result <= 0;
39
extern int chdir(const char *FRAMA_C_STRING path);
41
/*@ requires \valid_range(buf,0,size-1);
42
@ assigns buf[0..size-1];
43
@ ensures \result == NULL || \result == buf;
45
extern char *getcwd(char *buf, size_t size);
47
#endif /* _UNISTD_H_ */