Searched defs:line (Results 1 - 25 of 83) sorted by relevance

1234

/systemd/src/basic/
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-label.c27 int write_string_file_atomic_label(const char *fn, const char *line) { argument
34 r = write_string_file(fn, line, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC);
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 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.c67 unsigned line,
84 return log_syntax(unit, LOG_ERR, filename, line, r, "Invalid value for %s: %s", lvalue, whole_rvalue);
96 return log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse CPU affinity '%s'", word);
98 return log_syntax(unit, LOG_ERR, filename, line, EINVAL, "CPU out of range '%s' ncpus is %u", word, ncpus);
101 log_syntax(unit, LOG_WARNING, filename, line, 0, "Range '%s' is invalid, %u > %u", word, cpu_lower, cpu_upper);
62 parse_cpu_set_and_warn( const char *rvalue, cpu_set_t **cpu_set, const char *unit, const char *filename, unsigned line, const char *lvalue) argument
H A Dextract-word.c209 unsigned line,
231 log_syntax(unit, LOG_WARNING, filename, line, EINVAL, "Invalid escape sequences in line, correcting: \"%s\"", rvalue);
237 return log_syntax(unit, LOG_ERR, filename, line, r, "Unbalanced quoting, ignoring: \"%s\"", rvalue);
241 return log_syntax(unit, LOG_ERR, filename, line, r, "Unable to decode word \"%s\", ignoring: %m", rvalue);
202 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) argument
/systemd/src/core/
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)
H A Dkmod-setup.c36 const char *file, int line,
43 log_internalv(LOG_DEBUG, 0, file, line, fn, format, args);
33 systemd_kmod_log( void *data, int priority, const char *file, int line, const char *fn, const char *format, va_list args) argument
/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/src/network/
H A Dnetworkd-util.c64 unsigned line,
93 log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse IPForward= option, ignoring: %s", rvalue);
61 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) argument
H A Dnetworkd-fdb.c165 unsigned line,
198 log_syntax(unit, LOG_ERR, filename, line, 0, "Not a valid MAC address, ignoring assignment: %s", rvalue);
211 unsigned line,
234 r = config_parse_unsigned(unit, filename, line, section,
162 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) argument
208 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) argument
H A Dnetworkd-netdev-vxlan.c139 unsigned line,
158 log_syntax(unit, LOG_ERR, filename, line, r, "vxlan multicast group address is invalid, ignoring assignment: %s", rvalue);
163 log_syntax(unit, LOG_ERR, filename, line, 0, "vxlan multicast group incompatible, ignoring assignment: %s", rvalue);
175 unsigned line,
195 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to extract VXLAN port range, ignoring: %s", rvalue);
204 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse VXLAN port range '%s'", word);
209 log_syntax(unit, LOG_ERR, filename, line, r,
215 log_syntax(unit, LOG_ERR, filename, line, r,
228 unsigned line,
247 log_syntax(unit, LOG_ERR, filename, line,
137 config_parse_vxlan_group_address(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
173 config_parse_port_range(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
226 config_parse_destination_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
[all...]
/systemd/src/test/
H A Dtest-env-replace.c110 const char *line[] = { local
126 r = replace_env_argv((char**) line, (char**) env);
/systemd/src/boot/efi/
H A Dstub.c88 /* if we are not in secure boot mode, accept a custom command line and replace the built-in one */
91 CHAR8 *line; local
96 line = AllocatePool(cmdline_len);
98 line[i] = options[i];
99 cmdline = line;
/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/resolve/
H A Dresolved-conf.c137 unsigned line,
161 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse DNS server string '%s'. Ignoring.", rvalue);
179 unsigned line,
203 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse search domains string '%s'. Ignoring.", rvalue);
134 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) argument
176 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) argument
H A Dresolved-resolv-conf.c36 char line[LINE_MAX]; local
85 FOREACH_LINE(line, f, r = -errno; goto clear) {
89 l = strstrip(line);
/systemd/src/shared/
H A Dutmp-wtmp.h36 int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line, int ut_type, const char *user);
62 static inline int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line, int ut_type, const char *user) { argument
H A Dclean-ipc.c47 char line[LINE_MAX]; local
59 FOREACH_LINE(line, f, goto fail) {
71 truncate_nl(line);
73 if (sscanf(line, "%*i %i %*o %*u " PID_FMT " " PID_FMT " %u " UID_FMT " " GID_FMT " " UID_FMT " " GID_FMT,
103 char line[LINE_MAX]; local
115 FOREACH_LINE(line, f, goto fail) {
125 truncate_nl(line);
127 if (sscanf(line, "%*i %i %*o %*u " UID_FMT " " GID_FMT " " UID_FMT " " GID_FMT,
154 char line[LINE_MAX]; local
166 FOREACH_LINE(line,
[all...]
/systemd/src/timesync/
H A Dtimesyncd-conf.c69 unsigned line,
90 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse NTP server string '%s'. Ignoring.", rvalue);
66 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) argument
/systemd/src/udev/
H A Dudev-builtin-kmod.c62 _printf_(6,0) static void udev_kmod_log(void *data, int priority, const char *file, int line, const char *fn, const char *format, va_list args) { argument
63 log_internalv(priority, 0, file, line, fn, format, args);
/systemd/src/journal-remote/
H A Djournal-remote-parse.c88 static int get_line(RemoteSource *source, char **line, size_t *size) { argument
145 *line = source->buf + source->offset;
270 static int process_dunder(RemoteSource *source, char *line, size_t n) { argument
274 assert(line);
276 assert(line[n-1] == '\n');
281 timestamp = startswith(line, "__CURSOR=");
286 timestamp = startswith(line, "__REALTIME_TIMESTAMP=");
289 line[n-1] = '\0';
298 timestamp = startswith(line, "__MONOTONIC_TIMESTAMP=");
301 line[
325 char *line, *sep; local
[all...]
/systemd/src/nspawn/
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...]
H A Dnspawn-setuid.c90 char line[LINE_MAX], *x, *u, *g, *h; local
126 if (!fgets(line, sizeof(line), f)) {
137 truncate_nl(line);
141 x = strchr(line, ':');
211 if (!fgets(line, sizeof(line), f)) {
221 truncate_nl(line);
226 x = line;
/systemd/src/cryptsetup/
H A Dcryptsetup-generator.c383 char line[LINE_MAX], *l, *uuid; local
387 if (!fgets(line, sizeof(line), f))
392 l = strstrip(line);
411 log_info("Not creating device '%s' because it was not specified on the kernel command line.", name);
486 log_warning_errno(r, "Failed to parse kernel command line, ignoring: %m");

Completed in 621 milliseconds

1234