aboutsummaryrefslogtreecommitdiff
path: root/src/libeinfo/libeinfo.c
AgeCommit message (Collapse)Author
2018-06-20libeinfo: convert remaining snprintf calls to xasprintfWilliam Hubbs
2018-06-19libeinfo: clean up gcc 7 compiler warningsWilliam Hubbs
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
2013-10-21Revert "Make einfo routines private"William Hubbs
This reverts commit de88aff0a839844526ae262f8961ec4372fed238. I was advised that splashutils links to libeinfo, so we do have a consumer for this library.
2013-09-26Make einfo routines privateWilliam Hubbs
The libeinfo library has no consumers other than OpenRC, so there is no reason for it to be maintained as a library. The einfo routines are now an object that links with the rc binary.
2013-09-03libeinfo: add separate variable to suppress eerror messagesWilliam Hubbs
Add an EERROR_QUIET environment variable which works like EINFO_QUIET but for the eerror functions. This will allow library consumers to choose whether to suppress eerror messages separately from einfo and ewarn messages. X-Gentoo-Bug: 482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
2013-08-28libeinfo: suppress output for eerror* functionsWilliam Hubbs
This makes the eerror* functions honor the EINFO_QUIET environment variable like the einfo* and ewarn* functions. X-Gentoo-Bug: 482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
2013-08-27Revert "Libeinfo: do not suppress ewarn() messages"William Hubbs
This reverts commit 4ee62c7903c65557c493f51d6703264a816156cd. The previously referenced commit broke consistency because ewarnx() was respecting the EINFO_QUIET environment setting, but after this commit, ewarn() was not. Also, due to discussion on the below referenced bugs, I think we do want to suppress warnings when EINFO_QUIET=yes. X-Gentoo-Bug: 482396 X-Gentoo-Bug: 439174 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439174
2013-01-04libeinfo: check for "color" in the terminal nameAndrew Gregory
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2012-05-06add a new ARRAY_SIZE macro and use itMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-05-06split out librc-independent helpers into a dedicated header fileMike Frysinger
Many of these helpers are not special to librc, so split them out so they can be used in all source trees (including libeinfo). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-08-22Libeinfo: do not suppress ewarn() messagesWilliam Hubbs
The ewarn() function was affected by the EINFO_QUIET environment variable which lead to warning messages being suppressed. Warnings should not be suppressed. Reported-by: Hanno Boeck <hanno@gentoo.org> X-Gentoo-Bug: 380073 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=380073
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-09restore old e* func outputMike Frysinger
Gentoo has always used the sytle: * moo ... [ ok ] Latest openrc now does: * moo... [ok] Realistically, 4 spaces out of 80 on reduced terminals doesn't make any sort of realistic difference and it's been just fine for the last 10 years, so keep the default behavior.
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-23Improve style for KNFRoy Marples
2008-11-26Save more screen space by removing the space befor the * for einfo and ↵Roy Marples
friends. Also remove the leading space before ... for ebegin.
2008-10-08Add a better, but incomplete tgoto implementation to make gcc happy.Roy Marples
2008-10-08Clean up warnings regarding printf.Roy Marples
2008-06-05Remove the macro ;)Roy Marples
2008-06-05Update style to more BSDish and replace the big macro with a function.Roy Marples
2008-03-26Add license blurb to a few files and append my email to my name.Roy Marples
2008-03-23Revert commit 48fc097e39ec9b3edd9a8929fe9faf8f302451ec and add a comment ↵Roy Marples
about making it a runtime config option if it needs to change.
2008-03-23fix spacing in the trailing [ msg ]Mike Frysinger
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-21ewarn now goes to stderr to match portage behaviour.Roy Marples
2008-02-04eoutdent should set the correct env var.Roy Marples
2008-02-01Factor out the str attribute in the ecolors array to its own array. This way ↵Roy Marples
ecolors can be marked const.
2008-01-22Quiet some lint warnings.Roy Marples
2008-01-21Testing the first character for NULL is more efficient than checking a ↵Roy Marples
strlen of 0.
2008-01-21 should not produce a red starRoy Marples
2008-01-14strip trailing newlinesMike Frysinger
2008-01-12Many termcap db's don't have ch or RI even though they do workRoy Marples
2008-01-11Re-indent to a standard tw of 8.Roy Marples
2008-01-10Loads of NetBSD tweaks here.Roy Marples
2008-01-07Allow depend creation again. This doesn't work on GNU make, but does on all ↵Roy Marples
others.
2008-01-05Add the missing changes from the recent Makefile updatesRoy 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.