aboutsummaryrefslogtreecommitdiffstats
path: root/doc/info/mds.texinfo
diff options
context:
space:
mode:
Diffstat (limited to 'doc/info/mds.texinfo')
-rw-r--r--doc/info/mds.texinfo16
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo
index 79449ae..05cd511 100644
--- a/doc/info/mds.texinfo
+++ b/doc/info/mds.texinfo
@@ -3885,7 +3885,8 @@ this to find out how large the buffer is so it can call
@item @code{eprint} [(@code{const char* format}) @arrow{} @code{int}]
A wrapper for @code{fprintf} that prints a string prefixed
-with the value value of @code{*argv} to @code{stderr}.
+with the value of @code{*argv} to @code{stderr}.
+This wrapper also as a line feed to the end of the text.
Because @code{eprintf} naïvely wraps @code{fprintf}, all
`%':s in the string must be duplicated.
@@ -3894,6 +3895,19 @@ Because @code{eprintf} naïvely wraps @code{fprintf}, all
that can be used to insert values into the format string
just like you can do in @code{fprintf}.
+@item @code{iprint} [(@code{const char* format}) @arrow{} @code{int}]
+A wrapper for @code{fprintf} that prints a string prefixed
+with the value of @code{*argv}, as well a label telling the
+user that the output is part of a state and statistics dump,
+to @code{stderr}. This wrapper also as a line feed to the
+end of the text. Because @code{eprintf} naïvely wraps
+@code{fprintf}, all `%':s in the string must be duplicated.
+
+@item @code{iprintf} [(@code{const char* format, ...}) @arrow{} @code{int}]
+@code{eprint} extends @code{iprint} with variadic arguments
+that can be used to insert values into the format string
+just like you can do in @code{fprintf}.
+
@item @code{with_mutex} [(@code{pthread_mutex_t mutex, instructions})]
Wraps @code{instructions} with @code{errno = pthread_mutex_lock(mutex);}
and @code{errno = pthread_mutex_unlock(mutex);}, so a set of