File: hif.h

package info (click to toggle)
pm3 1.1.13-11
  • links: PTS
  • area: main
  • in suites: potato
  • size: 174,164 kB
  • ctags: 133,819
  • sloc: ansic: 982,617; modula3: 548,483; cpp: 57,119; exp: 21,673; sh: 17,053; lisp: 13,693; makefile: 13,492; asm: 11,795; yacc: 8,575; sed: 1,100; objc: 476; csh: 254; awk: 223; pascal: 95; fortran: 5
file content (180 lines) | stat: -rw-r--r-- 5,275 bytes parent folder | download | duplicates (8)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/* @(#)hif.h	5.19 93/10/26 11:33:44, Srini, AMD */
/******************************************************************************
 * Copyright 1991 Advanced Micro Devices, Inc.
 *
 * This software is the property of Advanced Micro Devices, Inc  (AMD)  which
 * specifically  grants the user the right to modify, use and distribute this
 * software provided this notice is not removed or altered.  All other rights
 * are reserved by AMD.
 *
 * AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
 * SOFTWARE.  IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
 * DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
 * USE OF THIS SOFTWARE.
 *
 * So that all may benefit from your experience, please report  any  problems
 * or  suggestions about this software to the 29K Technical Support Center at
 * 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131  in  the  UK,  or
 * 0031-11-1129 in Japan, toll free.  The direct dial number is 512-462-4118.
 *
 * Advanced Micro Devices, Inc.
 * 29K Support Products
 * Mail Stop 573
 * 5900 E. Ben White Blvd.
 * Austin, TX 78741
 * 800-292-9263
 *****************************************************************************
 *      Engineer: Srini Subramanian.
 *****************************************************************************
 * This header file defines the error codes, service numbers for the HIF
 * kernel.
 *****************************************************************************
 */

#ifndef	_HIF_H_INCLUDED_
#define	_HIF_H_INCLUDED_

#define MAX_ENV               256
#define MAX_FILENAME          256

#define MAX_OPEN_FILES         20

#define HIF_SUCCESS    0x80000000

/*
** HIF services
*/

#define HIF_exit            1
#define HIF_open           17
#define HIF_close          18
#define HIF_read           19
#define HIF_write          20
#define HIF_lseek          21
#define HIF_remove         22
#define HIF_rename         23
#define HIF_ioctl          24
#define HIF_iowait         25
#define HIF_iostat         26
#define HIF_tmpnam         33
#define HIF_time           49
#define HIF_getenv         65
#define HIF_gettz          66


/*
** HIF Error codes
*/

#define HIF_EPERM               1
#define HIF_ENOENT              2
#define HIF_ESRCH               3
#define HIF_EINTR               4
#define HIF_EIO                 5
#define HIF_ENXIO               6
#define HIF_E2BIG               7
#define HIF_ENOEXEC             8
#define HIF_EBADF               9
#define HIF_ECHILD             10
#define HIF_EAGAIN             11
#define HIF_ENOMEM             12
#define HIF_EACCESS            13
#define HIF_EFAULT             14
#define HIF_ENOTBLK            15
#define HIF_EBUSY              16
#define HIF_EEXIST             17
#define HIF_EXDEV              18
#define HIF_ENODEV             19
#define HIF_ENOTDIR            20
#define HIF_EISDIR             21
#define HIF_EINVAL             22
#define HIF_ENFILE             23
#define HIF_EMFILE             24
#define HIF_ENOTTY             25
#define HIF_ETXTBSY            26
#define HIF_EFBIG              27
#define HIF_ENOSPC             28
#define HIF_ESPIPE             29
#define HIF_EROFS              30
#define HIF_EMLINK             31
#define HIF_EPIPE              32
#define HIF_EDOM               33
#define HIF_ERANGE             34
#define HIF_EWOULDBLOCK        35
#define HIF_EINPROGRESS        36
#define HIF_EALREADY           37
#define HIF_ENOTSOCK           38
#define HIF_EDESTADDRREQ       39
#define HIF_EMSGSIZE           40
#define HIF_EPROTOTYPE         41
#define HIF_ENOPROTOOPT        42
#define HIF_EPROTONOSUPPORT    43
#define HIF_ESOCKTNOSUPPORT    44
#define HIF_EOPNOTSUPP         45
#define HIF_EPFNOSUPPORT       46
#define HIF_EAFNOSUPPORT       47
#define HIF_EADDRINUSE         48
#define HIF_EADDRNOTAVAIL      49
#define HIF_ENETDOWN           50
#define HIF_ENETUNREACH        51
#define HIF_ENETRESET          52
#define HIF_ECONNABORTED       53
#define HIF_ECONNRESET         54
#define HIF_ENOBUFS            55
#define HIF_EISCONN            56
#define HIF_ENOTCONN           57
#define HIF_ESHUTDOWN          58
#define HIF_ETOOMANYREFS       59
#define HIF_ETIMEDOUT          60
#define HIF_ECONNREFUSED       61
#define HIF_ELOOP              62
#define HIF_ENAMETOOLONG       63
#define HIF_EHOSTDOWN          64
#define HIF_EHOSTUNREACH       65
#define HIF_ENOTEMPTY          66
#define HIF_EPROCLIM           67
#define HIF_EUSERS             68
#define HIF_EDQUOT             69
#define HIF_EVDBAD             70
#define HIF_EHIFNOTAVAIL     1001
#define HIF_EHIFUNDEF        1002

/*
** Open service mode parameters
*/

#define HIF_RDONLY     0x0000
#define HIF_WRONLY     0x0001
#define HIF_RDWR       0x0002
#define HIF_APPEND     0x0008
#define HIF_NDELAY     0x0010
#define HIF_CREAT      0x0200
#define HIF_TRUNC      0x0400
#define HIF_EXCL       0x0800
#define HIF_FORM       0x4000

/*
** iostat definitions
*/

#define ISATTY         0x0001
#define RDREADY        0x0002


/*
** Fix differences between BSD UNIX and MS-DOS in <fcntl.h>
*/

#if MSDOS

#define O_NDELAY       0x0000

#else

#define O_BINARY       0x0000
#define O_TEXT         0x0000

#endif


#endif /* _HIF_H_INCLUDED_ */