Searched refs:strbuf (Results 1 - 7 of 7) sorted by relevance

/systemd/src/basic/
H A Dstrbuf.h26 struct strbuf { struct
51 struct strbuf *strbuf_new(void);
52 ssize_t strbuf_add_string(struct strbuf *str, const char *s, size_t len);
53 void strbuf_complete(struct strbuf *str);
54 void strbuf_cleanup(struct strbuf *str);
H A Dstrbuf.c25 #include "strbuf.h"
45 struct strbuf *strbuf_new(void) {
46 struct strbuf *str;
48 str = new0(struct strbuf, 1);
79 void strbuf_complete(struct strbuf *str) {
88 void strbuf_cleanup(struct strbuf *str) {
128 ssize_t strbuf_add_string(struct strbuf *str, const char *s, size_t len) {
/systemd/src/test/
H A Dtest-strbuf.c23 #include "strbuf.h"
28 static ssize_t add_string(struct strbuf *sb, const char *s) {
33 struct strbuf *sb;
/systemd/src/udev/
H A Dudev-rules.c39 #include "strbuf.h"
75 struct strbuf *strbuf; member in struct:udev_rules
87 return rules->strbuf->buf + off;
91 return strbuf_add_string(rules->strbuf, s, strlen(s));
1659 rules->strbuf = strbuf_new();
1660 if (!rules->strbuf)
1687 rules->token_max * sizeof(struct token), rules->token_max, sizeof(struct token), rules->strbuf->len);
1689 /* cleanup temporary strbuf data */
1691 rules->strbuf
[all...]
H A Dudevadm-hwdb.c31 #include "strbuf.h"
50 struct strbuf *strings;
/systemd/src/journal/
H A Dcatalog.c41 #include "strbuf.h"
392 static int64_t write_catalog(const char *database, struct strbuf *sb,
462 struct strbuf *sb = NULL;
/systemd/src/hwdb/
H A Dhwdb.c33 #include "strbuf.h"
56 struct strbuf *strings;

Completed in 1483 milliseconds