summaryrefslogtreecommitdiff
path: root/src/librc/rc.h.in
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-02-25 15:00:03 -0600
committerWilliam Hubbs <williamh@gentoo.org>2012-02-25 15:00:03 -0600
commit582c8e986840158db3162a89cf85c29ec4bf7107 (patch)
treec9391af3b17eea6e5adb179bd24b5f7a9da5fd9b /src/librc/rc.h.in
parentde6323ba51fb8525fb1e48b0331c15daf86d5916 (diff)
downloadopenrc-582c8e986840158db3162a89cf85c29ec4bf7107.tar.gz
openrc-582c8e986840158db3162a89cf85c29ec4bf7107.tar.bz2
openrc-582c8e986840158db3162a89cf85c29ec4bf7107.tar.xz
librc: make rc_proc_getent available for all operating systems
This looks up an option on the kernel command line. For now, itworks on linux and returns NULL on the bsds, but we are definitely open to patches for that side.
Diffstat (limited to 'src/librc/rc.h.in')
-rw-r--r--src/librc/rc.h.in2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in
index 468990e..eaae25f 100644
--- a/src/librc/rc.h.in
+++ b/src/librc/rc.h.in
@@ -360,12 +360,10 @@ bool rc_newer_than(const char *, const char *, time_t *, char *);
* @return true if source is older than target, otherwise false */
bool rc_older_than(const char *, const char *, time_t *, char *);
-#ifdef __linux__
/*! Read variables/values from /proc/cmdline
* @param value
* @return pointer to the value, otherwise NULL */
char *rc_proc_getent(const char *);
-#endif
/*! Update the cached dependency tree if it's older than any init script,
* its configuration file or an external configuration file the init script