summaryrefslogtreecommitdiff
path: root/src/librc/rc.map
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-07-13 21:27:34 +0200
committerChristian Ruppert <idl0r@gentoo.org>2011-07-13 21:31:20 +0200
commitfdaf1c65cdcba2d9b83e02cc0d08fb6dbbd80a80 (patch)
tree6a106882bb41f58f7d6b06075569372d97c9774a /src/librc/rc.map
parentef22868f3668fe833cdf297e619afe5b721f7716 (diff)
downloadopenrc-fdaf1c65cdcba2d9b83e02cc0d08fb6dbbd80a80.tar.gz
openrc-fdaf1c65cdcba2d9b83e02cc0d08fb6dbbd80a80.tar.bz2
openrc-fdaf1c65cdcba2d9b83e02cc0d08fb6dbbd80a80.tar.xz
Add a new function, bool rc_getfile(const char *, char **, size_t *)
<snip> Read the entire @file into the buffer and set @len to the size of the buffer when finished. For C strings, this will be strlen(buffer) + 1. Don't forget to free the buffer afterwards! </snip> We also fix bug 374899 by adding this new function. X-Gentoo-Bug: 374899 X-Gentoo-Bug-URL: http://bugs.gentoo.org/374899
Diffstat (limited to 'src/librc/rc.map')
-rw-r--r--src/librc/rc.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librc/rc.map b/src/librc/rc.map
index c5f10ad..0f45cdf 100644
--- a/src/librc/rc.map
+++ b/src/librc/rc.map
@@ -14,6 +14,7 @@ global:
rc_deptree_update_needed;
rc_environ_fd;
rc_find_pids;
+ rc_getfile;
rc_getline;
rc_newer_than;
rc_older_than;