aboutsummaryrefslogtreecommitdiff
path: root/src/librc/rc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc/rc.h')
-rw-r--r--src/librc/rc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librc/rc.h b/src/librc/rc.h
index 0020764e..fe1213b0 100644
--- a/src/librc/rc.h
+++ b/src/librc/rc.h
@@ -39,6 +39,7 @@
#include <sys/types.h>
#include <stdbool.h>
+#include <stdio.h>
/*! @name Reserved runlevel names */
#define RC_LEVEL_SYSINIT "sysinit"
@@ -347,6 +348,9 @@ extern FILE *rc_environ_fd;
/*! @name Configuration
* These functions help to deal with shell based configuration files */
+/*! Return a line from a file, stripping the trailing newline. */
+char *rc_getline (FILE *fp);
+
/*! Return a NULL terminated list of non comment lines from a file. */
char **rc_config_list (const char *file);