Linux id-dci-web1412.main-hosting.eu 5.14.0-611.20.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 06:35:04 EST 2026 x86_64
LiteSpeed
: 2a02:4780:6:1512:0:19fc:adf1:2 | : 216.73.216.85
Cant Read [ /etc/named.conf ]
8.1.34
u435990001
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
opt /
go /
pkg /
mod /
golang.org /
x /
sys@v0.16.0 /
unix /
[ HOME SHELL ]
Name
Size
Permission
Action
internal
[ DIR ]
dr-xr-xr-x
linux
[ DIR ]
dr-xr-xr-x
.gitignore
16
B
-r--r--r--
README.md
8.48
KB
-r--r--r--
affinity_linux.go
1.88
KB
-r--r--r--
aliases.go
396
B
-r--r--r--
asm_aix_ppc64.s
407
B
-r--r--r--
asm_bsd_386.s
696
B
-r--r--r--
asm_bsd_amd64.s
722
B
-r--r--r--
asm_bsd_arm.s
686
B
-r--r--r--
asm_bsd_arm64.s
709
B
-r--r--r--
asm_bsd_ppc64.s
716
B
-r--r--r--
asm_bsd_riscv64.s
711
B
-r--r--r--
asm_linux_386.s
1.44
KB
-r--r--r--
asm_linux_amd64.s
1.18
KB
-r--r--r--
asm_linux_arm.s
1.11
KB
-r--r--r--
asm_linux_arm64.s
1.08
KB
-r--r--r--
asm_linux_loong64.s
1.16
KB
-r--r--r--
asm_linux_mips64x.s
1.14
KB
-r--r--r--
asm_linux_mipsx.s
1.14
KB
-r--r--r--
asm_linux_ppc64x.s
909
B
-r--r--r--
asm_linux_riscv64.s
1.02
KB
-r--r--r--
asm_linux_s390x.s
1.12
KB
-r--r--r--
asm_openbsd_mips64.s
677
B
-r--r--r--
asm_solaris_amd64.s
423
B
-r--r--r--
asm_zos_s390x.s
8.4
KB
-r--r--r--
bluetooth_linux.go
680
B
-r--r--r--
cap_freebsd.go
5.01
KB
-r--r--r--
constants.go
318
B
-r--r--r--
creds_test.go
7.23
KB
-r--r--r--
darwin_amd64_test.go
6.73
KB
-r--r--r--
darwin_arm64_test.go
6.71
KB
-r--r--r--
darwin_test.go
2.3
KB
-r--r--r--
dev_aix_ppc.go
739
B
-r--r--r--
dev_aix_ppc64.go
858
B
-r--r--r--
dev_darwin.go
747
B
-r--r--r--
dev_dragonfly.go
1.01
KB
-r--r--r--
dev_freebsd.go
1013
B
-r--r--r--
dev_linux.go
1.54
KB
-r--r--r--
dev_linux_test.go
1.46
KB
-r--r--r--
dev_netbsd.go
913
B
-r--r--r--
dev_openbsd.go
918
B
-r--r--r--
dev_zos.go
830
B
-r--r--r--
dev_zos_test.go
1.37
KB
-r--r--r--
dirent.go
3.01
KB
-r--r--r--
dirent_test.go
3.14
KB
-r--r--r--
dup3_test.go
1.44
KB
-r--r--r--
endian_big.go
330
B
-r--r--r--
endian_little.go
358
B
-r--r--r--
env_unix.go
645
B
-r--r--r--
epoll_zos.go
5.02
KB
-r--r--r--
epoll_zos_test.go
6.24
KB
-r--r--r--
example_exec_test.go
426
B
-r--r--r--
example_flock_test.go
613
B
-r--r--r--
example_sysvshm_test.go
1.32
KB
-r--r--r--
export_mremap_test.go
272
B
-r--r--r--
fcntl.go
1.05
KB
-r--r--r--
fcntl_darwin.go
806
B
-r--r--r--
fcntl_linux_32bit.go
436
B
-r--r--r--
fdset.go
781
B
-r--r--r--
fdset_test.go
1.26
KB
-r--r--r--
fstatfs_zos.go
4.07
KB
-r--r--r--
fstatfs_zos_test.go
1.77
KB
-r--r--r--
gccgo.go
1.91
KB
-r--r--r--
gccgo_c.c
1.49
KB
-r--r--r--
gccgo_linux_amd64.go
436
B
-r--r--r--
getdirentries_test.go
1.69
KB
-r--r--r--
getfsstat_test.go
1006
B
-r--r--r--
ifreq_linux.go
4.27
KB
-r--r--r--
ifreq_linux_test.go
4.35
KB
-r--r--r--
ioctl_linux.go
8.07
KB
-r--r--r--
ioctl_signed.go
2.2
KB
-r--r--r--
ioctl_unsigned.go
2.26
KB
-r--r--r--
ioctl_zos.go
2.03
KB
-r--r--r--
mkall.sh
8.11
KB
-r--r--r--
mkasm.go
3.75
KB
-r--r--r--
mkerrors.sh
20.11
KB
-r--r--r--
mkpost.go
9.48
KB
-r--r--r--
mksyscall.go
12.21
KB
-r--r--r--
mksyscall_aix_ppc.go
11.97
KB
-r--r--r--
mksyscall_aix_ppc64.go
18.84
KB
-r--r--r--
mksyscall_solaris.go
9.65
KB
-r--r--r--
mksysctl_openbsd.go
7.96
KB
-r--r--r--
mksysnum.go
4.74
KB
-r--r--r--
mmap_nomremap.go
336
B
-r--r--r--
mmap_unix_test.go
1.38
KB
-r--r--r--
mmap_zos_test.go
1.83
KB
-r--r--r--
mremap.go
1.36
KB
-r--r--r--
mremap_test.go
1.13
KB
-r--r--r--
openbsd_test.go
2.43
KB
-r--r--r--
pagesize_unix.go
389
B
-r--r--r--
pipe2_test.go
2.05
KB
-r--r--r--
pledge_openbsd.go
2.33
KB
-r--r--r--
ptrace_darwin.go
315
B
-r--r--r--
ptrace_ios.go
284
B
-r--r--r--
race.go
629
B
-r--r--r--
race0.go
553
B
-r--r--r--
readdirent_getdents.go
401
B
-r--r--r--
readdirent_getdirentries.go
698
B
-r--r--r--
sendfile_test.go
2.28
KB
-r--r--r--
sockcmsg_dragonfly.go
544
B
-r--r--r--
sockcmsg_linux.go
2.6
KB
-r--r--r--
sockcmsg_unix.go
3.14
KB
-r--r--r--
sockcmsg_unix_other.go
1.2
KB
-r--r--r--
syscall.go
2.81
KB
-r--r--r--
syscall_aix.go
16.1
KB
-r--r--r--
syscall_aix_ppc.go
1.27
KB
-r--r--r--
syscall_aix_ppc64.go
1.9
KB
-r--r--r--
syscall_aix_test.go
2.1
KB
-r--r--r--
syscall_bsd.go
14.96
KB
-r--r--r--
syscall_bsd_test.go
1.41
KB
-r--r--r--
syscall_darwin.go
20.72
KB
-r--r--r--
syscall_darwin_amd64.go
1.49
KB
-r--r--r--
syscall_darwin_arm64.go
1.41
KB
-r--r--r--
syscall_darwin_libSystem.go
1.21
KB
-r--r--r--
syscall_darwin_test.go
6.05
KB
-r--r--r--
syscall_dragonfly.go
11.18
KB
-r--r--r--
syscall_dragonfly_amd64.go
1.25
KB
-r--r--r--
syscall_freebsd.go
15.34
KB
-r--r--r--
syscall_freebsd_386.go
1.48
KB
-r--r--r--
syscall_freebsd_amd64.go
1.44
KB
-r--r--r--
syscall_freebsd_arm.go
1.35
KB
-r--r--r--
syscall_freebsd_arm64.go
1.31
KB
-r--r--r--
syscall_freebsd_riscv64.go
1.32
KB
-r--r--r--
syscall_freebsd_test.go
7.45
KB
-r--r--r--
syscall_hurd.go
635
B
-r--r--r--
syscall_hurd_386.go
447
B
-r--r--r--
syscall_illumos.go
1.76
KB
-r--r--r--
syscall_internal_bsd_test.go
3.16
KB
-r--r--r--
syscall_internal_darwin_test.g...
4.31
KB
-r--r--r--
syscall_internal_linux_test.go
20.1
KB
-r--r--r--
syscall_internal_solaris_test....
8.75
KB
-r--r--r--
syscall_linux.go
74.41
KB
-r--r--r--
syscall_linux_386.go
8.88
KB
-r--r--r--
syscall_linux_alarm.go
440
B
-r--r--r--
syscall_linux_amd64.go
5.28
KB
-r--r--r--
syscall_linux_amd64_gc.go
290
B
-r--r--r--
syscall_linux_arm.go
6.94
KB
-r--r--r--
syscall_linux_arm64.go
5.97
KB
-r--r--r--
syscall_linux_gc.go
495
B
-r--r--r--
syscall_linux_gc_386.go
585
B
-r--r--r--
syscall_linux_gc_arm.go
411
B
-r--r--r--
syscall_linux_gccgo_386.go
986
B
-r--r--r--
syscall_linux_gccgo_arm.go
596
B
-r--r--r--
syscall_linux_loong64.go
6.66
KB
-r--r--r--
syscall_linux_mips64x.go
5.83
KB
-r--r--r--
syscall_linux_mipsx.go
5.81
KB
-r--r--r--
syscall_linux_ppc.go
6.85
KB
-r--r--r--
syscall_linux_ppc64x.go
4.98
KB
-r--r--r--
syscall_linux_riscv64.go
6.13
KB
-r--r--r--
syscall_linux_s390x.go
9.29
KB
-r--r--r--
syscall_linux_sparc64.go
4.37
KB
-r--r--r--
syscall_linux_test.go
30.8
KB
-r--r--r--
syscall_netbsd.go
12.35
KB
-r--r--r--
syscall_netbsd_386.go
819
B
-r--r--r--
syscall_netbsd_amd64.go
814
B
-r--r--r--
syscall_netbsd_arm.go
819
B
-r--r--r--
syscall_netbsd_arm64.go
814
B
-r--r--r--
syscall_netbsd_test.go
1.81
KB
-r--r--r--
syscall_openbsd.go
11.04
KB
-r--r--r--
syscall_openbsd_386.go
1000
B
-r--r--r--
syscall_openbsd_amd64.go
990
B
-r--r--r--
syscall_openbsd_arm.go
1000
B
-r--r--r--
syscall_openbsd_arm64.go
990
B
-r--r--r--
syscall_openbsd_libc.go
1.1
KB
-r--r--r--
syscall_openbsd_mips64.go
955
B
-r--r--r--
syscall_openbsd_ppc64.go
990
B
-r--r--r--
syscall_openbsd_riscv64.go
994
B
-r--r--r--
syscall_openbsd_test.go
1005
B
-r--r--r--
syscall_solaris.go
31.11
KB
-r--r--r--
syscall_solaris_amd64.go
593
B
-r--r--r--
syscall_solaris_test.go
10.35
KB
-r--r--r--
syscall_test.go
1.26
KB
-r--r--r--
syscall_unix.go
16.45
KB
-r--r--r--
syscall_unix_gc.go
640
B
-r--r--r--
syscall_unix_gc_ppc64x.go
786
B
-r--r--r--
syscall_unix_test.go
26.9
KB
-r--r--r--
syscall_zos_s390x.go
52.88
KB
-r--r--r--
syscall_zos_test.go
19.66
KB
-r--r--r--
sysctl_netbsd_test.go
327
B
-r--r--r--
sysvshm_linux.go
521
B
-r--r--r--
sysvshm_unix.go
1.42
KB
-r--r--r--
sysvshm_unix_other.go
398
B
-r--r--r--
sysvshm_unix_test.go
1.53
KB
-r--r--r--
timestruct.go
2.2
KB
-r--r--r--
timestruct_test.go
1.71
KB
-r--r--r--
types_aix.go
4.25
KB
-r--r--r--
types_darwin.go
7.58
KB
-r--r--r--
types_dragonfly.go
5.37
KB
-r--r--r--
types_freebsd.go
7.75
KB
-r--r--r--
types_netbsd.go
5.99
KB
-r--r--r--
types_openbsd.go
5.48
KB
-r--r--r--
types_solaris.go
7.13
KB
-r--r--r--
unveil_openbsd.go
1.19
KB
-r--r--r--
xattr_bsd.go
5.66
KB
-r--r--r--
xattr_test.go
4.58
KB
-r--r--r--
zerrors_aix_ppc.go
52.42
KB
-r--r--r--
zerrors_aix_ppc64.go
52.67
KB
-r--r--r--
zerrors_darwin_amd64.go
87.45
KB
-r--r--r--
zerrors_darwin_arm64.go
87.45
KB
-r--r--r--
zerrors_dragonfly_amd64.go
70.7
KB
-r--r--r--
zerrors_freebsd_386.go
79.55
KB
-r--r--r--
zerrors_freebsd_amd64.go
79.44
KB
-r--r--r--
zerrors_freebsd_arm.go
79.19
KB
-r--r--r--
zerrors_freebsd_arm64.go
79.22
KB
-r--r--r--
zerrors_freebsd_riscv64.go
83.75
KB
-r--r--r--
zerrors_linux.go
182.73
KB
-r--r--r--
zerrors_linux_386.go
33.98
KB
-r--r--r--
zerrors_linux_amd64.go
34
KB
-r--r--r--
zerrors_linux_arm.go
34.22
KB
-r--r--r--
zerrors_linux_arm64.go
34.05
KB
-r--r--r--
zerrors_linux_loong64.go
33.73
KB
-r--r--r--
zerrors_linux_mips.go
34.54
KB
-r--r--r--
zerrors_linux_mips64.go
34.54
KB
-r--r--r--
zerrors_linux_mips64le.go
34.55
KB
-r--r--r--
zerrors_linux_mipsle.go
34.54
KB
-r--r--r--
zerrors_linux_ppc.go
36.62
KB
-r--r--r--
zerrors_linux_ppc64.go
36.79
KB
-r--r--r--
zerrors_linux_ppc64le.go
36.8
KB
-r--r--r--
zerrors_linux_riscv64.go
33.59
KB
-r--r--r--
zerrors_linux_s390x.go
36.53
KB
-r--r--r--
zerrors_linux_sparc64.go
38.61
KB
-r--r--r--
zerrors_netbsd_386.go
72.76
KB
-r--r--r--
zerrors_netbsd_amd64.go
72.35
KB
-r--r--r--
zerrors_netbsd_arm.go
71.89
KB
-r--r--r--
zerrors_netbsd_arm64.go
72.35
KB
-r--r--r--
zerrors_openbsd_386.go
78.55
KB
-r--r--r--
zerrors_openbsd_amd64.go
78.55
KB
-r--r--r--
zerrors_openbsd_arm.go
78.54
KB
-r--r--r--
zerrors_openbsd_arm64.go
78.55
KB
-r--r--r--
zerrors_openbsd_mips64.go
78.55
KB
-r--r--r--
zerrors_openbsd_ppc64.go
78.51
KB
-r--r--r--
zerrors_openbsd_riscv64.go
78.47
KB
-r--r--r--
zerrors_solaris_amd64.go
59
KB
-r--r--r--
zerrors_zos_s390x.go
34.47
KB
-r--r--r--
zptrace_armnn_linux.go
1.17
KB
-r--r--r--
zptrace_linux_arm64.go
721
B
-r--r--r--
zptrace_mipsnn_linux.go
1.36
KB
-r--r--r--
zptrace_mipsnnle_linux.go
1.41
KB
-r--r--r--
zptrace_x86_linux.go
1.81
KB
-r--r--r--
zsyscall_aix_ppc.go
35.68
KB
-r--r--r--
zsyscall_aix_ppc64.go
30.04
KB
-r--r--r--
zsyscall_aix_ppc64_gc.go
42.43
KB
-r--r--r--
zsyscall_aix_ppc64_gccgo.go
30.85
KB
-r--r--r--
zsyscall_darwin_amd64.go
66.74
KB
-r--r--r--
zsyscall_darwin_amd64.s
29.28
KB
-r--r--r--
zsyscall_darwin_arm64.go
66.69
KB
-r--r--r--
zsyscall_darwin_arm64.s
29.21
KB
-r--r--r--
zsyscall_dragonfly_amd64.go
38.79
KB
-r--r--r--
zsyscall_freebsd_386.go
45.09
KB
-r--r--r--
zsyscall_freebsd_amd64.go
44.9
KB
-r--r--r--
zsyscall_freebsd_arm.go
45.13
KB
-r--r--r--
zsyscall_freebsd_arm64.go
44.9
KB
-r--r--r--
zsyscall_freebsd_riscv64.go
44.91
KB
-r--r--r--
zsyscall_illumos_amd64.go
2.63
KB
-r--r--r--
zsyscall_linux.go
54.29
KB
-r--r--r--
zsyscall_linux_386.go
12.11
KB
-r--r--r--
zsyscall_linux_amd64.go
16.5
KB
-r--r--r--
zsyscall_linux_arm.go
15.61
KB
-r--r--r--
zsyscall_linux_arm64.go
14.22
KB
-r--r--r--
zsyscall_linux_loong64.go
12.61
KB
-r--r--r--
zsyscall_linux_mips.go
16.76
KB
-r--r--r--
zsyscall_linux_mips64.go
16.27
KB
-r--r--r--
zsyscall_linux_mips64le.go
16.01
KB
-r--r--r--
zsyscall_linux_mipsle.go
16.76
KB
-r--r--r--
zsyscall_linux_ppc.go
16.83
KB
-r--r--r--
zsyscall_linux_ppc64.go
17.79
KB
-r--r--r--
zsyscall_linux_ppc64le.go
17.79
KB
-r--r--r--
zsyscall_linux_riscv64.go
14.2
KB
-r--r--r--
zsyscall_linux_s390x.go
12.11
KB
-r--r--r--
zsyscall_linux_sparc64.go
16.43
KB
-r--r--r--
zsyscall_netbsd_386.go
44.13
KB
-r--r--r--
zsyscall_netbsd_amd64.go
43.94
KB
-r--r--r--
zsyscall_netbsd_arm.go
44.13
KB
-r--r--r--
zsyscall_netbsd_arm64.go
43.94
KB
-r--r--r--
zsyscall_openbsd_386.go
57.66
KB
-r--r--r--
zsyscall_openbsd_386.s
26.7
KB
-r--r--r--
zsyscall_openbsd_amd64.go
57.52
KB
-r--r--r--
zsyscall_openbsd_amd64.s
26.7
KB
-r--r--r--
zsyscall_openbsd_arm.go
57.69
KB
-r--r--r--
zsyscall_openbsd_arm.s
26.7
KB
-r--r--r--
zsyscall_openbsd_arm64.go
57.52
KB
-r--r--r--
zsyscall_openbsd_arm64.s
26.7
KB
-r--r--r--
zsyscall_openbsd_mips64.go
57.52
KB
-r--r--r--
zsyscall_openbsd_mips64.s
26.7
KB
-r--r--r--
zsyscall_openbsd_ppc64.go
57.52
KB
-r--r--r--
zsyscall_openbsd_ppc64.s
27.51
KB
-r--r--r--
zsyscall_openbsd_riscv64.go
57.53
KB
-r--r--r--
zsyscall_openbsd_riscv64.s
26.7
KB
-r--r--r--
zsyscall_solaris_amd64.go
59.74
KB
-r--r--r--
zsyscall_zos_s390x.go
29.82
KB
-r--r--r--
zsysctl_openbsd_386.go
11.93
KB
-r--r--r--
zsysctl_openbsd_amd64.go
11.93
KB
-r--r--r--
zsysctl_openbsd_arm.go
11.93
KB
-r--r--r--
zsysctl_openbsd_arm64.go
11.93
KB
-r--r--r--
zsysctl_openbsd_mips64.go
11.93
KB
-r--r--r--
zsysctl_openbsd_ppc64.go
11.93
KB
-r--r--r--
zsysctl_openbsd_riscv64.go
11.97
KB
-r--r--r--
zsysnum_darwin_amd64.go
17.84
KB
-r--r--r--
zsysnum_darwin_arm64.go
17.76
KB
-r--r--r--
zsysnum_dragonfly_amd64.go
27.61
KB
-r--r--r--
zsysnum_freebsd_386.go
36.09
KB
-r--r--r--
zsysnum_freebsd_amd64.go
36.1
KB
-r--r--r--
zsysnum_freebsd_arm.go
36.09
KB
-r--r--r--
zsysnum_freebsd_arm64.go
36.1
KB
-r--r--r--
zsysnum_freebsd_riscv64.go
36.1
KB
-r--r--r--
zsysnum_linux_386.go
17.38
KB
-r--r--r--
zsysnum_linux_amd64.go
12.59
KB
-r--r--r--
zsysnum_linux_arm.go
15.99
KB
-r--r--r--
zsysnum_linux_arm64.go
10.69
KB
-r--r--r--
zsysnum_linux_loong64.go
10.48
KB
-r--r--r--
zsysnum_linux_mips.go
17.27
KB
-r--r--r--
zsysnum_linux_mips64.go
12.74
KB
-r--r--r--
zsysnum_linux_mips64le.go
12.74
KB
-r--r--r--
zsysnum_linux_mipsle.go
17.28
KB
-r--r--r--
zsysnum_linux_ppc.go
17.02
KB
-r--r--r--
zsysnum_linux_ppc64.go
13.95
KB
-r--r--r--
zsysnum_linux_ppc64le.go
13.96
KB
-r--r--r--
zsysnum_linux_riscv64.go
10.71
KB
-r--r--r--
zsysnum_linux_s390x.go
12.84
KB
-r--r--r--
zsysnum_linux_sparc64.go
13.26
KB
-r--r--r--
zsysnum_netbsd_386.go
25.72
KB
-r--r--r--
zsysnum_netbsd_amd64.go
25.73
KB
-r--r--r--
zsysnum_netbsd_arm.go
25.72
KB
-r--r--r--
zsysnum_netbsd_arm64.go
25.71
KB
-r--r--r--
zsysnum_openbsd_386.go
17.91
KB
-r--r--r--
zsysnum_openbsd_amd64.go
17.91
KB
-r--r--r--
zsysnum_openbsd_arm.go
17.91
KB
-r--r--r--
zsysnum_openbsd_arm64.go
17.82
KB
-r--r--r--
zsysnum_openbsd_mips64.go
18.05
KB
-r--r--r--
zsysnum_openbsd_ppc64.go
17.76
KB
-r--r--r--
zsysnum_openbsd_riscv64.go
17.83
KB
-r--r--r--
zsysnum_zos_s390x.go
116.99
KB
-r--r--r--
ztypes_aix_ppc.go
4.91
KB
-r--r--r--
ztypes_aix_ppc64.go
4.98
KB
-r--r--r--
ztypes_darwin_amd64.go
12.4
KB
-r--r--r--
ztypes_darwin_arm64.go
12.4
KB
-r--r--r--
ztypes_dragonfly_amd64.go
6.91
KB
-r--r--r--
ztypes_freebsd_386.go
9.63
KB
-r--r--r--
ztypes_freebsd_amd64.go
9.68
KB
-r--r--r--
ztypes_freebsd_arm.go
9.5
KB
-r--r--r--
ztypes_freebsd_arm64.go
9.39
KB
-r--r--r--
ztypes_freebsd_riscv64.go
9.46
KB
-r--r--r--
ztypes_linux.go
246.65
KB
-r--r--r--
ztypes_linux_386.go
12.37
KB
-r--r--r--
ztypes_linux_amd64.go
12.56
KB
-r--r--r--
ztypes_linux_arm.go
12.33
KB
-r--r--r--
ztypes_linux_arm64.go
12.21
KB
-r--r--r--
ztypes_linux_loong64.go
12.23
KB
-r--r--r--
ztypes_linux_mips.go
12.39
KB
-r--r--r--
ztypes_linux_mips64.go
12.26
KB
-r--r--r--
ztypes_linux_mips64le.go
12.27
KB
-r--r--r--
ztypes_linux_mipsle.go
12.4
KB
-r--r--r--
ztypes_linux_ppc.go
12.57
KB
-r--r--r--
ztypes_linux_ppc64.go
12.4
KB
-r--r--r--
ztypes_linux_ppc64le.go
12.41
KB
-r--r--r--
ztypes_linux_riscv64.go
13.44
KB
-r--r--r--
ztypes_linux_s390x.go
12.7
KB
-r--r--r--
ztypes_linux_sparc64.go
12.26
KB
-r--r--r--
ztypes_netbsd_386.go
9.46
KB
-r--r--r--
ztypes_netbsd_amd64.go
9.65
KB
-r--r--r--
ztypes_netbsd_arm.go
9.59
KB
-r--r--r--
ztypes_netbsd_arm64.go
9.65
KB
-r--r--r--
ztypes_openbsd_386.go
9.24
KB
-r--r--r--
ztypes_openbsd_amd64.go
9.25
KB
-r--r--r--
ztypes_openbsd_arm.go
9.38
KB
-r--r--r--
ztypes_openbsd_arm64.go
9.26
KB
-r--r--r--
ztypes_openbsd_mips64.go
9.26
KB
-r--r--r--
ztypes_openbsd_ppc64.go
9.28
KB
-r--r--r--
ztypes_openbsd_riscv64.go
9.29
KB
-r--r--r--
ztypes_solaris_amd64.go
7.53
KB
-r--r--r--
ztypes_zos_s390x.go
6.66
KB
-r--r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mksyscall_aix_ppc64.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore /* This program reads a file containing function prototypes (like syscall_aix.go) and generates system call bodies. The prototypes are marked by lines beginning with "//sys" and read like func declarations if //sys is replaced by func, but: * The parameter lists must give a name for each argument. This includes return parameters. * The parameter lists must give a type for each argument: the (x, y, z int) shorthand is not allowed. * If the return parameter is an error number, it must be named err. * If go func name needs to be different than its libc name, * or the function is not in libc, name could be specified * at the end, after "=" sign, like //sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt This program will generate three files and handle both gc and gccgo implementation: - zsyscall_aix_ppc64.go: the common part of each implementation (error handler, pointer creation) - zsyscall_aix_ppc64_gc.go: gc part with //go_cgo_import_dynamic and a call to syscall6 - zsyscall_aix_ppc64_gccgo.go: gccgo part with C function and conversion to C type. The generated code looks like this zsyscall_aix_ppc64.go func asyscall(...) (n int, err error) { // Pointer Creation r1, e1 := callasyscall(...) // Type Conversion // Error Handler return } zsyscall_aix_ppc64_gc.go //go:cgo_import_dynamic libc_asyscall asyscall "libc.a/shr_64.o" //go:linkname libc_asyscall libc_asyscall var asyscall syscallFunc func callasyscall(...) (r1 uintptr, e1 Errno) { r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_asyscall)), "nb_args", ... ) return } zsyscall_aix_ppc64_ggcgo.go // int asyscall(...) import "C" func callasyscall(...) (r1 uintptr, e1 Errno) { r1 = uintptr(C.asyscall(...)) e1 = syscall.GetErrno() return } */ package main import ( "bufio" "flag" "fmt" "os" "regexp" "strings" ) var ( b32 = flag.Bool("b32", false, "32bit big-endian") l32 = flag.Bool("l32", false, "32bit little-endian") aix = flag.Bool("aix", false, "aix") tags = flag.String("tags", "", "build tags") ) // cmdLine returns this programs's commandline arguments func cmdLine() string { return "go run mksyscall_aix_ppc64.go " + strings.Join(os.Args[1:], " ") } // goBuildTags returns build tags in the go:build format. func goBuildTags() string { return strings.ReplaceAll(*tags, ",", " && ") } // Param is function parameter type Param struct { Name string Type string } // usage prints the program usage func usage() { fmt.Fprintf(os.Stderr, "usage: go run mksyscall_aix_ppc64.go [-b32 | -l32] [-tags x,y] [file ...]\n") os.Exit(1) } // parseParamList parses parameter list and returns a slice of parameters func parseParamList(list string) []string { list = strings.TrimSpace(list) if list == "" { return []string{} } return regexp.MustCompile(`\s*,\s*`).Split(list, -1) } // parseParam splits a parameter into name and type func parseParam(p string) Param { ps := regexp.MustCompile(`^(\S*) (\S*)$`).FindStringSubmatch(p) if ps == nil { fmt.Fprintf(os.Stderr, "malformed parameter: %s\n", p) os.Exit(1) } return Param{ps[1], ps[2]} } func main() { flag.Usage = usage flag.Parse() if len(flag.Args()) <= 0 { fmt.Fprintf(os.Stderr, "no files to parse provided\n") usage() } endianness := "" if *b32 { endianness = "big-endian" } else if *l32 { endianness = "little-endian" } pack := "" // GCCGO textgccgo := "" cExtern := "/*\n#include <stdint.h>\n" // GC textgc := "" dynimports := "" linknames := "" var vars []string // COMMON textcommon := "" for _, path := range flag.Args() { file, err := os.Open(path) if err != nil { fmt.Fprintf(os.Stderr, err.Error()) os.Exit(1) } s := bufio.NewScanner(file) for s.Scan() { t := s.Text() if p := regexp.MustCompile(`^package (\S+)$`).FindStringSubmatch(t); p != nil && pack == "" { pack = p[1] } nonblock := regexp.MustCompile(`^\/\/sysnb\t`).FindStringSubmatch(t) if regexp.MustCompile(`^\/\/sys\t`).FindStringSubmatch(t) == nil && nonblock == nil { continue } // Line must be of the form // func Open(path string, mode int, perm int) (fd int, err error) // Split into name, in params, out params. f := regexp.MustCompile(`^\/\/sys(nb)?\t(\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$`).FindStringSubmatch(t) if f == nil { fmt.Fprintf(os.Stderr, "%s:%s\nmalformed //sys declaration\n", path, t) os.Exit(1) } funct, inps, outps, modname, sysname := f[2], f[3], f[4], f[5], f[6] // Split argument lists on comma. in := parseParamList(inps) out := parseParamList(outps) inps = strings.Join(in, ", ") outps = strings.Join(out, ", ") if sysname == "" { sysname = funct } onlyCommon := false if funct == "FcntlInt" || funct == "FcntlFlock" || funct == "ioctlPtr" { // This function call another syscall which is already implemented. // Therefore, the gc and gccgo part must not be generated. onlyCommon = true } // Try in vain to keep people from editing this file. // The theory is that they jump into the middle of the file // without reading the header. textcommon += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n" if !onlyCommon { textgccgo += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n" textgc += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n" } // Check if value return, err return available errvar := "" rettype := "" for _, param := range out { p := parseParam(param) if p.Type == "error" { errvar = p.Name } else { rettype = p.Type } } sysname = regexp.MustCompile(`([a-z])([A-Z])`).ReplaceAllString(sysname, `${1}_$2`) sysname = strings.ToLower(sysname) // All libc functions are lowercase. // GCCGO Prototype return type cRettype := "" if rettype == "unsafe.Pointer" { cRettype = "uintptr_t" } else if rettype == "uintptr" { cRettype = "uintptr_t" } else if regexp.MustCompile(`^_`).FindStringSubmatch(rettype) != nil { cRettype = "uintptr_t" } else if rettype == "int" { cRettype = "int" } else if rettype == "int32" { cRettype = "int" } else if rettype == "int64" { cRettype = "long long" } else if rettype == "uint32" { cRettype = "unsigned int" } else if rettype == "uint64" { cRettype = "unsigned long long" } else { cRettype = "int" } if sysname == "exit" { cRettype = "void" } // GCCGO Prototype arguments type var cIn []string for i, param := range in { p := parseParam(param) if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil { cIn = append(cIn, "uintptr_t") } else if p.Type == "string" { cIn = append(cIn, "uintptr_t") } else if regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type) != nil { cIn = append(cIn, "uintptr_t", "size_t") } else if p.Type == "unsafe.Pointer" { cIn = append(cIn, "uintptr_t") } else if p.Type == "uintptr" { cIn = append(cIn, "uintptr_t") } else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil { cIn = append(cIn, "uintptr_t") } else if p.Type == "int" { if (i == 0 || i == 2) && funct == "fcntl" { // These fcntl arguments needs to be uintptr to be able to call FcntlInt and FcntlFlock cIn = append(cIn, "uintptr_t") } else { cIn = append(cIn, "int") } } else if p.Type == "int32" { cIn = append(cIn, "int") } else if p.Type == "int64" { cIn = append(cIn, "long long") } else if p.Type == "uint32" { cIn = append(cIn, "unsigned int") } else if p.Type == "uint64" { cIn = append(cIn, "unsigned long long") } else { cIn = append(cIn, "int") } } if !onlyCommon { // GCCGO Prototype Generation // Imports of system calls from libc if sysname == "select" { // select is a keyword of Go. Its name is // changed to c_select. cExtern += "#define c_select select\n" } cExtern += fmt.Sprintf("%s %s", cRettype, sysname) cIn := strings.Join(cIn, ", ") cExtern += fmt.Sprintf("(%s);\n", cIn) } // GC Library name if modname == "" { modname = "libc.a/shr_64.o" } else { fmt.Fprintf(os.Stderr, "%s: only syscall using libc are available\n", funct) os.Exit(1) } sysvarname := fmt.Sprintf("libc_%s", sysname) if !onlyCommon { // GC Runtime import of function to allow cross-platform builds. dynimports += fmt.Sprintf("//go:cgo_import_dynamic %s %s \"%s\"\n", sysvarname, sysname, modname) // GC Link symbol to proc address variable. linknames += fmt.Sprintf("//go:linkname %s %s\n", sysvarname, sysvarname) // GC Library proc address variable. vars = append(vars, sysvarname) } strconvfunc := "BytePtrFromString" strconvtype := "*byte" // Go function header. if outps != "" { outps = fmt.Sprintf(" (%s)", outps) } if textcommon != "" { textcommon += "\n" } textcommon += fmt.Sprintf("func %s(%s)%s {\n", funct, strings.Join(in, ", "), outps) // Prepare arguments tocall. var argscommon []string // Arguments in the common part var argscall []string // Arguments for call prototype var argsgc []string // Arguments for gc call (with syscall6) var argsgccgo []string // Arguments for gccgo call (with C.name_of_syscall) n := 0 argN := 0 for _, param := range in { p := parseParam(param) if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil { argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(%s))", p.Name)) argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name)) argsgc = append(argsgc, p.Name) argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name)) } else if p.Type == "string" && errvar != "" { textcommon += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype) textcommon += fmt.Sprintf("\t_p%d, %s = %s(%s)\n", n, errvar, strconvfunc, p.Name) textcommon += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar) argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n)) argscall = append(argscall, fmt.Sprintf("_p%d uintptr ", n)) argsgc = append(argsgc, fmt.Sprintf("_p%d", n)) argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(_p%d)", n)) n++ } else if p.Type == "string" { fmt.Fprintf(os.Stderr, path+":"+funct+" uses string arguments, but has no error return\n") textcommon += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype) textcommon += fmt.Sprintf("\t_p%d, %s = %s(%s)\n", n, errvar, strconvfunc, p.Name) textcommon += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar) argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n)) argscall = append(argscall, fmt.Sprintf("_p%d uintptr", n)) argsgc = append(argsgc, fmt.Sprintf("_p%d", n)) argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(_p%d)", n)) n++ } else if m := regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type); m != nil { // Convert slice into pointer, length. // Have to be careful not to take address of &a[0] if len == 0: // pass nil in that case. textcommon += fmt.Sprintf("\tvar _p%d *%s\n", n, m[1]) textcommon += fmt.Sprintf("\tif len(%s) > 0 {\n\t\t_p%d = &%s[0]\n\t}\n", p.Name, n, p.Name) argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n), fmt.Sprintf("len(%s)", p.Name)) argscall = append(argscall, fmt.Sprintf("_p%d uintptr", n), fmt.Sprintf("_lenp%d int", n)) argsgc = append(argsgc, fmt.Sprintf("_p%d", n), fmt.Sprintf("uintptr(_lenp%d)", n)) argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(_p%d)", n), fmt.Sprintf("C.size_t(_lenp%d)", n)) n++ } else if p.Type == "int64" && endianness != "" { fmt.Fprintf(os.Stderr, path+":"+funct+" uses int64 with 32 bits mode. Case not yet implemented\n") } else if p.Type == "bool" { fmt.Fprintf(os.Stderr, path+":"+funct+" uses bool. Case not yet implemented\n") } else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil || p.Type == "unsafe.Pointer" { argscommon = append(argscommon, fmt.Sprintf("uintptr(%s)", p.Name)) argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name)) argsgc = append(argsgc, p.Name) argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name)) } else if p.Type == "int" { if (argN == 0 || argN == 2) && ((funct == "fcntl") || (funct == "FcntlInt") || (funct == "FcntlFlock")) { // These fcntl arguments need to be uintptr to be able to call FcntlInt and FcntlFlock argscommon = append(argscommon, fmt.Sprintf("uintptr(%s)", p.Name)) argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name)) argsgc = append(argsgc, p.Name) argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name)) } else { argscommon = append(argscommon, p.Name) argscall = append(argscall, fmt.Sprintf("%s int", p.Name)) argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name)) argsgccgo = append(argsgccgo, fmt.Sprintf("C.int(%s)", p.Name)) } } else if p.Type == "int32" { argscommon = append(argscommon, p.Name) argscall = append(argscall, fmt.Sprintf("%s int32", p.Name)) argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name)) argsgccgo = append(argsgccgo, fmt.Sprintf("C.int(%s)", p.Name)) } else if p.Type == "int64" { argscommon = append(argscommon, p.Name) argscall = append(argscall, fmt.Sprintf("%s int64", p.Name)) argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name)) argsgccgo = append(argsgccgo, fmt.Sprintf("C.longlong(%s)", p.Name)) } else if p.Type == "uint32" { argscommon = append(argscommon, p.Name) argscall = append(argscall, fmt.Sprintf("%s uint32", p.Name)) argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name)) argsgccgo = append(argsgccgo, fmt.Sprintf("C.uint(%s)", p.Name)) } else if p.Type == "uint64" { argscommon = append(argscommon, p.Name) argscall = append(argscall, fmt.Sprintf("%s uint64", p.Name)) argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name)) argsgccgo = append(argsgccgo, fmt.Sprintf("C.ulonglong(%s)", p.Name)) } else if p.Type == "uintptr" { argscommon = append(argscommon, p.Name) argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name)) argsgc = append(argsgc, p.Name) argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name)) } else { argscommon = append(argscommon, fmt.Sprintf("int(%s)", p.Name)) argscall = append(argscall, fmt.Sprintf("%s int", p.Name)) argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name)) argsgccgo = append(argsgccgo, fmt.Sprintf("C.int(%s)", p.Name)) } argN++ } nargs := len(argsgc) // COMMON function generation argscommonlist := strings.Join(argscommon, ", ") callcommon := fmt.Sprintf("call%s(%s)", sysname, argscommonlist) ret := []string{"_", "_"} body := "" doErrno := false for i := 0; i < len(out); i++ { p := parseParam(out[i]) reg := "" if p.Name == "err" { reg = "e1" ret[1] = reg doErrno = true } else { reg = "r0" ret[0] = reg } if p.Type == "bool" { reg = fmt.Sprintf("%s != 0", reg) } if reg != "e1" { body += fmt.Sprintf("\t%s = %s(%s)\n", p.Name, p.Type, reg) } } if ret[0] == "_" && ret[1] == "_" { textcommon += fmt.Sprintf("\t%s\n", callcommon) } else { textcommon += fmt.Sprintf("\t%s, %s := %s\n", ret[0], ret[1], callcommon) } textcommon += body if doErrno { textcommon += "\tif e1 != 0 {\n" textcommon += "\t\terr = errnoErr(e1)\n" textcommon += "\t}\n" } textcommon += "\treturn\n" textcommon += "}\n" if onlyCommon { continue } // CALL Prototype callProto := fmt.Sprintf("func call%s(%s) (r1 uintptr, e1 Errno) {\n", sysname, strings.Join(argscall, ", ")) // GC function generation asm := "syscall6" if nonblock != nil { asm = "rawSyscall6" } if len(argsgc) <= 6 { for len(argsgc) < 6 { argsgc = append(argsgc, "0") } } else { fmt.Fprintf(os.Stderr, "%s: too many arguments to system call", funct) os.Exit(1) } argsgclist := strings.Join(argsgc, ", ") callgc := fmt.Sprintf("%s(uintptr(unsafe.Pointer(&%s)), %d, %s)", asm, sysvarname, nargs, argsgclist) textgc += callProto textgc += fmt.Sprintf("\tr1, _, e1 = %s\n", callgc) textgc += "\treturn\n}\n" // GCCGO function generation argsgccgolist := strings.Join(argsgccgo, ", ") var callgccgo string if sysname == "select" { // select is a keyword of Go. Its name is // changed to c_select. callgccgo = fmt.Sprintf("C.c_%s(%s)", sysname, argsgccgolist) } else { callgccgo = fmt.Sprintf("C.%s(%s)", sysname, argsgccgolist) } textgccgo += callProto textgccgo += fmt.Sprintf("\tr1 = uintptr(%s)\n", callgccgo) textgccgo += "\te1 = syscall.GetErrno()\n" textgccgo += "\treturn\n}\n" } if err := s.Err(); err != nil { fmt.Fprintf(os.Stderr, err.Error()) os.Exit(1) } file.Close() } imp := "" if pack != "unix" { imp = "import \"golang.org/x/sys/unix\"\n" } // Print zsyscall_aix_ppc64.go err := os.WriteFile("zsyscall_aix_ppc64.go", []byte(fmt.Sprintf(srcTemplate1, cmdLine(), goBuildTags(), pack, imp, textcommon)), 0644) if err != nil { fmt.Fprintf(os.Stderr, err.Error()) os.Exit(1) } // Print zsyscall_aix_ppc64_gc.go vardecls := "\t" + strings.Join(vars, ",\n\t") vardecls += " syscallFunc" err = os.WriteFile("zsyscall_aix_ppc64_gc.go", []byte(fmt.Sprintf(srcTemplate2, cmdLine(), goBuildTags(), pack, imp, dynimports, linknames, vardecls, textgc)), 0644) if err != nil { fmt.Fprintf(os.Stderr, err.Error()) os.Exit(1) } // Print zsyscall_aix_ppc64_gccgo.go err = os.WriteFile("zsyscall_aix_ppc64_gccgo.go", []byte(fmt.Sprintf(srcTemplate3, cmdLine(), goBuildTags(), pack, cExtern, imp, textgccgo)), 0644) if err != nil { fmt.Fprintf(os.Stderr, err.Error()) os.Exit(1) } } const srcTemplate1 = `// %s // Code generated by the command above; see README.md. DO NOT EDIT. //go:build %s package %s import ( "unsafe" ) %s %s ` const srcTemplate2 = `// %s // Code generated by the command above; see README.md. DO NOT EDIT. //go:build %s && gc package %s import ( "unsafe" ) %s %s %s type syscallFunc uintptr var ( %s ) // Implemented in runtime/syscall_aix.go. func rawSyscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) %s ` const srcTemplate3 = `// %s // Code generated by the command above; see README.md. DO NOT EDIT. //go:build %s && gccgo package %s %s */ import "C" import ( "syscall" ) %s %s `
Close