/systemd/src/basic/ |
H A D | proc-cmdline.c | 46 _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 D | fileio-label.c | 27 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 D | xml.c | 35 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 D | clock-util.c | 76 * 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 D | cpu-set-util.c | 67 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 D | extract-word.c | 209 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 D | ima-setup.c | 40 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 D | kmod-setup.c | 36 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 D | rule-syntax-check.py | 45 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 D | networkd-util.c | 64 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 D | networkd-fdb.c | 165 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 D | networkd-netdev-vxlan.c | 139 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 D | test-env-replace.c | 110 const char *line[] = { local 126 r = replace_env_argv((char**) line, (char**) env);
|
/systemd/src/boot/efi/ |
H A D | stub.c | 88 /* 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 D | libudev.c | 51 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 D | resolved-conf.c | 137 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 D | resolved-resolv-conf.c | 36 char line[LINE_MAX]; local 85 FOREACH_LINE(line, f, r = -errno; goto clear) { 89 l = strstrip(line);
|
/systemd/src/shared/ |
H A D | utmp-wtmp.h | 36 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 D | clean-ipc.c | 47 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 D | timesyncd-conf.c | 69 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 D | udev-builtin-kmod.c | 62 _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 D | journal-remote-parse.c | 88 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 D | nspawn-settings.c | 117 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 D | nspawn-setuid.c | 90 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 D | cryptsetup-generator.c | 383 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");
|