Searched refs:line (Results 1 - 25 of 121) sorted by relevance

12345

/systemd/test/
H A Drule-syntax-check.py45 for line in open(path):
48 # handle line continuation
49 if line.endswith('\\\n'):
50 buffer += line[:-2]
53 line = buffer + line variable
57 line = line.strip() variable
58 if not line or line
[all...]
/systemd/hwdb/
H A Dids-update.pl15 while (my $line = <IN>) {
16 $line =~ s/\s+$//;
17 $line =~ m/^([0-9a-f]{4})\s*(.+)$/;
27 $line =~ m/^\t([0-9a-f]{4})\s*(.+)$/;
52 while (my $line = <IN>) {
53 $line =~ s/\s+$//;
55 $line =~ m/^C\ ([0-9a-f]{2})\s*(.+)$/;
70 } elsif ($line =~ m/^$/) {
74 $line =~ m/^\t([0-9a-f]{2})\s*(.+)$/;
90 $line
[all...]
/systemd/src/basic/
H A Dxml.h32 int xml_tokenize(const char **p, char **name, void **state, unsigned *line);
H A Dfileio-label.h27 int write_string_file_atomic_label(const char *fn, const char *line);
H A Dclock-util.c76 * The third line of adjtime is "UTC" or "LOCAL" or nothing.
84 char line[LINE_MAX]; local
87 b = fgets(line, sizeof(line), f) &&
88 fgets(line, sizeof(line), f) &&
89 fgets(line, sizeof(line), f);
93 truncate_nl(line);
94 return streq(line, "LOCA
[all...]
H A Dcpu-set-util.h32 int parse_cpu_set_and_warn(const char *rvalue, cpu_set_t **cpu_set, const char *unit, const char *filename, unsigned line, const char *lvalue);
H A Dxml.c35 static void inc_lines(unsigned *line, const char *s, size_t n) { argument
38 if (!line)
50 (*line)++;
59 int xml_tokenize(const char **p, char **name, void **state, unsigned *line) { argument
73 if (line)
74 *line = 1;
94 inc_lines(line, c, e - c);
112 inc_lines(line, b, e + 3 - b);
125 inc_lines(line, b, e + 2 - b);
138 inc_lines(line,
[all...]
H A Dproc-cmdline.c46 _cleanup_free_ char *line = NULL; local
52 r = proc_cmdline(&line);
56 p = line;
85 _cleanup_free_ char *line = NULL, *ret = NULL; local
92 r = proc_cmdline(&line);
96 p = line;
H A Dfileio.h38 int write_string_stream(FILE *f, const char *line, bool enforce_newline);
39 int write_string_file(const char *fn, const char *line, WriteStringFileFlags flags);
41 int read_one_line_file(const char *fn, char **line);
62 #define FOREACH_LINE(line, f, on_error) \
64 if (!fgets(line, sizeof(line), f)) { \
H A Dextract-word.h34 int extract_first_word_and_warn(const char **p, char **ret, const char *separators, ExtractFlags flags, const char *unit, const char *filename, unsigned line, const char *rvalue);
/systemd/src/core/
H A Dload-fragment.h30 int config_parse_warn_compat(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
31 int config_parse_unit_deps(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
32 int config_parse_obsolete_unit_deps(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
33 int config_parse_unit_string_printf(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
34 int config_parse_unit_strv_printf(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
35 int config_parse_unit_path_printf(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
36 int config_parse_unit_path_strv_printf(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
37 int config_parse_documentation(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
38 int config_parse_socket_listen(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
39 int config_parse_socket_protocol(const char *unit, const char *filename, unsigned line, cons
[all...]
H A Dima-setup.c40 char line[page_size()]; local
65 FOREACH_LINE(line, input,
69 len = strlen(line);
72 if (len > 0 && write(imafd, line, len) < 0)
/systemd/src/shared/
H A Dconf-parser.h32 /* An abstract parser for simple, line based, shallow configuration
38 unsigned line,
107 int config_parse_int(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
108 int config_parse_unsigned(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
109 int config_parse_long(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
110 int config_parse_uint32(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
111 int config_parse_uint64(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
112 int config_parse_double(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
113 int config_parse_iec_size(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
114 int config_parse_si_size(const char *unit, const char *filename, unsigned line, cons
[all...]
H A Dresolve-util.h53 int config_parse_resolve_support(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
54 int config_parse_dnssec_mode(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
H A Dconf-parser.c123 unsigned line,
139 assert(line > 0);
150 return func(unit, filename, line, section, section_line,
158 log_syntax(unit, LOG_WARNING, filename, line, 0, "Unknown lvalue '%s' in section '%s'", lvalue, section);
163 /* Parse a variable assignment line */
166 unsigned line,
181 assert(line > 0);
206 log_syntax(unit, LOG_ERR, filename, line, 0, ".include not allowed here. Ignoring.");
225 log_syntax(unit, LOG_ERR, filename, line, 0, "Invalid section header '%s'", l);
236 log_syntax(unit, LOG_WARNING, filename, line,
121 next_assignment(const char *unit, const char *filename, unsigned line, ConfigItemLookup lookup, const void *table, const char *section, unsigned section_line, const char *lvalue, const char *rvalue, bool relaxed, void *userdata) argument
164 parse_line(const char* unit, const char *filename, unsigned line, const char *sections, ConfigItemLookup lookup, const void *table, bool relaxed, bool allow_include, char **section, unsigned *section_line, bool *section_ignored, char *l, void *userdata) argument
296 unsigned line = 0, section_line = 0; local
466 config_parse_iec_size(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
496 config_parse_si_size(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
526 config_parse_iec_uint64(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
552 config_parse_bool(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
581 config_parse_tristate( const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
614 config_parse_string( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
652 config_parse_path( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
693 config_parse_strv(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
753 config_parse_log_facility( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
784 config_parse_log_level( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
814 config_parse_signal( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
843 config_parse_personality( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
[all...]
/systemd/src/network/
H A Dnetworkd-util.h34 int config_parse_address_family_boolean(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
35 int config_parse_address_family_boolean_with_kernel(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
H A Dnetworkd-netdev-vxlan.h62 unsigned line,
72 unsigned line,
83 unsigned line,
H A Dnetworkd-fdb.h44 int config_parse_fdb_hwaddr(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
45 int config_parse_fdb_vlan_id(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
H A Dnetworkd-netdev-tunnel.h75 unsigned line, const char *section,
82 unsigned line,
92 unsigned line, const char *section,
98 unsigned line, const char *section,
/systemd/src/resolve/
H A Dresolved-conf.h34 int config_parse_dns_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
35 int config_parse_search_domains(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
36 int config_parse_dnssec(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
/systemd/src/nspawn/
H A Dnspawn-settings.h29 START_PID1, /* Run parameters as command line as process 1 */
30 START_PID2, /* Use stub init process as PID 1, run parameters as command line as process 2 */
93 int config_parse_capability(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
94 int config_parse_id128(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
95 int config_parse_expose_port(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
96 int config_parse_volatile_mode(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
97 int config_parse_bind(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
98 int config_parse_tmpfs(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
99 int config_parse_veth_extra(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
100 int config_parse_boot(const char *unit, const char *filename, unsigned line, cons
[all...]
H A Dnspawn-settings.c117 unsigned line,
135 log_syntax(unit, LOG_ERR, filename, line, r, "Duplicate port specification, ignoring: %s", rvalue);
139 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse host port %s: %m", rvalue);
149 unsigned line,
171 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to extract capability string, ignoring: %s", rvalue);
179 log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse capability, ignoring: %s", word);
196 unsigned line,
214 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse 128bit ID/UUID, ignoring: %s", rvalue);
225 unsigned line,
243 log_syntax(unit, LOG_ERR, filename, line,
114 config_parse_expose_port( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
146 config_parse_capability( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
193 config_parse_id128( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
222 config_parse_bind( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
250 config_parse_tmpfs( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
278 config_parse_veth_extra( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
306 config_parse_boot( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
351 config_parse_pid2( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
[all...]
/systemd/src/libudev/
H A Dlibudev.c51 int priority, const char *file, int line, const char *fn,
106 char line[UTIL_LINE_SIZE]; local
109 while (fgets(line, sizeof(line), f)) {
117 key = line;
121 /* comment or empty line */
128 log_debug("/etc/udev/udev.conf:%u: missing assignment, skipping line.", line_nr);
160 log_debug("/etc/udev/udev.conf:%u: inconsistent quoting, skipping line.", line_nr);
227 int priority, const char *file, int line, const char *fn,
225 udev_set_log_fn(struct udev *udev, void (*log_fn)(struct udev *udev, int priority, const char *file, int line, const char *fn, const char *format, va_list args)) argument
/systemd/src/timesync/
H A Dtimesyncd-conf.h29 int config_parse_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
/systemd/src/libsystemd-network/
H A Dnetwork-internal.h45 int config_parse_net_condition(const char *unit, const char *filename, unsigned line,
49 int config_parse_hwaddr(const char *unit, const char *filename, unsigned line,
53 int config_parse_ifname(const char *unit, const char *filename, unsigned line,
57 int config_parse_ifnames(const char *unit, const char *filename, unsigned line,
61 int config_parse_ifalias(const char *unit, const char *filename, unsigned line,

Completed in 106 milliseconds

12345