summaryrefslogtreecommitdiff
path: root/src/rc/rc-misc.c
Commit message (Collapse)AuthorAge
* add RC_PREFIX environment variableWilliam Hubbs2012-09-09
| | | | | This will be used by init scripts which want to be able to run in a Gentoo Prefix installation. RC_PREFIX will contain the prefix offset.
* Add is_writable() function to check whether a path is writable or notChristian Ruppert2012-01-26
|
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Bug #351570: Hidden function fixes: rc_conf_value.Robin H. Johnson2011-01-17
| | | | | | | | | | | 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>
* Style fix: "char *foo" not "char* foo".Robin H. Johnson2011-01-17
|
* Clean up all trailing whitespace in src/.Robin H. Johnson2011-01-17
|
* Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples2009-05-23
| | | | | | | | OpenRC version is now stored as plaintext in /libexec/rc/version Plugins (cursplash, splashutils) will have to be re-compiled to pickup the new directories. State data needs to be moved from /lib/rc/init.d to /libexec/rc/init.d as well.
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Improve style for KNFRoy Marples2009-04-23
|
* Don't leak the lock fd.Roy Marples2009-04-18
|
* Using fifos for locking can be error prone.Roy Marples2009-04-17
| | | | | | | flocks are safer, as we only use tmpfs for our lock files. I don't know how this works for inactive just yet though ...
* Don't allow SYSVINIT parameters through anymore.Roy Marples2009-01-13
| | | | | | RC_REBOOT is now yes when rebooting. Document the special reboot runlevel.
* sysinit is now a real runlevel that handles things like udev, dmesg andRoy Marples2008-10-10
| | | | | | | | | | | 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.
* #ifdef atexit cleanups calling free as the OS should do this for us, but ↵Roy Marples2008-10-06
| | | | valgrind debuggers need it.
* Fix a segfault when profile.env does not exist.Roy Marples2008-10-03
|
* Add missing profile bits to env, #72.Roy Marples2008-09-18
|
* Use the new rc_stringlist_find function.Roy Marples2008-09-18
|
* Add -k,--umask option, Gentoo #232455.Roy Marples2008-08-20
|
* Add RC_TMPDIR so that there's a writeable location during boot.Roy Marples2008-04-21
|
* Cast to unsigned char for ctype calls.Roy Marples2008-04-17
|
* Put some dir locations in rc.h so that 3rd party apps can become awware of them.Roy Marples2008-03-28
|
* Remove rc_service_start/stop from librc as they block and unmask signals. ↵Roy Marples2008-03-28
| | | | The application may not wish this behaviour and should fork/exec the service itself.
* Add license blurb to a few files and append my email to my name.Roy Marples2008-03-26
|
* Fix a segfault if rc.conf does not exist, Gentoo #214887Roy Marples2008-03-26
|
* Add rc-service and update all softlevel refs to runlevel.Roy Marples2008-03-19
|
* Use correct TAILQ_CONCAT macro when not defined.Roy Marples2008-03-16
|
* Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ ↵Roy Marples2008-03-16
| | | | from queue(3). Refactor code style around the BSD KNF.
* Add tunable SYSCONFDIRRoy Marples2008-03-05
|
* Welcome to 2008.Roy Marples2008-02-22
|
* Simply our code - only set env vars when needed.Roy Marples2008-02-20
|
* Fix compile on Linux.Roy Marples2008-02-19
|
* Add the nojail keyword which excludes services marked as such from the ↵Roy Marples2008-02-19
| | | | dependency tree when in a jail, #bug 22
* Fix an off by one error when parsing PATHRoy Marples2008-02-09
|
* Block signals to avoid fork /signal races.Roy Marples2008-02-02
|
* Use sigaction over signal.Roy Marples2008-02-01
|
* Quiet some more lint warnings.Roy Marples2008-01-22
|
* We should never change the list passed to rc_config_value.Roy Marples2008-01-18
|
* Style.Roy Marples2008-01-18
|
* strip trailing newlinesMike Frysinger2008-01-14
|
* Remove rc_service_plugable function and make it private as it needs to read ↵Roy Marples2008-01-13
| | | | from our config file.
* Re-indent to a standard tw of 8.Roy Marples2008-01-11
|
* Compile without warnings on NetBSDRoy Marples2008-01-09
|
* rc_getline keeps expanding it's malloced buffer until it has read a whole ↵Roy Marples2008-01-07
| | | | 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.
* Set include paths in Makefile instead of .c filesRoy Marples2008-01-06
|
* Move the env whitelists to an rc var and build in the system whitelist.Roy Marples2008-01-05
|
* Add some .mk stubs to impersonate bsk .mk files to make writing our ↵Roy Marples2008-01-05
Makefiles easier. libeinfo, librc and rc now have their own seperate directories. More work is needed to tidy this up though.