File: ptrace_utils.h

package info (click to toggle)
reprozip 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: ansic: 2,801; python: 2,733; sh: 20; makefile: 11
file content (18 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef PTRACE_UTILS_H
#define PTRACE_UTILS_H

void *tracee_getptr(int mode, pid_t tid, const void *addr);
uint64_t tracee_getlong(int mode, pid_t tid, const void *addr);
uint64_t tracee_getu64(pid_t tid, const void *addr);
size_t tracee_getwordsize(int mode);

size_t tracee_strlen(pid_t tid, const char *str);

void tracee_read(pid_t tid, char *dst, const char *src, size_t size);

char *tracee_strdup(pid_t tid, const char *str);

char **tracee_strarraydup(int mode, pid_t tid, const char *const *argv);
void free_strarray(char **array);

#endif