CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/unixasm/aix-power.h
Views: 11766
1
/*
2
* aix-power.h
3
* Copyright 2008 Ramon de Carvalho Valle <[email protected]>
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*
19
*/
20
21
#ifndef AIX_POWER_H
22
#define AIX_POWER_H
23
24
#define __CAL 2047
25
26
#if defined(AIX614)
27
#define __NR_execve = 7
28
#define __NR_getpeername = 211
29
#define __NR_accept = 237
30
#define __NR_listen = 240
31
#define __NR_bind = 242
32
#define __NR_socket = 243
33
#define __NR_connect = 244
34
#define __NR_close = 278
35
#define __NR_kfcntl = 658
36
#endif
37
38
#if defined(AIX613)
39
#define __NR_execve = 7
40
#define __NR_getpeername = 205
41
#define __NR_accept = 232
42
#define __NR_listen = 235
43
#define __NR_bind = 237
44
#define __NR_socket = 238
45
#define __NR_connect = 239
46
#define __NR_close = 272
47
#define __NR_kfcntl = 644
48
#endif
49
50
#if defined(AIX612)
51
#define __NR_execve = 7
52
#define __NR_getpeername = 205
53
#define __NR_accept = 232
54
#define __NR_listen = 235
55
#define __NR_bind = 237
56
#define __NR_socket = 238
57
#define __NR_connect = 239
58
#define __NR_close = 272
59
#define __NR_kfcntl = 635
60
#endif
61
62
#if defined(AIX611)
63
#define __NR_execve = 7
64
#define __NR_getpeername = 202
65
#define __NR_accept = 229
66
#define __NR_listen = 232
67
#define __NR_bind = 234
68
#define __NR_socket = 235
69
#define __NR_connect = 236
70
#define __NR_close = 269
71
#define __NR_kfcntl = 614
72
#endif
73
74
#if defined(AIX610)
75
#define __NR_execve = 6
76
#define __NR_getpeername = 203
77
#define __NR_accept = 229
78
#define __NR_listen = 232
79
#define __NR_bind = 234
80
#define __NR_socket = 235
81
#define __NR_connect = 236
82
#define __NR_close = 269
83
#define __NR_kfcntl = 617
84
#endif
85
86
#if defined(AIX5310) || defined(AIX539) || defined(AIX538) || defined(AIX537)
87
#define __NR_execve = 6
88
#define __NR_getpeername = 198
89
#define __NR_accept = 214
90
#define __NR_listen = 215
91
#define __NR_bind = 216
92
#define __NR_socket = 217
93
#define __NR_connect = 218
94
#define __NR_close = 245
95
#define __NR_kfcntl = 493
96
#endif
97
98
#define __NC_execve -(__CAL - __NR_execve)
99
#define __NC_getpeername -(__CAL - __NR_getpeername)
100
#define __NC_accept -(__CAL - __NR_accept)
101
#define __NC_listen -(__CAL - __NR_listen)
102
#define __NC_bind -(__CAL - __NR_bind)
103
#define __NC_socket -(__CAL - __NR_socket)
104
#define __NC_connect -(__CAL - __NR_connect)
105
#define __NC_close -(__CAL - __NR_close)
106
#define __NC_kfcntl -(__CAL - __NR_kfcntl)
107
108
#endif
109
110
111