summaryrefslogtreecommitdiff
path: root/src/librc/rc.h.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-06-21 12:20:53 +0100
committerRoy Marples <roy@marples.name>2009-06-21 12:20:53 +0100
commit6abeec74301d8406ebbbd653b9fe9a0e234c09bf (patch)
treeab7484086cf6198ffe0422e48888f463381d7d2f /src/librc/rc.h.in
parentfbb78022f973361a60861cf4b99dda91ccfc1aa5 (diff)
downloadopenrc-6abeec74301d8406ebbbd653b9fe9a0e234c09bf.tar.gz
openrc-6abeec74301d8406ebbbd653b9fe9a0e234c09bf.tar.bz2
openrc-6abeec74301d8406ebbbd653b9fe9a0e234c09bf.tar.xz
Use rc_getline instead of assuming a fixed kernel cmdline length.
This is now requires as COMMAND_LINE_SIZE isn't exposed by kernel headers anymore. Fixes #177.
Diffstat (limited to 'src/librc/rc.h.in')
-rw-r--r--src/librc/rc.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in
index 89ebfed..373f1d1 100644
--- a/src/librc/rc.h.in
+++ b/src/librc/rc.h.in
@@ -517,5 +517,9 @@ typedef LIST_HEAD(rc_pidlist, rc_pid) RC_PIDLIST;
* @return NULL terminated list of pids */
RC_PIDLIST *rc_find_pids(const char *, const char *const *, uid_t, pid_t);
+/* getline is a handy glibc function that not all libcs have, so
+ * we have our own */
+ssize_t rc_getline(char **, size_t *, FILE *);
+
__END_DECLS
#endif