Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/cmd/tests/sfio/sftest.h
1810 views
1
/***********************************************************************
2
* *
3
* This software is part of the ast package *
4
* Copyright (c) 1999-2011 AT&T Intellectual Property *
5
* and is licensed under the *
6
* Eclipse Public License, Version 1.0 *
7
* by AT&T Intellectual Property *
8
* *
9
* A copy of the License is available at *
10
* http://www.eclipse.org/org/documents/epl-v10.html *
11
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12
* *
13
* Information and Software Systems Research *
14
* AT&T Research *
15
* Florham Park NJ *
16
* *
17
* Glenn Fowler <[email protected]> *
18
* *
19
***********************************************************************/
20
#include "FEATURE/sfio"
21
22
#if !_PACKAGE_ast
23
#ifdef __STDC__
24
#include <stdarg.h>
25
#else
26
#include <varargs.h>
27
#endif
28
#endif
29
30
#if _SFIO_H_ONLY
31
#include <sfio.h>
32
#else
33
#include <sfio_t.h>
34
#endif
35
36
#if _PACKAGE_ast
37
#include <ast.h>
38
#endif
39
40
#if _hdr_unistd
41
#include <unistd.h>
42
#endif
43
44
#include <errno.h>
45
46
#include "terror.h"
47
48
#ifndef EINTR
49
#define EINTR 4
50
#endif
51
#ifndef EBADF
52
#define EBADF 9
53
#endif
54
#ifndef EAGAIN
55
#define EAGAIN 11
56
#endif
57
#ifndef ENOMEM
58
#define ENOMEM 12
59
#endif
60
#ifndef ESPIPE
61
#define ESPIPE 29
62
#endif
63
64
#if _hdr_math
65
#include <math.h>
66
#endif
67
68
#if _hdr_float
69
#include <float.h>
70
#endif
71
72