1 PREAD(3PROC) Process Control Library Functions PREAD(3PROC)
2
3 NAME
4 Pread, Pread_string - read data from a process
5
6 SYNOPSIS
7 Process Control Library (libproc, -lproc)
8 #include <libproc.h>
9
10 ssize_t
11 Pread(struct ps_prochandle *P, void *buf, size_t nbytes,
12 uintptr_t address);
13
14 ssize_t
15 Pread_string(struct ps_prochandle *P, char *buf, size_t nbytes,
16 uintptr_t address);
17
18 DESCRIPTION
19 The Pread() function reads data from the process handle P starting at
20 address in the address space of the process and reads at most nbytes of
21 data into buf and is logically analogous to the pread(2) function.
22
23 For live processes, this function is equivalent to reading from the /proc
24 file system as file for the process. For core files and file handles, it
25 reads and writes from the logical address space and not the corresponding
26 offset of the file itself. For example, a core file contains a sparse
27 representation of the address space of a crashed process and unmapped
|
1 PREAD(3PROC) Process Control Library Functions PREAD(3PROC)
2
3 NAME
4 Pread, Pread_string - read data from a process
5
6 LIBRARY
7 Process Control Library (libproc, -lproc)
8
9 SYNOPSIS
10 #include <libproc.h>
11
12 ssize_t
13 Pread(struct ps_prochandle *P, void *buf, size_t nbytes,
14 uintptr_t address);
15
16 ssize_t
17 Pread_string(struct ps_prochandle *P, char *buf, size_t nbytes,
18 uintptr_t address);
19
20 DESCRIPTION
21 The Pread() function reads data from the process handle P starting at
22 address in the address space of the process and reads at most nbytes of
23 data into buf and is logically analogous to the pread(2) function.
24
25 For live processes, this function is equivalent to reading from the /proc
26 file system as file for the process. For core files and file handles, it
27 reads and writes from the logical address space and not the corresponding
28 offset of the file itself. For example, a core file contains a sparse
29 representation of the address space of a crashed process and unmapped
|