Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/sys
File: ptrace.h
/* `ptrace' debugger support interface. Linux/x86 version.
[0] Fix | Delete
Copyright (C) 1996-2018 Free Software Foundation, Inc.
[1] Fix | Delete
[2] Fix | Delete
This file is part of the GNU C Library.
[3] Fix | Delete
[4] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[5] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[6] Fix | Delete
License as published by the Free Software Foundation; either
[7] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[8] Fix | Delete
[9] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[10] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[11] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[12] Fix | Delete
Lesser General Public License for more details.
[13] Fix | Delete
[14] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[15] Fix | Delete
License along with the GNU C Library; if not, see
[16] Fix | Delete
<http://www.gnu.org/licenses/>. */
[17] Fix | Delete
[18] Fix | Delete
#ifndef _SYS_PTRACE_H
[19] Fix | Delete
#define _SYS_PTRACE_H 1
[20] Fix | Delete
[21] Fix | Delete
#include <features.h>
[22] Fix | Delete
#include <bits/types.h>
[23] Fix | Delete
[24] Fix | Delete
__BEGIN_DECLS
[25] Fix | Delete
[26] Fix | Delete
/* Type of the REQUEST argument to `ptrace.' */
[27] Fix | Delete
enum __ptrace_request
[28] Fix | Delete
{
[29] Fix | Delete
/* Indicate that the process making this request should be traced.
[30] Fix | Delete
All signals received by this process can be intercepted by its
[31] Fix | Delete
parent, and its parent can use the other `ptrace' requests. */
[32] Fix | Delete
PTRACE_TRACEME = 0,
[33] Fix | Delete
#define PT_TRACE_ME PTRACE_TRACEME
[34] Fix | Delete
[35] Fix | Delete
/* Return the word in the process's text space at address ADDR. */
[36] Fix | Delete
PTRACE_PEEKTEXT = 1,
[37] Fix | Delete
#define PT_READ_I PTRACE_PEEKTEXT
[38] Fix | Delete
[39] Fix | Delete
/* Return the word in the process's data space at address ADDR. */
[40] Fix | Delete
PTRACE_PEEKDATA = 2,
[41] Fix | Delete
#define PT_READ_D PTRACE_PEEKDATA
[42] Fix | Delete
[43] Fix | Delete
/* Return the word in the process's user area at offset ADDR. */
[44] Fix | Delete
PTRACE_PEEKUSER = 3,
[45] Fix | Delete
#define PT_READ_U PTRACE_PEEKUSER
[46] Fix | Delete
[47] Fix | Delete
/* Write the word DATA into the process's text space at address ADDR. */
[48] Fix | Delete
PTRACE_POKETEXT = 4,
[49] Fix | Delete
#define PT_WRITE_I PTRACE_POKETEXT
[50] Fix | Delete
[51] Fix | Delete
/* Write the word DATA into the process's data space at address ADDR. */
[52] Fix | Delete
PTRACE_POKEDATA = 5,
[53] Fix | Delete
#define PT_WRITE_D PTRACE_POKEDATA
[54] Fix | Delete
[55] Fix | Delete
/* Write the word DATA into the process's user area at offset ADDR. */
[56] Fix | Delete
PTRACE_POKEUSER = 6,
[57] Fix | Delete
#define PT_WRITE_U PTRACE_POKEUSER
[58] Fix | Delete
[59] Fix | Delete
/* Continue the process. */
[60] Fix | Delete
PTRACE_CONT = 7,
[61] Fix | Delete
#define PT_CONTINUE PTRACE_CONT
[62] Fix | Delete
[63] Fix | Delete
/* Kill the process. */
[64] Fix | Delete
PTRACE_KILL = 8,
[65] Fix | Delete
#define PT_KILL PTRACE_KILL
[66] Fix | Delete
[67] Fix | Delete
/* Single step the process. */
[68] Fix | Delete
PTRACE_SINGLESTEP = 9,
[69] Fix | Delete
#define PT_STEP PTRACE_SINGLESTEP
[70] Fix | Delete
[71] Fix | Delete
/* Get all general purpose registers used by a processes. */
[72] Fix | Delete
PTRACE_GETREGS = 12,
[73] Fix | Delete
#define PT_GETREGS PTRACE_GETREGS
[74] Fix | Delete
[75] Fix | Delete
/* Set all general purpose registers used by a processes. */
[76] Fix | Delete
PTRACE_SETREGS = 13,
[77] Fix | Delete
#define PT_SETREGS PTRACE_SETREGS
[78] Fix | Delete
[79] Fix | Delete
/* Get all floating point registers used by a processes. */
[80] Fix | Delete
PTRACE_GETFPREGS = 14,
[81] Fix | Delete
#define PT_GETFPREGS PTRACE_GETFPREGS
[82] Fix | Delete
[83] Fix | Delete
/* Set all floating point registers used by a processes. */
[84] Fix | Delete
PTRACE_SETFPREGS = 15,
[85] Fix | Delete
#define PT_SETFPREGS PTRACE_SETFPREGS
[86] Fix | Delete
[87] Fix | Delete
/* Attach to a process that is already running. */
[88] Fix | Delete
PTRACE_ATTACH = 16,
[89] Fix | Delete
#define PT_ATTACH PTRACE_ATTACH
[90] Fix | Delete
[91] Fix | Delete
/* Detach from a process attached to with PTRACE_ATTACH. */
[92] Fix | Delete
PTRACE_DETACH = 17,
[93] Fix | Delete
#define PT_DETACH PTRACE_DETACH
[94] Fix | Delete
[95] Fix | Delete
/* Get all extended floating point registers used by a processes. */
[96] Fix | Delete
PTRACE_GETFPXREGS = 18,
[97] Fix | Delete
#define PT_GETFPXREGS PTRACE_GETFPXREGS
[98] Fix | Delete
[99] Fix | Delete
/* Set all extended floating point registers used by a processes. */
[100] Fix | Delete
PTRACE_SETFPXREGS = 19,
[101] Fix | Delete
#define PT_SETFPXREGS PTRACE_SETFPXREGS
[102] Fix | Delete
[103] Fix | Delete
/* Continue and stop at the next entry to or return from syscall. */
[104] Fix | Delete
PTRACE_SYSCALL = 24,
[105] Fix | Delete
#define PT_SYSCALL PTRACE_SYSCALL
[106] Fix | Delete
[107] Fix | Delete
/* Get a TLS entry in the GDT. */
[108] Fix | Delete
PTRACE_GET_THREAD_AREA = 25,
[109] Fix | Delete
#define PT_GET_THREAD_AREA PTRACE_GET_THREAD_AREA
[110] Fix | Delete
[111] Fix | Delete
/* Change a TLS entry in the GDT. */
[112] Fix | Delete
PTRACE_SET_THREAD_AREA = 26,
[113] Fix | Delete
#define PT_SET_THREAD_AREA PTRACE_SET_THREAD_AREA
[114] Fix | Delete
[115] Fix | Delete
#ifdef __x86_64__
[116] Fix | Delete
/* Access TLS data. */
[117] Fix | Delete
PTRACE_ARCH_PRCTL = 30,
[118] Fix | Delete
# define PT_ARCH_PRCTL PTRACE_ARCH_PRCTL
[119] Fix | Delete
#endif
[120] Fix | Delete
[121] Fix | Delete
/* Continue and stop at the next syscall, it will not be executed. */
[122] Fix | Delete
PTRACE_SYSEMU = 31,
[123] Fix | Delete
#define PT_SYSEMU PTRACE_SYSEMU
[124] Fix | Delete
[125] Fix | Delete
/* Single step the process, the next syscall will not be executed. */
[126] Fix | Delete
PTRACE_SYSEMU_SINGLESTEP = 32,
[127] Fix | Delete
#define PT_SYSEMU_SINGLESTEP PTRACE_SYSEMU_SINGLESTEP
[128] Fix | Delete
[129] Fix | Delete
/* Execute process until next taken branch. */
[130] Fix | Delete
PTRACE_SINGLEBLOCK = 33,
[131] Fix | Delete
#define PT_STEPBLOCK PTRACE_SINGLEBLOCK
[132] Fix | Delete
[133] Fix | Delete
/* Set ptrace filter options. */
[134] Fix | Delete
PTRACE_SETOPTIONS = 0x4200,
[135] Fix | Delete
#define PT_SETOPTIONS PTRACE_SETOPTIONS
[136] Fix | Delete
[137] Fix | Delete
/* Get last ptrace message. */
[138] Fix | Delete
PTRACE_GETEVENTMSG = 0x4201,
[139] Fix | Delete
#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
[140] Fix | Delete
[141] Fix | Delete
/* Get siginfo for process. */
[142] Fix | Delete
PTRACE_GETSIGINFO = 0x4202,
[143] Fix | Delete
#define PT_GETSIGINFO PTRACE_GETSIGINFO
[144] Fix | Delete
[145] Fix | Delete
/* Set new siginfo for process. */
[146] Fix | Delete
PTRACE_SETSIGINFO = 0x4203,
[147] Fix | Delete
#define PT_SETSIGINFO PTRACE_SETSIGINFO
[148] Fix | Delete
[149] Fix | Delete
/* Get register content. */
[150] Fix | Delete
PTRACE_GETREGSET = 0x4204,
[151] Fix | Delete
#define PTRACE_GETREGSET PTRACE_GETREGSET
[152] Fix | Delete
[153] Fix | Delete
/* Set register content. */
[154] Fix | Delete
PTRACE_SETREGSET = 0x4205,
[155] Fix | Delete
#define PTRACE_SETREGSET PTRACE_SETREGSET
[156] Fix | Delete
[157] Fix | Delete
/* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
[158] Fix | Delete
signal or group stop state. */
[159] Fix | Delete
PTRACE_SEIZE = 0x4206,
[160] Fix | Delete
#define PTRACE_SEIZE PTRACE_SEIZE
[161] Fix | Delete
[162] Fix | Delete
/* Trap seized tracee. */
[163] Fix | Delete
PTRACE_INTERRUPT = 0x4207,
[164] Fix | Delete
#define PTRACE_INTERRUPT PTRACE_INTERRUPT
[165] Fix | Delete
[166] Fix | Delete
/* Wait for next group event. */
[167] Fix | Delete
PTRACE_LISTEN = 0x4208,
[168] Fix | Delete
#define PTRACE_LISTEN PTRACE_LISTEN
[169] Fix | Delete
[170] Fix | Delete
/* Retrieve siginfo_t structures without removing signals from a queue. */
[171] Fix | Delete
PTRACE_PEEKSIGINFO = 0x4209,
[172] Fix | Delete
#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
[173] Fix | Delete
[174] Fix | Delete
/* Get the mask of blocked signals. */
[175] Fix | Delete
PTRACE_GETSIGMASK = 0x420a,
[176] Fix | Delete
#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
[177] Fix | Delete
[178] Fix | Delete
/* Change the mask of blocked signals. */
[179] Fix | Delete
PTRACE_SETSIGMASK = 0x420b,
[180] Fix | Delete
#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
[181] Fix | Delete
[182] Fix | Delete
/* Get seccomp BPF filters. */
[183] Fix | Delete
PTRACE_SECCOMP_GET_FILTER = 0x420c,
[184] Fix | Delete
#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
[185] Fix | Delete
[186] Fix | Delete
/* Get seccomp BPF filter metadata. */
[187] Fix | Delete
PTRACE_SECCOMP_GET_METADATA = 0x420d
[188] Fix | Delete
#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
[189] Fix | Delete
};
[190] Fix | Delete
[191] Fix | Delete
[192] Fix | Delete
#include <bits/ptrace-shared.h>
[193] Fix | Delete
[194] Fix | Delete
__END_DECLS
[195] Fix | Delete
[196] Fix | Delete
#endif /* _SYS_PTRACE_H */
[197] Fix | Delete
[198] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function