Roy Marples
658a220638
Add (c) to Copyright
2009-05-01 15:11:40 +01:00
Roy Marples
bd211d534b
We should match the full variable name.
2009-04-24 11:45:48 +00:00
Roy Marples
ade85d4bd8
Improve style for KNF
2009-04-23 21:31:22 +00:00
Roy Marples
415fe87d8c
Clean up some compiler warnings.
2009-01-29 13:29:04 +00:00
Roy Marples
d6da8e8c48
sysinit is now a real runlevel that handles things like udev, dmesg and
...
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-10-10 08:37:21 +00:00
Roy Marples
e368a4b4f8
Add missing profile bits to env, #72 .
2008-09-18 19:46:10 +00:00
Roy Marples
1df3ab05b5
realloc -> xrealloc
2008-05-19 13:41:16 +00:00
Roy Marples
775df18a70
Fix a potential segfault, thanks to Fernando J. Pereda.
2008-05-19 13:16:53 +00:00
Roy Marples
6d5d655b52
Style.
2008-05-12 23:00:05 +00:00
Roy Marples
15d34d0a16
Add license blurb to a few files and append my email to my name.
2008-03-26 17:53:37 +00:00
Roy Marples
cee3ccc4c1
Fix a segfault if rc.conf does not exist, Gentoo #214887
2008-03-26 15:10:26 +00:00
Roy Marples
51c825ceee
Make rc_getline private and save it's buffer so it's sort of like getline from glibc.
2008-03-17 21:27:37 +00:00
Roy Marples
4c14666423
Punt the rc_strcatpaths function and use snprintf instead to save on expensive malloc calls.
2008-03-17 13:25:56 +00:00
Roy Marples
cb9da6a262
Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ from queue(3). Refactor code style around the BSD KNF.
2008-03-16 17:00:56 +00:00
Roy Marples
ad780077d2
Welcome to 2008.
2008-02-22 12:07:34 +00:00
Roy Marples
b4bff9ce5e
Quiet some lint warnings.
2008-01-22 10:29:15 +00:00
Roy Marples
07728abbc1
Checking first char for null is more efficient than strlen.
2008-01-21 15:30:40 +00:00
Roy Marples
773c2b9ca6
We should never change the list passed to rc_config_value.
2008-01-18 14:01:48 +00:00
Mike Frysinger
6aab712cb4
strip trailing newlines
2008-01-14 05:05:22 +00:00
Roy Marples
abde759d5b
Re-indent to a standard tw of 8.
2008-01-11 15:51:40 +00:00
Roy Marples
2d95c9a756
Loads of NetBSD tweaks here.
2008-01-10 23:22:46 +00:00
Roy Marples
2e35d2a73c
Avoid valgrind errors with getline.
2008-01-07 19:12:58 +00:00
Roy Marples
81b8e5450e
Really fix off by one error.
2008-01-07 15:27:26 +00:00
Roy Marples
fa898af791
Fix an off by one error.
2008-01-07 14:59:17 +00:00
Roy Marples
43d0f3fc76
rc_getline keeps expanding it's malloced buffer until it has read a whole 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-07 12:29:30 +00:00
Roy Marples
b1540cba5b
Use a dynamically expanding buffer for reading config files.
2008-01-06 19:52:43 +00:00
Roy Marples
ac21d75300
Add some .mk stubs to impersonate bsk .mk files to make writing our Makefiles easier. libeinfo, librc and rc now have their own seperate directories. More work is needed to tidy this up though.
2008-01-05 19:25:55 +00:00