This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aix-power.h
109 lines (98 loc) · 3.17 KB
/
aix-power.h
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
/*
* aix-power.h
* Copyright 2008 Ramon de Carvalho Valle <[email protected]>
*
* This library is free software; 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; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef AIX_POWER_H
#define AIX_POWER_H
#define __CAL 2047
#if defined(AIX614)
#define __NR_execve = 7
#define __NR_getpeername = 211
#define __NR_accept = 237
#define __NR_listen = 240
#define __NR_bind = 242
#define __NR_socket = 243
#define __NR_connect = 244
#define __NR_close = 278
#define __NR_kfcntl = 658
#endif
#if defined(AIX613)
#define __NR_execve = 7
#define __NR_getpeername = 205
#define __NR_accept = 232
#define __NR_listen = 235
#define __NR_bind = 237
#define __NR_socket = 238
#define __NR_connect = 239
#define __NR_close = 272
#define __NR_kfcntl = 644
#endif
#if defined(AIX612)
#define __NR_execve = 7
#define __NR_getpeername = 205
#define __NR_accept = 232
#define __NR_listen = 235
#define __NR_bind = 237
#define __NR_socket = 238
#define __NR_connect = 239
#define __NR_close = 272
#define __NR_kfcntl = 635
#endif
#if defined(AIX611)
#define __NR_execve = 7
#define __NR_getpeername = 202
#define __NR_accept = 229
#define __NR_listen = 232
#define __NR_bind = 234
#define __NR_socket = 235
#define __NR_connect = 236
#define __NR_close = 269
#define __NR_kfcntl = 614
#endif
#if defined(AIX610)
#define __NR_execve = 6
#define __NR_getpeername = 203
#define __NR_accept = 229
#define __NR_listen = 232
#define __NR_bind = 234
#define __NR_socket = 235
#define __NR_connect = 236
#define __NR_close = 269
#define __NR_kfcntl = 617
#endif
#if defined(AIX5310) || defined(AIX539) || defined(AIX538) || defined(AIX537)
#define __NR_execve = 6
#define __NR_getpeername = 198
#define __NR_accept = 214
#define __NR_listen = 215
#define __NR_bind = 216
#define __NR_socket = 217
#define __NR_connect = 218
#define __NR_close = 245
#define __NR_kfcntl = 493
#endif
#define __NC_execve -(__CAL - __NR_execve)
#define __NC_getpeername -(__CAL - __NR_getpeername)
#define __NC_accept -(__CAL - __NR_accept)
#define __NC_listen -(__CAL - __NR_listen)
#define __NC_bind -(__CAL - __NR_bind)
#define __NC_socket -(__CAL - __NR_socket)
#define __NC_connect -(__CAL - __NR_connect)
#define __NC_close -(__CAL - __NR_close)
#define __NC_kfcntl -(__CAL - __NR_kfcntl)
#endif