Linux host2.healingcodesinfo.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Apache
Server IP : 69.167.168.125 & Your IP : 216.73.216.208
Domains : 126 Domain
User : christia
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
Delete
Unzip
Name
Size
Permission
Date
Action
GL
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
X11
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
apache2
[ DIR ]
drwxr-xr-x
2026-03-19 21:41
arpa
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
asm
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
asm-generic
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
bind9
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
bits
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
c++
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
db4.7.25
[ DIR ]
drwxr-xr-x
2021-01-13 19:36
drm
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
e2p
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
et
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
ext2fs
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
fontconfig
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
freetype2
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
gdbm
[ DIR ]
drwxr-xr-x
2021-01-13 19:42
gnu
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
gssapi
[ DIR ]
drwxr-xr-x
2022-12-01 22:41
gssrpc
[ DIR ]
drwxr-xr-x
2022-12-01 22:41
kadm5
[ DIR ]
drwxr-xr-x
2022-12-01 22:41
krb5
[ DIR ]
drwxr-xr-x
2022-12-01 22:41
libdb
[ DIR ]
drwxr-xr-x
2021-01-13 19:42
libexslt
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
libltdl
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
libpng15
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
libxml2
[ DIR ]
drwxr-xr-x
2021-10-21 16:15
libxslt
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
linux
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
lzma
[ DIR ]
drwxr-xr-x
2022-06-16 21:41
misc
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
mtd
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
mysql
[ DIR ]
drwxr-xr-x
2023-10-24 21:41
ncurses
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
ncursesw
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
net
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netash
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netatalk
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netax25
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
neteconet
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netinet
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netipx
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netiucv
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netpacket
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netpbm
[ DIR ]
drwxr-xr-x
2021-01-13 19:45
netrom
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netrose
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
nfs
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
openssl
[ DIR ]
drwxr-xr-x
2023-03-22 21:41
protocols
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
python2.7
[ DIR ]
drwxr-xr-x
2024-04-03 21:42
python3.6m
[ DIR ]
drwxr-xr-x
2024-04-03 21:41
quota
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
rdma
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
rpc
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
rpcsvc
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
sasl
[ DIR ]
drwxr-xr-x
2022-02-25 22:41
scsi
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
security
[ DIR ]
drwxr-xr-x
2021-01-13 19:36
selinux
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
sepol
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
sound
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
sys
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
uapi
[ DIR ]
drwxr-xr-x
2024-06-04 14:55
uuid
[ DIR ]
drwxr-xr-x
2021-02-04 22:41
video
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
xcb
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
xen
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
FlexLexer.h
6.07
KB
-rw-r--r--
2018-10-30 20:30
_G_config.h
1.26
KB
-rw-r--r--
2024-06-04 14:43
a.out.h
4.25
KB
-rw-r--r--
2024-06-04 14:43
aio.h
7.27
KB
-rw-r--r--
2024-06-04 14:43
aliases.h
2
KB
-rw-r--r--
2024-06-04 14:43
alloca.h
1.19
KB
-rw-r--r--
2024-06-04 14:43
ar.h
1.68
KB
-rw-r--r--
2024-06-04 14:43
argp.h
24.75
KB
-rw-r--r--
2024-06-04 14:43
argz.h
6.96
KB
-rw-r--r--
2024-06-04 14:43
assert.h
3.52
KB
-rw-r--r--
2024-06-04 14:43
autosprintf.h
2.33
KB
-rw-r--r--
2020-04-01 02:42
byteswap.h
1.41
KB
-rw-r--r--
2024-06-04 14:43
com_err.h
2.07
KB
-rw-r--r--
2012-07-06 13:37
complex.h
3.62
KB
-rw-r--r--
2024-06-04 14:43
cpio.h
2.21
KB
-rw-r--r--
2024-06-04 14:43
cpufreq.h
5.8
KB
-rw-r--r--
2024-06-04 14:55
crypt.h
2.22
KB
-rw-r--r--
2024-06-04 14:43
ctype.h
11.52
KB
-rw-r--r--
2024-06-04 14:43
curses.h
93.19
KB
-rw-r--r--
2017-09-06 22:08
cursesapp.h
6.62
KB
-rw-r--r--
2017-09-06 22:08
cursesf.h
27.05
KB
-rw-r--r--
2017-09-06 22:08
cursesm.h
19.09
KB
-rw-r--r--
2017-09-06 22:08
cursesp.h
8.3
KB
-rw-r--r--
2017-09-06 22:08
cursesw.h
48.24
KB
-rw-r--r--
2017-09-06 22:08
cursslk.h
7.13
KB
-rw-r--r--
2017-09-06 22:08
db.h
120.21
KB
-r--r--r--
2019-08-09 00:16
db_185.h
5.84
KB
-r--r--r--
2019-08-09 00:16
dbm.h
1.37
KB
-rw-r--r--
2014-06-09 21:39
dirent.h
12.34
KB
-rw-r--r--
2024-06-04 14:43
dlfcn.h
6.88
KB
-rw-r--r--
2024-06-04 14:43
elf.h
141.01
KB
-rw-r--r--
2024-06-04 14:43
endian.h
2.95
KB
-rw-r--r--
2024-06-04 14:43
entities.h
4.56
KB
-rw-r--r--
2007-03-31 17:24
envz.h
2.82
KB
-rw-r--r--
2024-06-04 14:43
err.h
2.18
KB
-rw-r--r--
2024-06-04 14:43
errno.h
2.33
KB
-rw-r--r--
2024-06-04 14:43
error.h
2.01
KB
-rw-r--r--
2024-06-04 14:43
eti.h
2.82
KB
-rw-r--r--
2017-09-06 22:08
etip.h
9.04
KB
-rw-r--r--
2017-09-06 22:08
execinfo.h
1.5
KB
-rw-r--r--
2024-06-04 14:43
expat.h
40.77
KB
-rw-r--r--
2022-10-06 12:52
expat_external.h
3.29
KB
-rw-r--r--
2022-10-06 12:52
fcntl.h
9.89
KB
-rw-r--r--
2024-06-04 14:43
features.h
12.87
KB
-rw-r--r--
2024-06-04 14:43
fenv.h
4.5
KB
-rw-r--r--
2024-06-04 14:43
fmtmsg.h
3.18
KB
-rw-r--r--
2024-06-04 14:43
fnmatch.h
2.27
KB
-rw-r--r--
2024-06-04 14:43
form.h
17.56
KB
-rw-r--r--
2017-09-06 22:08
fpu_control.h
3.5
KB
-rw-r--r--
2024-06-04 14:43
fstab.h
3.04
KB
-rw-r--r--
2024-06-04 14:43
fts.h
5.17
KB
-rw-r--r--
2024-06-04 14:43
ftw.h
5.15
KB
-rw-r--r--
2024-06-04 14:43
gconv.h
5.16
KB
-rw-r--r--
2024-06-04 14:43
gcrypt-module.h
7.18
KB
-rw-r--r--
2017-08-02 15:54
gcrypt.h
76.51
KB
-rw-r--r--
2017-08-02 15:54
gd.h
32.02
KB
-rw-r--r--
2007-05-06 20:38
gd_io.h
1.13
KB
-rw-r--r--
2007-01-03 21:50
gdbm.h
5.75
KB
-rw-r--r--
2014-06-09 21:39
gdcache.h
2.75
KB
-rw-r--r--
2006-04-05 15:54
gdfontg.h
623
B
-rw-r--r--
2006-04-05 15:54
gdfontl.h
621
B
-rw-r--r--
2006-04-05 15:54
gdfontmb.h
590
B
-rw-r--r--
2006-04-05 15:54
gdfonts.h
585
B
-rw-r--r--
2006-04-05 15:54
gdfontt.h
617
B
-rw-r--r--
2006-04-05 15:54
gdfx.h
2.34
KB
-rw-r--r--
2006-04-05 15:54
getopt.h
6.53
KB
-rw-r--r--
2024-06-04 14:43
gettext-po.h
15.17
KB
-rw-r--r--
2020-04-01 02:42
glob.h
6.51
KB
-rw-r--r--
2024-06-04 14:43
gnu-versions.h
2.29
KB
-rw-r--r--
2024-06-04 14:43
gpg-error.h
23.66
KB
-rw-r--r--
2014-06-10 08:46
grp.h
6.75
KB
-rw-r--r--
2024-06-04 14:43
gshadow.h
4.43
KB
-rw-r--r--
2024-06-04 14:43
gssapi.h
181
B
-rw-r--r--
2022-11-30 19:01
iconv.h
1.83
KB
-rw-r--r--
2024-06-04 14:43
idn-free.h
2.41
KB
-rw-r--r--
2015-11-21 17:00
idn-int.h
20
B
-rw-r--r--
2015-11-21 17:00
idna.h
3.48
KB
-rw-r--r--
2015-11-21 17:00
ieee754.h
4.81
KB
-rw-r--r--
2024-06-04 14:43
ifaddrs.h
2.77
KB
-rw-r--r--
2024-06-04 14:43
inttypes.h
11.61
KB
-rw-r--r--
2024-06-04 14:43
jconfig.h
1.7
KB
-rw-r--r--
2019-08-09 00:23
jerror.h
14.4
KB
-rw-r--r--
2019-08-09 00:23
jmorecfg.h
13.5
KB
-rw-r--r--
2019-08-09 00:23
jpeglib.h
49.12
KB
-rw-r--r--
2019-08-09 00:23
kdb.h
60.12
KB
-rw-r--r--
2022-11-30 19:01
keyutils.h
7.08
KB
-rw-r--r--
2014-06-10 02:17
krad.h
8.72
KB
-rw-r--r--
2022-11-30 19:01
krb5.h
402
B
-rw-r--r--
2022-11-30 19:01
langinfo.h
15.57
KB
-rw-r--r--
2024-06-04 14:43
lastlog.h
126
B
-rw-r--r--
2024-06-04 14:43
lber.h
14.95
KB
-rw-r--r--
2022-02-23 17:11
lber_types.h
1.43
KB
-rw-r--r--
2022-02-23 17:11
ldap.h
63.46
KB
-rw-r--r--
2022-02-23 17:11
ldap_cdefs.h
9.24
KB
-rw-r--r--
2022-02-23 17:11
ldap_features.h
1.77
KB
-rw-r--r--
2022-02-23 17:11
ldap_schema.h
9.23
KB
-rw-r--r--
2022-02-23 17:11
ldap_utf8.h
3.39
KB
-rw-r--r--
2022-02-23 17:11
ldif.h
4.58
KB
-rw-r--r--
2022-02-23 17:11
libaio.h
7.8
KB
-rw-r--r--
2015-11-20 06:37
libgen.h
1.37
KB
-rw-r--r--
2024-06-04 14:43
libintl.h
4.49
KB
-rw-r--r--
2024-06-04 14:43
libio.h
16.87
KB
-rw-r--r--
2024-06-04 14:43
limits.h
4.42
KB
-rw-r--r--
2024-06-04 14:43
link.h
6.99
KB
-rw-r--r--
2024-06-04 14:43
locale.h
7.78
KB
-rw-r--r--
2024-06-04 14:43
ltdl.h
5.58
KB
-rw-r--r--
2017-04-12 18:57
lzma.h
9.51
KB
-rw-r--r--
2015-09-29 10:57
malloc.h
6.44
KB
-rw-r--r--
2024-06-04 14:43
math.h
15.7
KB
-rw-r--r--
2024-06-04 14:43
mcheck.h
2.4
KB
-rw-r--r--
2024-06-04 14:43
memory.h
962
B
-rw-r--r--
2024-06-04 14:43
menu.h
11.67
KB
-rw-r--r--
2017-09-06 22:08
mntent.h
3.3
KB
-rw-r--r--
2024-06-04 14:43
monetary.h
1.73
KB
-rw-r--r--
2024-06-04 14:43
mqueue.h
3.7
KB
-rw-r--r--
2024-06-04 14:43
nc_tparm.h
4.05
KB
-rw-r--r--
2017-09-06 22:08
ncurses.h
93.19
KB
-rw-r--r--
2017-09-06 22:08
ncurses_dll.h
3.83
KB
-rw-r--r--
2017-09-06 22:08
ndbm.h
2.39
KB
-rw-r--r--
2014-06-09 21:39
netdb.h
27.46
KB
-rw-r--r--
2024-06-04 14:43
nl_types.h
1.73
KB
-rw-r--r--
2024-06-04 14:43
nss.h
1.85
KB
-rw-r--r--
2024-06-04 14:43
obstack.h
18.84
KB
-rw-r--r--
2024-06-04 14:43
panel.h
3.97
KB
-rw-r--r--
2017-09-06 22:08
paths.h
2.91
KB
-rw-r--r--
2024-06-04 14:43
pcre.h
29.73
KB
-rw-r--r--
2017-08-02 03:07
pcre_scanner.h
6.45
KB
-rw-r--r--
2017-08-02 03:07
pcre_stringpiece.h
6.11
KB
-rw-r--r--
2017-08-02 03:07
pcrecpp.h
25.91
KB
-rw-r--r--
2017-08-02 03:07
pcrecpparg.h
6.62
KB
-rw-r--r--
2017-08-02 03:07
pcreposix.h
5.32
KB
-rw-r--r--
2017-08-02 03:07
png.h
113.36
KB
-rw-r--r--
2020-10-13 15:52
pngconf.h
20.94
KB
-rw-r--r--
2020-10-13 15:52
pnglibconf.h
6.3
KB
-rw-r--r--
2020-10-13 15:52
poll.h
22
B
-rw-r--r--
2024-06-04 14:43
pr29.h
2.07
KB
-rw-r--r--
2015-11-21 17:00
printf.h
6.56
KB
-rw-r--r--
2024-06-04 14:43
profile.h
11.87
KB
-rw-r--r--
2022-11-30 19:01
pthread.h
39.95
KB
-rw-r--r--
2024-06-04 14:43
pty.h
1.51
KB
-rw-r--r--
2024-06-04 14:43
punycode.h
9.36
KB
-rw-r--r--
2015-11-21 17:00
pwd.h
5.87
KB
-rw-r--r--
2024-06-04 14:43
re_comp.h
957
B
-rw-r--r--
2024-06-04 14:43
regex.h
21.58
KB
-rw-r--r--
2024-06-04 14:43
regexp.h
6.89
KB
-rw-r--r--
2024-06-04 14:43
resolv.h
14.67
KB
-rw-r--r--
2024-06-04 14:43
sched.h
4.55
KB
-rw-r--r--
2024-06-04 14:43
search.h
5.11
KB
-rw-r--r--
2024-06-04 14:43
semaphore.h
2.36
KB
-rw-r--r--
2024-06-04 14:43
setjmp.h
3.97
KB
-rw-r--r--
2024-06-04 14:43
sgtty.h
1.33
KB
-rw-r--r--
2024-06-04 14:43
shadow.h
5.1
KB
-rw-r--r--
2024-06-04 14:43
signal.h
13.3
KB
-rw-r--r--
2024-06-04 14:43
slapi-plugin.h
37.45
KB
-rw-r--r--
2022-02-23 17:11
spawn.h
6.53
KB
-rw-r--r--
2024-06-04 14:43
stab.h
264
B
-rw-r--r--
2024-06-04 14:43
stdc-predef.h
1.59
KB
-rw-r--r--
2024-06-04 14:43
stdint.h
7.94
KB
-rw-r--r--
2024-06-04 14:43
stdio.h
30.9
KB
-rw-r--r--
2024-06-04 14:43
stdio_ext.h
2.74
KB
-rw-r--r--
2024-06-04 14:43
stdlib.h
33.23
KB
-rw-r--r--
2024-06-04 14:43
string.h
21.75
KB
-rw-r--r--
2024-06-04 14:43
stringprep.h
8
KB
-rw-r--r--
2015-11-21 17:00
strings.h
4.55
KB
-rw-r--r--
2024-06-04 14:43
syscall.h
25
B
-rw-r--r--
2024-06-04 14:43
sysexits.h
5.11
KB
-rw-r--r--
2024-06-04 14:43
syslog.h
24
B
-rw-r--r--
2024-06-04 14:43
tar.h
3.67
KB
-rw-r--r--
2024-06-04 14:43
tcpd.h
11.48
KB
-rw-r--r--
2014-06-10 04:41
term.h
38.63
KB
-rw-r--r--
2017-09-06 22:08
term_entry.h
7.91
KB
-rw-r--r--
2017-09-06 22:08
termcap.h
3.4
KB
-rw-r--r--
2017-09-06 22:08
termio.h
214
B
-rw-r--r--
2024-06-04 14:43
termios.h
3.52
KB
-rw-r--r--
2024-06-04 14:43
tgmath.h
18.11
KB
-rw-r--r--
2024-06-04 14:43
thread_db.h
15.65
KB
-rw-r--r--
2024-06-04 14:43
tic.h
12.35
KB
-rw-r--r--
2017-09-06 22:08
tiff.h
34.95
KB
-rw-r--r--
2020-10-13 15:55
tiffconf-64.h
3.35
KB
-rw-r--r--
2020-10-13 15:55
tiffconf.h
250
B
-rw-r--r--
2020-10-13 15:55
tiffio.h
22.52
KB
-rw-r--r--
2020-10-13 15:55
tiffio.hxx
1.66
KB
-rw-r--r--
2020-10-13 15:55
tiffvers.h
410
B
-rw-r--r--
2020-10-13 15:55
time.h
13.4
KB
-rw-r--r--
2024-06-04 14:43
tld.h
4.54
KB
-rw-r--r--
2015-11-21 17:00
ttyent.h
2.44
KB
-rw-r--r--
2024-06-04 14:43
uchar.h
2.42
KB
-rw-r--r--
2024-06-04 14:43
ucontext.h
1.92
KB
-rw-r--r--
2024-06-04 14:43
ulimit.h
1.55
KB
-rw-r--r--
2024-06-04 14:43
unctrl.h
3.03
KB
-rw-r--r--
2017-09-06 22:08
unistd.h
41.78
KB
-rw-r--r--
2024-06-04 14:43
ustat.h
23
B
-rw-r--r--
2024-06-04 14:43
utime.h
1.5
KB
-rw-r--r--
2024-06-04 14:43
utmp.h
3.16
KB
-rw-r--r--
2024-06-04 14:43
utmpx.h
4.02
KB
-rw-r--r--
2024-06-04 14:43
values.h
1.92
KB
-rw-r--r--
2024-06-04 14:43
verto-module.h
6.48
KB
-rw-r--r--
2014-06-10 07:44
verto.h
18.57
KB
-rw-r--r--
2014-06-10 07:44
wait.h
22
B
-rw-r--r--
2024-06-04 14:43
wchar.h
31.37
KB
-rw-r--r--
2024-06-04 14:43
wctype.h
10.89
KB
-rw-r--r--
2024-06-04 14:43
wordexp.h
2.47
KB
-rw-r--r--
2024-06-04 14:43
xlocale.h
1.66
KB
-rw-r--r--
2024-06-04 14:43
zconf.h
14.92
KB
-rw-r--r--
2023-03-07 14:49
zlib.h
84.68
KB
-rw-r--r--
2023-03-07 14:49
Save
Rename
/* /usr/include/libaio.h * * Copyright 2000,2001,2002 Red Hat, Inc. * * Written by Benjamin LaHaise <bcrl@redhat.com> * * libaio Linux async I/O interface * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __LIBAIO_H #define __LIBAIO_H #ifdef __cplusplus extern "C" { #endif #include <sys/types.h> #include <string.h> struct timespec; struct sockaddr; struct iovec; typedef struct io_context *io_context_t; typedef enum io_iocb_cmd { IO_CMD_PREAD = 0, IO_CMD_PWRITE = 1, IO_CMD_FSYNC = 2, IO_CMD_FDSYNC = 3, IO_CMD_POLL = 5, /* Never implemented in mainline, see io_prep_poll */ IO_CMD_NOOP = 6, IO_CMD_PREADV = 7, IO_CMD_PWRITEV = 8, } io_iocb_cmd_t; #if defined(__i386__) /* little endian, 32 bits */ #define PADDED(x, y) x; unsigned y #define PADDEDptr(x, y) x; unsigned y #define PADDEDul(x, y) unsigned long x; unsigned y #elif defined(__ia64__) || defined(__x86_64__) || defined(__alpha__) #define PADDED(x, y) x, y #define PADDEDptr(x, y) x #define PADDEDul(x, y) unsigned long x #elif defined(__powerpc64__) /* big endian, 64 bits */ #define PADDED(x, y) unsigned y; x #define PADDEDptr(x,y) x #define PADDEDul(x, y) unsigned long x #elif defined(__PPC__) /* big endian, 32 bits */ #define PADDED(x, y) unsigned y; x #define PADDEDptr(x, y) unsigned y; x #define PADDEDul(x, y) unsigned y; unsigned long x #elif defined(__s390x__) /* big endian, 64 bits */ #define PADDED(x, y) unsigned y; x #define PADDEDptr(x,y) x #define PADDEDul(x, y) unsigned long x #elif defined(__s390__) /* big endian, 32 bits */ #define PADDED(x, y) unsigned y; x #define PADDEDptr(x, y) unsigned y; x #define PADDEDul(x, y) unsigned y; unsigned long x #elif defined(__arm__) # if defined (__ARMEB__) /* big endian, 32 bits */ #define PADDED(x, y) unsigned y; x #define PADDEDptr(x, y) unsigned y; x #define PADDEDul(x, y) unsigned y; unsigned long x # else /* little endian, 32 bits */ #define PADDED(x, y) x; unsigned y #define PADDEDptr(x, y) x; unsigned y #define PADDEDul(x, y) unsigned long x; unsigned y # endif #elif defined(__aarch64__) # if defined (__AARCH64EB__) /* big endian, 64 bits */ #define PADDED(x, y) unsigned y; x #define PADDEDptr(x,y) x #define PADDEDul(x, y) unsigned long x # elif defined(__AARCH64EL__) /* little endian, 64 bits */ #define PADDED(x, y) x, y #define PADDEDptr(x, y) x #define PADDEDul(x, y) unsigned long x # endif #else #error endian? #endif struct io_iocb_poll { PADDED(int events, __pad1); }; /* result code is the set of result flags or -'ve errno */ struct io_iocb_sockaddr { struct sockaddr *addr; int len; }; /* result code is the length of the sockaddr, or -'ve errno */ struct io_iocb_common { PADDEDptr(void *buf, __pad1); PADDEDul(nbytes, __pad2); long long offset; long long __pad3; unsigned flags; unsigned resfd; }; /* result code is the amount read or -'ve errno */ struct io_iocb_vector { const struct iovec *vec; int nr; long long offset; }; /* result code is the amount read or -'ve errno */ struct iocb { PADDEDptr(void *data, __pad1); /* Return in the io completion event */ PADDED(unsigned key, __pad2); /* For use in identifying io requests */ short aio_lio_opcode; short aio_reqprio; int aio_fildes; union { struct io_iocb_common c; struct io_iocb_vector v; struct io_iocb_poll poll; struct io_iocb_sockaddr saddr; } u; }; struct io_event { PADDEDptr(void *data, __pad1); PADDEDptr(struct iocb *obj, __pad2); PADDEDul(res, __pad3); PADDEDul(res2, __pad4); }; #undef PADDED #undef PADDEDptr #undef PADDEDul typedef void (*io_callback_t)(io_context_t ctx, struct iocb *iocb, long res, long res2); /* library wrappers */ extern int io_queue_init(int maxevents, io_context_t *ctxp); /*extern int io_queue_grow(io_context_t ctx, int new_maxevents);*/ extern int io_queue_release(io_context_t ctx); /*extern int io_queue_wait(io_context_t ctx, struct timespec *timeout);*/ extern int io_queue_run(io_context_t ctx); /* Actual syscalls */ extern int io_setup(int maxevents, io_context_t *ctxp); extern int io_destroy(io_context_t ctx); extern int io_submit(io_context_t ctx, long nr, struct iocb *ios[]); extern int io_cancel(io_context_t ctx, struct iocb *iocb, struct io_event *evt); extern int io_getevents(io_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout); static inline void io_set_callback(struct iocb *iocb, io_callback_t cb) { iocb->data = (void *)cb; } static inline void io_prep_pread(struct iocb *iocb, int fd, void *buf, size_t count, long long offset) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PREAD; iocb->aio_reqprio = 0; iocb->u.c.buf = buf; iocb->u.c.nbytes = count; iocb->u.c.offset = offset; } static inline void io_prep_pwrite(struct iocb *iocb, int fd, void *buf, size_t count, long long offset) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PWRITE; iocb->aio_reqprio = 0; iocb->u.c.buf = buf; iocb->u.c.nbytes = count; iocb->u.c.offset = offset; } static inline void io_prep_preadv(struct iocb *iocb, int fd, const struct iovec *iov, int iovcnt, long long offset) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PREADV; iocb->aio_reqprio = 0; iocb->u.c.buf = (void *)iov; iocb->u.c.nbytes = iovcnt; iocb->u.c.offset = offset; } static inline void io_prep_pwritev(struct iocb *iocb, int fd, const struct iovec *iov, int iovcnt, long long offset) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PWRITEV; iocb->aio_reqprio = 0; iocb->u.c.buf = (void *)iov; iocb->u.c.nbytes = iovcnt; iocb->u.c.offset = offset; } /* Jeff Moyer says this was implemented in Red Hat AS2.1 and RHEL3. * AFAICT, it was never in mainline, and should not be used. --RR */ static inline void io_prep_poll(struct iocb *iocb, int fd, int events) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_POLL; iocb->aio_reqprio = 0; iocb->u.poll.events = events; } static inline int io_poll(io_context_t ctx, struct iocb *iocb, io_callback_t cb, int fd, int events) { io_prep_poll(iocb, fd, events); io_set_callback(iocb, cb); return io_submit(ctx, 1, &iocb); } static inline void io_prep_fsync(struct iocb *iocb, int fd) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_FSYNC; iocb->aio_reqprio = 0; } static inline int io_fsync(io_context_t ctx, struct iocb *iocb, io_callback_t cb, int fd) { io_prep_fsync(iocb, fd); io_set_callback(iocb, cb); return io_submit(ctx, 1, &iocb); } static inline void io_prep_fdsync(struct iocb *iocb, int fd) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_FDSYNC; iocb->aio_reqprio = 0; } static inline int io_fdsync(io_context_t ctx, struct iocb *iocb, io_callback_t cb, int fd) { io_prep_fdsync(iocb, fd); io_set_callback(iocb, cb); return io_submit(ctx, 1, &iocb); } static inline void io_set_eventfd(struct iocb *iocb, int eventfd) { iocb->u.c.flags |= (1 << 0) /* IOCB_FLAG_RESFD */; iocb->u.c.resfd = eventfd; } #ifdef __cplusplus } #endif #endif /* __LIBAIO_H */