Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-11-03 | Time-util: introduce usec to jiffies | Susant Sahani | |
2015-11-03 | Merge pull request #1744 from evverx/fix-debug-generator | Lennart Poettering | |
debug-generator: respect kernel parameters for default unit setting | |||
2015-11-03 | proc-cmdline: add runlevel to target mapping | Evgeny Vereshchagin | |
2015-11-03 | parse-util: introduce parse_ifindex() and make use of it everywhere | Lennart Poettering | |
We have enough places where we parse an ifindex, hence introduce a proper parsing function for it, that verifies all parameters. | |||
2015-11-02 | proc-cmdline: return proper errors from shall_restore_state() | Lennart Poettering | |
Let's not eat up errors in shall_restore_state(), but in the consumers instead, just for the sake of keeping the library calls generic. | |||
2015-11-02 | core: bump net.unix.max_dgram_qlen really early during boot | Lennart Poettering | |
Only that way it actually has an effect on all our sockets, including $NOTIFY_SOCKET. | |||
2015-11-02 | string-util: rework memory_erase() so that it cannot be optimized away | Lennart Poettering | |
memory_erase() so far just called memset(), which the compiler might optimize away under certain conditions if it feels there's benefit in it. C11 knows a new memset_s() call that is like memset(), but may not be optimized away. Ideally, we'd just use that call, but glibc currently does not support it. Hence, implement our own simplistic version of it. We use a GCC pragma to turn off optimization for this call, and also use the "volatile" keyword on the pointers to ensure that gcc will use the pointers as-is. According to a variety of internet sources, either one does the trick. However, there are also reports that at least the volatile thing isn't fully correct, hence let's add some snake oil and employ both techniques. https://news.ycombinator.com/item?id=4711346 | |||
2015-11-02 | Revert "utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_t" | Lennart Poettering | |
2015-11-02 | Merge pull request #1740 from shawnl/master | Daniel Mack | |
utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_t | |||
2015-10-31 | utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_t | Shawn Landden | |
rework C11 utf8.[ch] to use char32_t instead of uint32_t when referring to unicode chars, to make things more expressive. | |||
2015-10-31 | core: constify a few things | Lennart Poettering | |
2015-10-31 | systemctl: add a way to explicitly request client-side unit installing | Lennart Poettering | |
This adds support for a new environment variable SYSTEMCTL_INSTALL_CLIENT_SIDE, that ensures that systemctl executes install operations client-side instead of passing them to PID1. This is useful in debugging situations, but even beyond that. However, we don't want to make it official API, hence let's just make it an undocumented environment variable. Similar, add a second variable, SYSTEMCTL_SKIP_SYSV which allows skipping the SysV chkconfig fall-back if set. This is useful for similar reasons, and exposed as undocumented as environment variable for similar reasons, too. | |||
2015-10-27 | cpu-set-util: Support ranges in parse_cpu_set_and_warn | Filipe Brandenburger | |
Tested CPUAffinity ranges on both a service unit and in system.conf and confirmed they work as expected (by inspecting /proc/PID/status, for the main pid of the service and for pid 1). Also mixed ranges with both spaces, commas, trailing commas and spaces. Added new tests to increase coverage of ranges and prevent regressions. | |||
2015-10-27 | parse-util: Introduce new parse_range function | Filipe Brandenburger | |
This function will be useful for CPUAffinity settings that involve ranges of CPUs. Make it generic and include test coverage to prevent regressions. | |||
2015-10-27 | cpu-set-util: Accept commas as separators in parse_cpu_set_and_warn | Filipe Brandenburger | |
Tested CPUAffinity settings on both a service unit and in system.conf and confirmed they work as expected. Added a new test to confirm that trailing commas and spaces work and to prevent any regressions in that area. | |||
2015-10-27 | util-lib: move inotify-related definitions to fs-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move fdname_is_valid() to fd-util.[ch] | Lennart Poettering | |
2015-10-27 | automount: move generically userful call repeat_mount() into mount-util.[ch] | Lennart Poettering | |
2015-10-27 | process-util: move a couple of process-related calls over | Lennart Poettering | |
2015-10-27 | process-util: make some minor corrections to PID live detection | Lennart Poettering | |
2015-10-27 | process-util: rename get_parent_of_pid() → get_process_ppid() | Lennart Poettering | |
In order to match the other get_process_xyz() calls. | |||
2015-10-27 | process-util: actually move rename_process() over | Lennart Poettering | |
The prototype was moved long ago, actually move the definition over now, too. | |||
2015-10-27 | mount-util: move fstype_is_network() and name_to_handle_at() definitions over | Lennart Poettering | |
2015-10-27 | util-lib: split out allocation calls into alloc-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out globbing related calls into glob-util.[ch] | Lennart Poettering | |
2015-10-27 | stat-util.h: move F_TYPE_EQUAL() macro definition to stat-util.h | Lennart Poettering | |
2015-10-27 | util-lib: split out printf() helpers to stdio-util.h | Lennart Poettering | |
2015-10-27 | macro.h: move definition of MODE_INVALID to parse-util.h | Lennart Poettering | |
2015-10-27 | macro: move DECIMAL_STR_WIDTH() into macro.h | Lennart Poettering | |
So that it sets next to DECIMAL_STR_MAX(), where it belongs. | |||
2015-10-27 | socket-util: move CMSG_FOREACH() from macro.h to socket-util.h | Lennart Poettering | |
2015-10-27 | io-util.h: move iovec stuff from macro.h to io-util.h | Lennart Poettering | |
2015-10-27 | process-util: move PID related macros from macro.h to process-util.h | Lennart Poettering | |
2015-10-27 | user-util: move UID/GID related macros from macro.h to user-util.h | Lennart Poettering | |
2015-10-27 | util-lib: move web-related calls into web-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out syslog-related calls into syslog-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move running_in_chroot() into virt.[ch] | Lennart Poettering | |
It's a very weak kind of virtualization, after all. | |||
2015-10-27 | util-lib: move /proc/cmdline parsing code to proc-cmdline.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move is_main_thread() to process-util.[ch] | Lennart Poettering | |
2015-10-27 | src/basic: rename audit.[ch] → audit-util.[ch] and capability.[ch] → ↵ | Lennart Poettering | |
capability-util.[ch] The files are named too generically, so that they might conflict with the upstream project headers. Hence, let's add a "-util" suffix, to clarify that this are just our utility headers and not any official upstream headers. | |||
2015-10-27 | util-lib: split out umask-related code to umask-util.h | Lennart Poettering | |
2015-10-27 | util-lib: move more locale-related calls to locale-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move status printing stuff into src/core/ | Lennart Poettering | |
It's very specific to the core, and not used elsewhere, hence move it out of terminal-util.[ch]. | |||
2015-10-27 | util-lib: move string table stuff into its own string-table.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split stat()/statfs()/stavfs() related calls into stat-util.[ch] | Lennart Poettering | |
2015-10-27 | util: move string_is_safe() to string-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move a number of fs operations into fs-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out file attribute calls to chattr-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split xattr-related calls into xattr-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: introduce dirent-util.[ch] for directory entry calls | Lennart Poettering | |
Also, move a couple of more path-related functions to path-util.c. | |||
2015-10-27 | util-lib: split out resource limits related calls into rlimit-util.[ch] | Lennart Poettering | |