aboutsummaryrefslogtreecommitdiff
path: root/src/rc/_usage.c
AgeCommit message (Collapse)Author
2016-01-19librc: move system detection code into rc_sys and use itDoug Freed
This fixes an issue where librc code was calling code that only existed in the rc binary. This reverts commits 8addd79 and 9f6e056 This fixes #75.
2016-01-18Revert "rc: make get_systype similar to the old rc_sys function"William Hubbs
This reverts commit f79a7a7be18d68bf264efc60d82838d03048da6b.
2016-01-18rc: make get_systype similar to the old rc_sys functionWilliam Hubbs
2016-01-14include rc.h properly in source filesWilliam Hubbs
We were attempting to include rc.h in rc-misc.h instead of the source files where it should be included.
2016-01-12Remove multicall binary structure from OpenRCWilliam Hubbs
This eliminates the need for the selinux-specific wrapper scrript we were installing in /lib*/rc/{bin,sbin}.
2016-01-05rc: fix compiler warnings cleanupWilliam Hubbs
This reverts commit 981d2b3308edb0d0a68f7bdce4f2c99110de6940 and fixes the warnings that generated.
2016-01-01rc: clean up compiler warningsWilliam Hubbs
The get_systype(), detect_container(), detect_prefix() and detect_vm() functions need to return "char *" instead of "const char *".
2015-12-21Convert OpenRC to a centralized copyright/license structureWilliam Hubbs
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
2015-12-08Convert rc_sys() calls to detect_container() and detect_vm()William Hubbs
2015-12-05Rename bootlevel variable in _usage.cWilliam Hubbs
In src/rc/_usage.c, we were using bootlevel as the variable to hold the return value of rc_sys. This changes the variable name to systype because this function returns a system type, not a runlevel.
2013-09-03rc: add support for suppressing error messagesWilliam Hubbs
Add support for suppressing error messages with --quiet specified twice on the command line. X-Gentoo-Bug: 482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
2011-11-19rc: usage: do not output non-printable short options in usageMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-19rc: usage: optimize help string alignment output a littleMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-14make version option commonWilliam Hubbs
This reworks the code for the version option so that it is part of the parser loop and is a common option to all applets.
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-23Improve style for KNFRoy Marples
2008-03-26Add license blurb to a few files and append my email to my name.Roy Marples
2008-03-16Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ ↵Roy Marples
from queue(3). Refactor code style around the BSD KNF.
2008-02-22Welcome to 2008.Roy Marples
2008-02-22More PCC fixes.Roy Marples
2008-02-20Support the PCC compiler.Roy Marples
2008-01-22Quiet some more lint warnings.Roy Marples
2008-01-15We should not use options for rc-update, as add, delete and such are commands.Roy Marples
2008-01-14strip trailing newlinesMike Frysinger
2008-01-11Re-indent to a standard tw of 8.Roy Marples
2008-01-05Add some .mk stubs to impersonate bsk .mk files to make writing our ↵Roy Marples
Makefiles easier. libeinfo, librc and rc now have their own seperate directories. More work is needed to tidy this up though.