@@ -34,36 +34,76 @@ libc_enum!{
3434 PTRACE_CONT ,
3535 PTRACE_KILL ,
3636 PTRACE_SINGLESTEP ,
37- #[ cfg( all( any( target_env = "musl" , target_arch ="x86_64" , target_arch = "s390x" ) , not( target_os = "android" ) ) ) ]
37+ #[ cfg( any( all( target_os = "android" , target_pointer_width = "32" ) ,
38+ all( target_os = "linux" , any( target_env = "musl" ,
39+ target_arch = "mips" ,
40+ target_arch = "mips64" ,
41+ target_arch = "s390x" ,
42+ target_arch = "x86_64" ,
43+ target_pointer_width = "32" ) ) ) ) ]
3844 PTRACE_GETREGS ,
39- #[ cfg( all( any( target_env = "musl" , target_arch ="x86_64" , target_arch = "s390x" ) , not( target_os = "android" ) ) ) ]
45+ #[ cfg( any( all( target_os = "android" , target_pointer_width = "32" ) ,
46+ all( target_os = "linux" , any( target_env = "musl" ,
47+ target_arch = "mips" ,
48+ target_arch = "mips64" ,
49+ target_arch = "s390x" ,
50+ target_arch = "x86_64" ,
51+ target_pointer_width = "32" ) ) ) ) ]
4052 PTRACE_SETREGS ,
41- #[ cfg( all( any( target_env = "musl" , target_arch ="x86_64" , target_arch = "s390x" ) , not( target_os = "android" ) ) ) ]
53+ #[ cfg( any( all( target_os = "android" , target_pointer_width = "32" ) ,
54+ all( target_os = "linux" , any( target_env = "musl" ,
55+ target_arch = "mips" ,
56+ target_arch = "mips64" ,
57+ target_arch = "s390x" ,
58+ target_arch = "x86_64" ,
59+ target_pointer_width = "32" ) ) ) ) ]
4260 PTRACE_GETFPREGS ,
43- #[ cfg( all( any( target_env = "musl" , target_arch ="x86_64" , target_arch = "s390x" ) , not( target_os = "android" ) ) ) ]
61+ #[ cfg( any( all( target_os = "android" , target_pointer_width = "32" ) ,
62+ all( target_os = "linux" , any( target_env = "musl" ,
63+ target_arch = "mips" ,
64+ target_arch = "mips64" ,
65+ target_arch = "s390x" ,
66+ target_arch = "x86_64" ,
67+ target_pointer_width = "32" ) ) ) ) ]
4468 PTRACE_SETFPREGS ,
4569 PTRACE_ATTACH ,
4670 PTRACE_DETACH ,
47- #[ cfg( all( any( target_env = "musl" , target_arch ="x86_64" ) , not( target_os = "android" ) ) ) ]
71+ #[ cfg( all( target_os = "linux" , any( target_env = "musl" ,
72+ target_arch = "mips" ,
73+ target_arch = "mips64" ,
74+ target_arch = "arm" ,
75+ target_arch = "x86" ,
76+ target_arch = "x86_64" ) ) ) ]
4877 PTRACE_GETFPXREGS ,
49- #[ cfg( all( any( target_env = "musl" , target_arch ="x86_64" ) , not( target_os = "android" ) ) ) ]
78+ #[ cfg( all( target_os = "linux" , any( target_env = "musl" ,
79+ target_arch = "mips" ,
80+ target_arch = "mips64" ,
81+ target_arch = "arm" ,
82+ target_arch = "x86" ,
83+ target_arch = "x86_64" ) ) ) ]
5084 PTRACE_SETFPXREGS ,
5185 PTRACE_SYSCALL ,
5286 PTRACE_SETOPTIONS ,
5387 PTRACE_GETEVENTMSG ,
5488 PTRACE_GETSIGINFO ,
5589 PTRACE_SETSIGINFO ,
56- #[ cfg( all( any( target_env = "musl" , target_arch ="x86_64" , target_arch = "s390x" ) , not( target_os = "android" ) ) ) ]
90+ #[ cfg( all( target_os = "linux" , not( any( target_arch = "mips" ,
91+ target_arch = "mips64" ) ) ) ) ]
5792 PTRACE_GETREGSET ,
58- #[ cfg( all( any( target_env = "musl" , target_arch ="x86_64" , target_arch = "s390x" ) , not( target_os = "android" ) ) ) ]
93+ #[ cfg( all( target_os = "linux" , not( any( target_arch = "mips" ,
94+ target_arch = "mips64" ) ) ) ) ]
5995 PTRACE_SETREGSET ,
60- #[ cfg( not( any( target_os = "android" , target_arch = "mips" , target_arch = "mips64" ) ) ) ]
96+ #[ cfg( all( target_os = "linux" , not( any( target_arch = "mips" ,
97+ target_arch = "mips64" ) ) ) ) ]
6198 PTRACE_SEIZE ,
62- #[ cfg( not( any( target_os = "android" , target_arch = "mips" , target_arch = "mips64" ) ) ) ]
99+ #[ cfg( all( target_os = "linux" , not( any( target_arch = "mips" ,
100+ target_arch = "mips64" ) ) ) ) ]
63101 PTRACE_INTERRUPT ,
64- #[ cfg( not( any( target_os = "android" , target_arch = "mips" , target_arch = "mips64" ) ) ) ]
102+ #[ cfg( all( target_os = "linux" , not( any( target_arch = "mips" ,
103+ target_arch = "mips64" ) ) ) ) ]
65104 PTRACE_LISTEN ,
66- #[ cfg( not( any( target_os = "android" , target_arch = "mips" , target_arch = "mips64" ) ) ) ]
105+ #[ cfg( all( target_os = "linux" , not( any( target_arch = "mips" ,
106+ target_arch = "mips64" ) ) ) ) ]
67107 PTRACE_PEEKSIGINFO ,
68108 }
69109}
0 commit comments