X Tutup
Skip to content

Commit 6bedfcb

Browse files
committed
util-lib: split string parsing related calls from util.[ch] into parse-util.[ch]
1 parent f47fc3f commit 6bedfcb

File tree

136 files changed

+686
-502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+686
-502
lines changed

Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,8 @@ libbasic_la_SOURCES = \
787787
src/basic/string-util.h \
788788
src/basic/fd-util.c \
789789
src/basic/fd-util.h \
790+
src/basic/parse-util.c \
791+
src/basic/parse-util.h \
790792
src/basic/user-util.c \
791793
src/basic/user-util.h \
792794
src/basic/extract-word.c \

src/analyze/analyze.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "hashmap.h"
3434
#include "log.h"
3535
#include "pager.h"
36+
#include "parse-util.h"
3637
#include "special.h"
3738
#include "strv.h"
3839
#include "strxcpyx.h"

src/backlight/backlight.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "string-util.h"
2929
#include "udev-util.h"
3030
#include "util.h"
31+
#include "parse-util.h"
3132

3233
static struct udev_device *find_pci_or_platform_parent(struct udev_device *device) {
3334
struct udev_device *parent;

src/basic/audit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "fd-util.h"
2727
#include "fileio.h"
2828
#include "macro.h"
29+
#include "parse-util.h"
2930
#include "process-util.h"
3031
#include "user-util.h"
3132
#include "util.h"

src/basic/cap-list.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121

2222
#include <string.h>
2323

24-
#include "util.h"
2524
#include "cap-list.h"
2625
#include "missing.h"
26+
#include "parse-util.h"
27+
#include "util.h"
2728

2829
static const struct capability_name* lookup_capability(register const char *str, register unsigned int len);
2930

src/basic/capability.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "fileio.h"
3131
#include "log.h"
3232
#include "macro.h"
33+
#include "parse-util.h"
3334
#include "util.h"
3435

3536
int have_effective_cap(int value) {

src/basic/cgroup-util.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "login-util.h"
3838
#include "macro.h"
3939
#include "mkdir.h"
40+
#include "parse-util.h"
4041
#include "path-util.h"
4142
#include "process-util.h"
4243
#include "set.h"

src/basic/cpu-set-util.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
along with systemd; If not, see <http://www.gnu.org/licenses/>.
2121
***/
2222

23+
#include "cpu-set-util.h"
2324
#include "extract-word.h"
25+
#include "parse-util.h"
2426
#include "util.h"
25-
#include "cpu-set-util.h"
2627

2728
cpu_set_t* cpu_set_malloc(unsigned *ncpus) {
2829
cpu_set_t *c;

src/basic/fd-util.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
***/
2121

2222
#include "fd-util.h"
23+
#include "parse-util.h"
2324
#include "util.h"
2425

2526
int close_nointr(int fd) {

src/basic/fdset.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "fd-util.h"
2929
#include "fdset.h"
3030
#include "macro.h"
31+
#include "parse-util.h"
3132
#include "set.h"
3233
#include "util.h"
3334

0 commit comments

Comments
 (0)
X Tutup