Skip to content
Snippets Groups Projects
Unverified Commit 2f5dd3be authored by Marcin Ślusarz's avatar Marcin Ślusarz Committed by GitHub
Browse files

Merge pull request #4041 from wlemkows/pmem-errormsg-fix-doc

doc: fix pmem_errormsg description
parents 55f00eec b3730f9a
No related branches found
No related tags found
No related merge requests found
......@@ -265,7 +265,7 @@ place the mapping.
# DEBUGGING AND ERROR HANDLING #
If an error is detected during the call to a **libpmem** function, the
application may retrieve an error message describing the reason for the failure
application may retrieve an error message describing the reason of the failure
from _UW(pmem_errormsg). This function returns a pointer to a static buffer
containing the last error message logged for the current thread. If *errno*
was set, the error message may include a description of the corresponding
......@@ -273,9 +273,9 @@ error code as returned by **strerror**(3). The error message buffer is
thread-local; errors encountered in one thread do not affect its value in
other threads. The buffer is never cleared by any library function; its
content is significant only when the return value of the immediately preceding
call to a **libpmem** function indicated an error, or if *errno* was set.
The application must not modify or free the error message string, but it may
be modified by subsequent calls to other library functions.
call to a **libpmem** function indicated an error.
The application must not modify or free the error message string.
Subsequent calls to other library functions may modify the previous message.
Two versions of **libpmem** are typically available on a development
system. The normal version, accessed when a program is linked using the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment