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 : mkpost.go
// Copyright 2016 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 // mkpost processes the output of cgo -godefs to // modify the generated types. It is used to clean up // the sys API in an architecture specific manner. // // mkpost is run after cgo -godefs; see README.md. package main import ( "bytes" "fmt" "go/format" "io" "log" "os" "regexp" ) func main() { // Get the OS and architecture (using GOARCH_TARGET if it exists) goos := os.Getenv("GOOS_TARGET") if goos == "" { goos = os.Getenv("GOOS") } goarch := os.Getenv("GOARCH_TARGET") if goarch == "" { goarch = os.Getenv("GOARCH") } // Check that we are using the Docker-based build system if we should be. if goos == "linux" { if os.Getenv("GOLANG_SYS_BUILD") != "docker" { os.Stderr.WriteString("In the Docker-based build system, mkpost should not be called directly.\n") os.Stderr.WriteString("See README.md\n") os.Exit(1) } } b, err := io.ReadAll(os.Stdin) if err != nil { log.Fatal(err) } if goos == "aix" { // Replace type of Atim, Mtim and Ctim by Timespec in Stat_t // to avoid having both StTimespec and Timespec. sttimespec := regexp.MustCompile(`_Ctype_struct_st_timespec`) b = sttimespec.ReplaceAll(b, []byte("Timespec")) } if goos == "darwin" { // KinfoProc contains various pointers to objects stored // in kernel space. Replace these by uintptr to prevent // accidental dereferencing. kinfoProcPointerRegex := regexp.MustCompile(`\*_Ctype_struct_(pgrp|proc|session|sigacts|ucred|user|vnode)`) b = kinfoProcPointerRegex.ReplaceAll(b, []byte("uintptr")) // ExternProc contains a p_un member that in kernel // space stores a pair of pointers and in user space // stores the process creation time. We only care about // the process creation time. externProcStarttimeRegex := regexp.MustCompile(`P_un\s*\[\d+\]byte`) b = externProcStarttimeRegex.ReplaceAll(b, []byte("P_starttime Timeval")) // Convert [n]int8 to [n]byte in Eproc and ExternProc members to // simplify conversion to string. convertEprocRegex := regexp.MustCompile(`(P_comm|Wmesg|Login)(\s+)\[(\d+)\]int8`) b = convertEprocRegex.ReplaceAll(b, []byte("$1$2[$3]byte")) } if goos == "freebsd" { // Inside PtraceLwpInfoStruct replace __Siginfo with __PtraceSiginfo, // Create __PtraceSiginfo as a copy of __Siginfo where every *byte instance is replaced by uintptr ptraceLwpInfoStruct := regexp.MustCompile(`(?s:type PtraceLwpInfoStruct struct \{.*?\})`) b = ptraceLwpInfoStruct.ReplaceAllFunc(b, func(in []byte) []byte { return bytes.ReplaceAll(in, []byte("__Siginfo"), []byte("__PtraceSiginfo")) }) siginfoStruct := regexp.MustCompile(`(?s:type __Siginfo struct \{.*?\})`) b = siginfoStruct.ReplaceAllFunc(b, func(in []byte) []byte { out := append([]byte{}, in...) out = append(out, '\n', '\n') out = append(out, bytes.ReplaceAll( bytes.ReplaceAll(in, []byte("__Siginfo"), []byte("__PtraceSiginfo")), []byte("*byte"), []byte("uintptr"))...) return out }) // Inside PtraceIoDesc replace the Offs field, which refers to an address // in the child process (not the Go parent), with a uintptr. ptraceIoDescStruct := regexp.MustCompile(`(?s:type PtraceIoDesc struct \{.*?\})`) addrField := regexp.MustCompile(`(\bOffs\s+)\*byte`) b = ptraceIoDescStruct.ReplaceAllFunc(b, func(in []byte) []byte { return addrField.ReplaceAll(in, []byte(`${1}uintptr`)) }) } if goos == "solaris" { // Convert *int8 to *byte in Iovec.Base like on every other platform. convertIovecBase := regexp.MustCompile(`Base\s+\*int8`) iovecType := regexp.MustCompile(`type Iovec struct {[^}]*}`) iovecStructs := iovecType.FindAll(b, -1) for _, s := range iovecStructs { newNames := convertIovecBase.ReplaceAll(s, []byte("Base *byte")) b = bytes.Replace(b, s, newNames, 1) } } if goos == "linux" && goarch != "riscv64" { // The RISCV_HWPROBE_ constants are only defined on Linux for riscv64 hwprobeConstRexexp := regexp.MustCompile(`const\s+\(\s+RISCV_HWPROBE_[^\)]+\)`) b = hwprobeConstRexexp.ReplaceAll(b, nil) } // Intentionally export __val fields in Fsid and Sigset_t valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__(bits|val)(\s+\S+\s+)}`) b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$4}")) // Intentionally export __fds_bits field in FdSet fdSetRegex := regexp.MustCompile(`type (FdSet) struct {(\s+)X__fds_bits(\s+\S+\s+)}`) b = fdSetRegex.ReplaceAll(b, []byte("type $1 struct {${2}Bits$3}")) // Intentionally export __icmp6_filt field in icmpv6_filter icmpV6Regex := regexp.MustCompile(`type (ICMPv6Filter) struct {(\s+)X__icmp6_filt(\s+\S+\s+)}`) b = icmpV6Regex.ReplaceAll(b, []byte("type $1 struct {${2}Filt$3}")) // Intentionally export address storage field in SockaddrStorage convert it to [N]byte. convertSockaddrStorageData := regexp.MustCompile(`(X__ss_padding)\s+\[(\d+)\]u?int8`) sockaddrStorageType := regexp.MustCompile(`type SockaddrStorage struct {[^}]*}`) sockaddrStorageStructs := sockaddrStorageType.FindAll(b, -1) for _, s := range sockaddrStorageStructs { newNames := convertSockaddrStorageData.ReplaceAll(s, []byte("Data [$2]byte")) b = bytes.Replace(b, s, newNames, 1) } // If we have empty Ptrace structs, we should delete them. Only s390x emits // nonempty Ptrace structs. ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`) b = ptraceRexexp.ReplaceAll(b, nil) // If we have an empty RISCVHWProbePairs struct, we should delete it. Only riscv64 emits // nonempty RISCVHWProbePairs structs. hwprobeRexexp := regexp.MustCompile(`type RISCVHWProbePairs struct {\s*}`) b = hwprobeRexexp.ReplaceAll(b, nil) // Replace the control_regs union with a blank identifier for now. controlRegsRegex := regexp.MustCompile(`(Control_regs)\s+\[0\]uint64`) b = controlRegsRegex.ReplaceAll(b, []byte("_ [0]uint64")) // Remove fields that are added by glibc // Note that this is unstable as the identifers are private. removeFieldsRegex := regexp.MustCompile(`X__glibc\S*`) b = removeFieldsRegex.ReplaceAll(b, []byte("_")) // Convert [65]int8 to [65]byte in Utsname members to simplify // conversion to string; see golang.org/issue/20753 convertUtsnameRegex := regexp.MustCompile(`((Sys|Node|Domain)name|Release|Version|Machine)(\s+)\[(\d+)\]u?int8`) b = convertUtsnameRegex.ReplaceAll(b, []byte("$1$3[$4]byte")) // Convert [n]int8 to [n]byte in Statvfs_t and Statfs_t members to simplify // conversion to string. convertStatvfsRegex := regexp.MustCompile(`(([Ff]stype|[Mm]nton|[Mm]ntfrom)name|mntfromspec)(\s+)\[(\d+)\]int8`) b = convertStatvfsRegex.ReplaceAll(b, []byte("$1$3[$4]byte")) // Convert []int8 to []byte in device mapper ioctl interface convertDmIoctlNames := regexp.MustCompile(`(Name|Uuid|Target_type|Data)(\s+)\[(\d+)\]u?int8`) dmIoctlTypes := regexp.MustCompile(`type Dm(\S+) struct {[^}]*}`) dmStructs := dmIoctlTypes.FindAll(b, -1) for _, s := range dmStructs { newNames := convertDmIoctlNames.ReplaceAll(s, []byte("$1$2[$3]byte")) b = bytes.Replace(b, s, newNames, 1) } // Convert []int8 to []byte in EthtoolDrvinfo convertEthtoolDrvinfoNames := regexp.MustCompile(`(Driver|Version|Fw_version|Bus_info|Erom_version|Reserved2)(\s+)\[(\d+)\]u?int8`) ethtoolDrvinfoTypes := regexp.MustCompile(`type EthtoolDrvinfo struct {[^}]*}`) ethtoolDrvinfoStructs := ethtoolDrvinfoTypes.FindAll(b, -1) for _, s := range ethtoolDrvinfoStructs { newNames := convertEthtoolDrvinfoNames.ReplaceAll(s, []byte("$1$2[$3]byte")) b = bytes.Replace(b, s, newNames, 1) } // Convert []int8 to []byte in ctl_info ioctl interface convertCtlInfoName := regexp.MustCompile(`(Name)(\s+)\[(\d+)\]int8`) ctlInfoType := regexp.MustCompile(`type CtlInfo struct {[^}]*}`) ctlInfoStructs := ctlInfoType.FindAll(b, -1) for _, s := range ctlInfoStructs { newNames := convertCtlInfoName.ReplaceAll(s, []byte("$1$2[$3]byte")) b = bytes.Replace(b, s, newNames, 1) } // Convert [1024]int8 to [1024]byte in Ptmget members convertPtmget := regexp.MustCompile(`([SC]n)(\s+)\[(\d+)\]u?int8`) b = convertPtmget.ReplaceAll(b, []byte("$1[$3]byte")) // Remove spare fields (e.g. in Statx_t) spareFieldsRegex := regexp.MustCompile(`X__spare\S*`) b = spareFieldsRegex.ReplaceAll(b, []byte("_")) // Remove cgo padding fields removePaddingFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`) b = removePaddingFieldsRegex.ReplaceAll(b, []byte("_")) // Remove padding, hidden, or unused fields removeFieldsRegex = regexp.MustCompile(`\b(X_\S+|Padding)`) b = removeFieldsRegex.ReplaceAll(b, []byte("_")) // Remove the first line of warning from cgo b = b[bytes.IndexByte(b, '\n')+1:] // Modify the command in the header to include: // mkpost, our own warning, and a build tag. replacement := fmt.Sprintf(`$1 | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. //go:build %s && %s`, goarch, goos) cgoCommandRegex := regexp.MustCompile(`(cgo -godefs .*)`) b = cgoCommandRegex.ReplaceAll(b, []byte(replacement)) // Rename Stat_t time fields if goos == "freebsd" && goarch == "386" { // Hide Stat_t.[AMCB]tim_ext fields renameStatTimeExtFieldsRegex := regexp.MustCompile(`[AMCB]tim_ext`) b = renameStatTimeExtFieldsRegex.ReplaceAll(b, []byte("_")) } renameStatTimeFieldsRegex := regexp.MustCompile(`([AMCB])(?:irth)?time?(?:spec)?\s+(Timespec|StTimespec)`) b = renameStatTimeFieldsRegex.ReplaceAll(b, []byte("${1}tim ${2}")) // gofmt b, err = format.Source(b) if err != nil { log.Fatal(err) } os.Stdout.Write(b) }
Close