summaryrefslogtreecommitdiff
path: root/usr/src/man/man3proc/Pread.3proc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3proc/Pread.3proc')
-rw-r--r--usr/src/man/man3proc/Pread.3proc21
1 files changed, 12 insertions, 9 deletions
diff --git a/usr/src/man/man3proc/Pread.3proc b/usr/src/man/man3proc/Pread.3proc
index 8b4eb52da8..5a1e449c31 100644
--- a/usr/src/man/man3proc/Pread.3proc
+++ b/usr/src/man/man3proc/Pread.3proc
@@ -50,14 +50,15 @@ and is logically analogous to the
.Xr pread 2
function.
.Pp
-For live processes, this function is equivalent to reading from the
-/proc file system
+For live processes, this function is equivalent to reading from the /proc file
+system
.Sy as
-file for the process. For core files and file handles, it reads and
-writes from the logical address space and not the corresponding offset
-of the file itself. For example, a core file contains a sparse
-representation of the address space of a crashed process and unmapped
-regions are not present in the file. However,
+file for the process.
+For core files and file handles, it reads and writes from the logical address
+space and not the corresponding offset of the file itself.
+For example, a core file contains a sparse representation of the address space
+of a crashed process and unmapped regions are not present in the file.
+However,
.Fa address
still refers to the virtual addresses that were present at run-time and
not those in the core file.
@@ -73,7 +74,8 @@ into
.Fa buf
if either
.Fa nbytes
-has been read or a null terminator is encountered. The resulting data in
+has been read or a null terminator is encountered.
+The resulting data in
.Fa buf
will always be null terminated, even if no null terminator was found in
the first
@@ -85,7 +87,8 @@ Upon successful completion, the
and
.Fn Pread_string
functions return a non-negative integer indicating the number of bytes
-actually read. Otherwise, the functions return
+actually read.
+Otherwise, the functions return
.Sy -1
and set
.Sy errno