From: oetiker Date: Mon, 28 Sep 2009 16:16:35 +0000 (+0000) Subject: documentation for rrd_mkdir_p added -- Sebastian Harl X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8753076ac00af4a10484417a91d1c07baa872fbe;p=rrdtool.git documentation for rrd_mkdir_p added -- Sebastian Harl git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1916 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/doc/librrd.pod b/doc/librrd.pod index 04a295d..4daa93c 100644 --- a/doc/librrd.pod +++ b/doc/librrd.pod @@ -58,6 +58,34 @@ source pointer will be NULL and the count will be zero. rrd_free_ptrs(&arr, &arr_size); /* here, arr == NULL && arr_size == 0 */ +=item B + +Create the directory named C including all of its parent +directories (similar to C on the command line - see L for +more information). The argument C specifies the permissions to use. It +is modified by the process's C. See L for more details. + +The function returns 0 on success, a negative value else. In case of an error, +C is set accordingly. Aside from the errors documented in L, +the function may fail with the following errors: + +=over 4 + +=item B + +C is C or the empty string. + +=item B + +Insufficient memory was available. + +=item B> + +=back + +In contrast to L, the function does B fail if C +already exists and is a directory. + =item B In some situations it is necessary to get the output of C without