summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d276a41)
raw | patch | inline | side by side (parent: d276a41)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 28 Sep 2009 16:16:35 +0000 (16:16 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 28 Sep 2009 16:16:35 +0000 (16:16 +0000) |
program/doc/librrd.pod | patch | blob | history |
diff --git a/program/doc/librrd.pod b/program/doc/librrd.pod
index 04a295d520f9de7d341453ff0db3dfb317f0f66d..4daa93cf73c74bc5533564b60ca8073175e2c1aa 100644 (file)
--- a/program/doc/librrd.pod
+++ b/program/doc/librrd.pod
rrd_free_ptrs(&arr, &arr_size);
/* here, arr == NULL && arr_size == 0 */
+=item B<rrd_mkdir_p(const char *pathname, mode_t mode)>
+
+Create the directory named C<pathname> including all of its parent
+directories (similar to C<mkdir -p> on the command line - see L<mkdir(1)> for
+more information). The argument C<mode> specifies the permissions to use. It
+is modified by the process's C<umask>. See L<mkdir(2)> for more details.
+
+The function returns 0 on success, a negative value else. In case of an error,
+C<errno> is set accordingly. Aside from the errors documented in L<mkdir(2)>,
+the function may fail with the following errors:
+
+=over 4
+
+=item B<EINVAL>
+
+C<pathname> is C<NULL> or the empty string.
+
+=item B<ENOMEM>
+
+Insufficient memory was available.
+
+=item B<any error returned by L<stat(2)>>
+
+=back
+
+In contrast to L<mkdir(2)>, the function does B<not> fail if C<pathname>
+already exists and is a directory.
+
=item B<rrd_dump_cr_r(char *filename, int opt_header, rrd_output_callback_t cb, void *user)>
In some situations it is necessary to get the output of C<rrd_dump> without