Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-01-20 | small style fix | William Hubbs | |
2012-01-16 | style fixes | William Hubbs | |
2012-01-15 | Allow overriding of rc.conf options via kernel cmdline | Christian Ruppert | |
This adds a new function that allows us to override some specific rc.conf options via the kernel cmdline aka /proc/cmdline. This makes esp. sense in cases where a rc_parallel enabled system has boot issues. Simply disable rc_parallel by appending rc_parallel=no to your kernel cmdline. | |||
2012-01-15 | Rename proc_getent to rc_proc_getent and make it global | Christian Ruppert | |
2011-07-13 | Add a new function, bool rc_getfile(const char *, char **, size_t *) | Mike Frysinger | |
<snip> Read the entire @file into the buffer and set @len to the size of the buffer when finished. For C strings, this will be strlen(buffer) + 1. Don't forget to free the buffer afterwards! </snip> We also fix bug 374899 by adding this new function. X-Gentoo-Bug: 374899 X-Gentoo-Bug-URL: http://bugs.gentoo.org/374899 | |||
2011-07-09 | Do not skip similar config options | Christian Ruppert | |
OpenRC goes through the config and checks each option for duplicates. Lets say we're on "rc_logger" currently and its the last option in the config file and we previously defined rc_logger_path. It now goes through all previous config options and compares those against the current one "rc_logger" *but* it compares only the first N bytes, in this case strlen("rc_logger"). So it strips the _path from "rc_logger_path" which ends up into "rc_logger" and it compares that against the current one (also "rc_logger"), it would then simply override the previous definition. This patch fixes this behaviour to always compare the full option / variable names. | |||
2011-06-29 | drop useless "All rights reserved" notice | Mike Frysinger | |
Signed-off-by: Mike Frysinger <vapier@gentoo.org> | |||
2011-01-17 | librc: delete trailing newlines | Mike Frysinger | |
Signed-off-by: Mike Frysinger <vapier@gentoo.org> | |||
2011-01-17 | Bug #351570: Hidden function fixes: rc_conf_value. | Robin H. Johnson | |
Refactor rc_conf_value into librc for use in library context. Also requires moving: - rc_conf internal static - Defines: PROFILE_ENV, SYS_WHITELIST, USR_WHITELIST, RC_PATH_PREFIX moved to rc.h with new RC_ prefix added. - Defines: RC_CONF, RC_CONF_OLD moved to rc.h. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> | |||
2011-01-17 | Style fix: "while (" not "while(". | Robin H. Johnson | |
2009-05-01 | Add (c) to Copyright | Roy Marples | |
2009-04-24 | We should match the full variable name. | Roy Marples | |
2009-04-23 | Improve style for KNF | Roy Marples | |
2009-01-29 | Clean up some compiler warnings. | Roy Marples | |
2008-10-10 | sysinit is now a real runlevel that handles things like udev, dmesg and | Roy Marples | |
mounting various bits in /dev and /sys. init.sh JUST mounts /lib/rc/init.d (and /proc for Linux systems) To make development of this easier we now return an empty RC_STRINGLIST instead of a NULL for empty things. If you don't have a udev init script installed, don't reboot your box OR roll back to an older OpenRC version. | |||
2008-09-18 | Add missing profile bits to env, #72. | Roy Marples | |
2008-05-19 | realloc -> xrealloc | Roy Marples | |
2008-05-19 | Fix a potential segfault, thanks to Fernando J. Pereda. | Roy Marples | |
2008-05-12 | Style. | Roy Marples | |
2008-03-26 | Add license blurb to a few files and append my email to my name. | Roy Marples | |
2008-03-26 | Fix a segfault if rc.conf does not exist, Gentoo #214887 | Roy Marples | |
2008-03-17 | Make rc_getline private and save it's buffer so it's sort of like getline ↵ | Roy Marples | |
from glibc. | |||
2008-03-17 | Punt the rc_strcatpaths function and use snprintf instead to save on ↵ | Roy Marples | |
expensive malloc calls. | |||
2008-03-16 | Remove 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-22 | Welcome to 2008. | Roy Marples | |
2008-01-22 | Quiet some lint warnings. | Roy Marples | |
2008-01-21 | Checking first char for null is more efficient than strlen. | Roy Marples | |
2008-01-18 | We should never change the list passed to rc_config_value. | Roy Marples | |
2008-01-14 | strip trailing newlines | Mike Frysinger | |
2008-01-11 | Re-indent to a standard tw of 8. | Roy Marples | |
2008-01-10 | Loads of NetBSD tweaks here. | Roy Marples | |
2008-01-07 | Avoid valgrind errors with getline. | Roy Marples | |
2008-01-07 | Really fix off by one error. | Roy Marples | |
2008-01-07 | Fix an off by one error. | Roy Marples | |
2008-01-07 | rc_getline keeps expanding it's malloced buffer until it has read a whole ↵ | Roy Marples | |
line or EOF. All functions which read into static buffers have been changed to use fhis function to avoid any potential overflows and to ensure we really do read a long long config line. | |||
2008-01-06 | Use a dynamically expanding buffer for reading config files. | Roy Marples | |
2008-01-05 | Add 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. |