diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-04-18 10:20:49 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-04-18 10:20:49 +0200 |
commit | e34d491ee14d6fc76294296552a070004493af32 (patch) | |
tree | 3d3105ad2928c0324ba3428a387c31958299ff22 /doc/info/mds.texinfo | |
parent | typo + update todo (diff) | |
download | mds-e34d491ee14d6fc76294296552a070004493af32.tar.gz mds-e34d491ee14d6fc76294296552a070004493af32.tar.bz2 mds-e34d491ee14d6fc76294296552a070004493af32.tar.xz |
m doc + iprint and iprintf macros + siginfo on mds, mds-vt and mds-respawn
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'doc/info/mds.texinfo')
-rw-r--r-- | doc/info/mds.texinfo | 16 |
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 |