aboutsummaryrefslogtreecommitdiff
path: root/src/libeinfo
AgeCommit message (Collapse)Author
2022-04-06migrate fully to meson build systemWilliam Hubbs
- drop old build system - move shared include and source files to common directory - drop "rc-" prefix from shared include and source files - move executable-specific code to individual directories under src - adjust top-level .gitignore file for new build system This closes #489.
2021-12-21code style: remove space after unary "not" operatorMatt Whitlock
There are no semantic changes in this commit. Suggested-by: Mike Frysinger <vapier@gentoo.org> See: https://github.com/OpenRC/openrc/pull/435#pullrequestreview-727035394
2021-12-20use HEAD in git URIs to point to the default branchMike Frysinger
This makes the URIs shorter and dynamic: whatever the default branch the repo uses will be used.
2021-12-20drop unused copyright variablesMike Frysinger
The existing copyright notices in the file headers cover these vars.
2021-09-04add meson build filesWilliam Hubbs
Closes #116. Closes #171. Closes #172. Closes #175.
2019-07-24Fix build with ClangMartin Wilke
This fixes #313.
2019-02-26remove hidden-visibility.hWilliam Hubbs
I am removing this on the advice of a member of the Gentoo toolchain team. It was explained to me that this doesn't offer any significant benefits to OpenRC. If anyone ffeels differently, please open a pull request reverting this and adding an explanation of what it does and how to know which functions to mark hidden in the future. This fixes #301.
2018-06-20libeinfo: convert remaining snprintf calls to xasprintfWilliam Hubbs
2018-06-19libeinfo: clean up gcc 7 compiler warningsWilliam Hubbs
2016-07-13libeinfo: document the x suffix on function namesJaromil
This fixes #88.
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-01-24Prioritize local includes and librariesWill Miles
This fixes #35.
2014-10-22einfo.h, rc.h.in: simplify __BEGIN_DECLS logicAnthony G. Basile
There is no need to redefine __BEGIN_DECLS and __END_DECLS. We simplify the logic here and avoid undefining these macros.
2014-10-21einfo.h, rc.h.in: ensure __BEGIN_DECLS is definedAnthony G. Basile
Some Standard C Libraries, like musl, don't define __BEGIN_DECLS or __END_DECLS. We add some ifdef magic to ensure these are available.
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>
2011-06-03clean up gitignore filesMike Frysinger
Rather than listing explicit object files, ignore all of them in the whole tree. Also ignore patch/gdb related files throughout. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-28cc.mk: move debug.mk out of end MakefilesMike Frysinger
Since we always want debug.mk whenever we include cc.mk, move the include out of the Makefiles and into cc.mk itself. This also fixes an include order bug in rc/Makefile where debug.mk is included before cc.mk and breaks the default CFLAGS setup in cc.mk. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-04rework pam, ncurses and termcap include filesWilliam Hubbs
This allows error checking inside the included files instead of either including the appropriate file or a blank file. Also the blank file named .mk gets removed by this change.
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-30Go back to gitRoy Marples
2009-04-23Improve style for KNFRoy Marples
2008-12-04Punt .gitignore files.Roy 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-19Use CPPFLAGS so we work with -combine in CFLAGS.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-28Allow our headers to be included by C++ programs easily.Roy Marples
2008-03-26Add license blurb to a few files and append my email to my name.Roy Marples
2008-03-24Fix debug support to work without gmake and bundle -ggdb in properly.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-19Rejig the build system a little so we have per ok defs per system. Probably ↵Roy Marples
easier in the long run.
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-03-03Fix ignore files some more.Roy Marples
2008-03-03Add a gitignore make target.Roy Marples
2008-02-28Support the use of PREFIX and PKG_PREFIX.Roy Marples
2008-02-22Welcome to 2008.Roy Marples
2008-02-22More PCC fixes.Roy Marples