sin
|
5322e83da0
|
str* is in the reserved namespace, rename to replacestr()
|
2014-05-06 13:40:37 +01:00 |
sin
|
ba764589ba
|
For consistency with other similar constructs in ubase
|
2014-04-18 09:40:13 +01:00 |
sin
|
8d92201170
|
variable cannot be NULL so don't test for that
|
2014-04-18 09:31:35 +01:00 |
sin
|
2618410910
|
Use streplace() in setsysctl() as well
|
2014-04-17 19:05:49 +01:00 |
sin
|
87cb818ac0
|
No need for a temporary variable in streplace()
|
2014-04-17 17:18:55 +01:00 |
sin
|
edc39cef27
|
If at least one entry fails, return EXIT_FAILURE in sysctl
|
2014-04-17 17:08:52 +01:00 |
sin
|
3985929b6d
|
Error out if there are multiple separators in sysctl
|
2014-04-17 17:05:13 +01:00 |
sin
|
0897d999e6
|
Implement streplace()
Restore variable as early as possible and in error conditions
|
2014-04-17 16:42:26 +01:00 |
sin
|
6ba9fe35f1
|
Remember to convert '/' back to '.' in sysctl before returning
|
2014-04-17 16:33:18 +01:00 |
sin
|
e4fa3f5c59
|
Don't leak `buf' if realloc fails
Not an issue in ubase but someone might want to re-use this
function elsewhere.
|
2014-04-17 16:27:06 +01:00 |
sin
|
3803adfd7e
|
Don't hardcode the buffer size in sysctl
|
2014-04-17 16:21:55 +01:00 |
sin
|
8b32decb6f
|
Add initial implementation of sysctl(8)
Needs a bit of cleanup (avoiding magic numbers etc.).
|
2014-04-17 15:31:42 +01:00 |