Searched defs:file (Results 1 - 22 of 22) sorted by relevance

/systemd/src/test/
H A Dtest-terminal-util.c2 This file is part of systemd.
47 _cleanup_fclose_ FILE *file = NULL; local
55 file = fdopen(fd, "r+");
56 assert_se(file);
57 assert_se(fputs("c\n", file) >= 0);
58 rewind(file);
60 assert_se(read_one_char(file, &r, 1000000, &need_nl) >= 0);
63 assert_se(read_one_char(file, &r, 1000000, &need_nl) < 0);
65 rewind(file);
66 assert_se(fputs("foobar\n", file) >
[all...]
/systemd/src/core/
H A Dkmod-setup.c2 This file is part of systemd.
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/src/libsystemd-network/
H A Ddhcp-option.c2 This file is part of systemd.
75 bool file, sname; local
81 file = overload & DHCP_OVERLOAD_FILE;
89 else if (r == -ENOBUFS && (file || sname)) {
104 if (file_offset < sizeof(message->file)) {
105 /* still space in the 'file' array */
106 r = option_append(message->file, sizeof(message->file), &file_offset, code, optlen, optval);
112 close the file array and move the offset to its end */
117 *offset = size + sizeof(message->file);
[all...]
H A Ddhcp-protocol.h4 This file is part of systemd.
43 uint8_t file[128]; member in struct:DHCPMessage
H A Dtest-dhcp-option.c15 uint8_t file[128]; member in struct:option_desc
105 uint8_t *file, uint8_t filelen,
116 if (file && filelen <= 128)
117 memcpy(&message->file, file, filelen);
170 descoption = &desc->file[0];
234 uint8_t *file = NULL; local
244 file = &desc->file[0];
258 message = create_message(options, optlen, file, filele
104 create_message(uint8_t *options, uint16_t optlen, uint8_t *file, uint8_t filelen, uint8_t *sname, uint8_t snamelen) argument
[all...]
/systemd/src/libudev/
H A Dlibudev.c2 This file is part of systemd.
39 * The context contains the default values read from the udev config file,
51 int priority, const char *file, int line, const char *fn,
88 * file, and fills in the default values.
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/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/boot/efi/
H A Dsplash.c55 struct bmp_file *file; local
63 /* check file header */
64 file = (struct bmp_file *)bmp;
65 if (file->signature[0] != 'B' || file->signature[1] != 'M')
67 if (file->size != size)
69 if (file->size < file->offset)
99 if (file->size - file
[all...]
H A Dboot.c42 CHAR16 *file; member in struct:__anon41
430 if (entry->file)
431 Print(L"file '%s'\n", entry->file);
724 efivar_set(L"LoaderEntryDefault", config->entries[idx_highlight]->file, TRUE);
749 status = PoolPrint(L"Menu timeout of %d sec is defined by configuration file.",
1008 static VOID config_entry_add_from_file(Config *config, EFI_HANDLE *device, CHAR16 *file, CHAR8 *content, CHAR16 *loaded_image_path) { argument
1126 entry->file = StrDuplicate(file);
1127 len = StrLen(entry->file);
1425 config_entry_add_loader(Config *config, EFI_HANDLE *device, enum loader_type type,CHAR16 *file, CHAR16 key, CHAR16 *title, CHAR16 *loader) argument
1442 config_entry_add_loader_auto(Config *config, EFI_HANDLE *device, EFI_FILE *root_dir, CHAR16 *loaded_image_path, CHAR16 *file, CHAR16 key, CHAR16 *title, CHAR16 *loader) argument
[all...]
/systemd/src/journal/
H A Djournal-send.c2 This file is part of systemd.
309 * temporary file and just pass a file descriptor of it to the
449 _public_ int sd_journal_print_with_location(int priority, const char *file, const char *line, const char *func, const char *format, ...) { argument
454 r = sd_journal_printv_with_location(priority, file, line, func, format, ap);
460 _public_ int sd_journal_printv_with_location(int priority, const char *file, const char *line, const char *func, const char *format, va_list ap) { argument
482 IOVEC_SET_STRING(iov[2], file);
489 _public_ int sd_journal_send_with_location(const char *file, const char *line, const char *func, const char *format, ...) { argument
506 IOVEC_SET_STRING(iov[0], file);
522 const char *file, cons
521 sd_journal_sendv_with_location( const char *file, const char *line, const char *func, const struct iovec *iov, int n) argument
544 sd_journal_perror_with_location( const char *file, const char *line, const char *func, const char *message) argument
[all...]
H A Dtest-journal-interleaving.c2 This file is part of systemd.
27 #include "journal-file.h"
34 /* This program tests skipping around in a multi-file journal.
39 noreturn static void log_assert_errno(const char *text, int eno, const char *file, int line, const char *func) { argument
40 log_internal(LOG_CRIT, 0, file, line, func,
42 text, file, line, func, strerror(eno));
/systemd/src/modules-load/
H A Dmodules-load.c2 This file is part of systemd.
41 static void systemd_kmod_log(void *data, int priority, const char *file, int line, argument
45 log_internalv(priority, 0, file, line, fn, format, args);
152 return log_error_errno(errno, "Failed to read file '%s', ignoring: %m", path);
/systemd/src/network/
H A Dnetworkd-netdev.c2 This file is part of systemd.
575 _cleanup_fclose_ FILE *file = NULL; local
581 file = fopen(filename, "re");
582 if (!file) {
589 if (null_or_empty_fd(fileno(file))) {
590 log_debug("Skipping empty file: %s", filename);
600 r = config_parse(NULL, filename, file,
607 r = fseek(file, 0, SEEK_SET);
641 r = config_parse(NULL, filename, file,
H A Dnetworkd-network.c2 This file is part of systemd.
41 _cleanup_fclose_ FILE *file = NULL; local
50 file = fopen(filename, "re");
51 if (!file) {
58 if (null_or_empty_fd(fileno(file))) {
59 log_debug("Skipping empty file: %s", filename);
133 r = config_parse(NULL, filename, file,
/systemd/src/udev/net/
H A Dlink-config.c2 This file is part of systemd.
145 _cleanup_fclose_ FILE *file = NULL; local
151 file = fopen(filename, "re");
152 if (!file) {
159 if (null_or_empty_fd(fileno(file))) {
160 log_debug("Skipping empty file: %s", filename);
172 r = config_parse(NULL, filename, file,
179 log_debug("Parsed configuration file %s", filename);
273 log_warning("Config file %s applies to device based on potentially unpredictable interface name '%s'",
279 log_warning("Config file
[all...]
/systemd/src/bootchart/
H A Dbootchart.c2 This file is part of systemd.
257 static int do_journal_append(char *file) { argument
266 bootchart_file = strappend("BOOTCHART_FILE=", file);
273 bootchart_message = strjoin("MESSAGE=Bootchart created: ", file, NULL);
285 fd = open(file, O_RDONLY|O_CLOEXEC);
287 return log_error_errno(errno, "Failed to open bootchart data \"%s\": %m", file);
476 log_error("Error opening output file '%s': %m\n", output_file);
485 log_error_errno(r, "Error generating svg file: %m");
/systemd/src/delta/
H A Ddelta.c2 This file is part of systemd.
219 char **file; local
244 STRV_FOREACH(file, list) {
250 if (!endswith(*file, ".conf"))
253 p = strjoin(path, "/", *file, NULL);
/systemd/src/coredump/
H A Dcoredumpctl.c2 This file is part of systemd.
285 static void print_field(FILE* file, sd_journal *j) { argument
290 assert(file);
299 fprintf(file, "%s\n", value);
302 static int print_list(FILE* file, sd_journal *j, int had_legend) { argument
314 assert(file);
341 fprintf(file, "%-*s %*s %*s %*s %*s %*s %s\n",
350 fprintf(file, "%-*s %*s %*s %*s %*s %*s %s\n",
362 static int print_info(FILE *file, sd_journal *j, bool need_space) { argument
374 assert(file);
[all...]
/systemd/src/journal-remote/
H A Djournal-remote.c2 This file is part of systemd.
42 #include "journal-file.h"
212 log_debug("Opened output file %s", w->journal->path);
830 char **file; local
854 return log_error_errno(n, "Failed to read listening file descriptors from environment: %m");
958 STRV_FOREACH(file, arg_files) {
961 if (streq(*file, "-")) {
967 log_debug("Reading file %s...", *file);
969 fd = open(*file, O_RDONL
[all...]
/systemd/src/basic/
H A Dlog.c2 This file is part of systemd.
330 const char *file,
353 xsprintf(location, "(%s:%i) ", file, line);
390 const char *file,
453 const char *file,
487 const char *file, int line, const char *func,
501 isempty(file) ? "" : "CODE_FILE=",
502 isempty(file) ? "" : file,
503 isempty(file)
327 write_to_console( int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object, const char *buffer) argument
387 write_to_syslog( int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object, const char *buffer) argument
450 write_to_kmsg( int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object, const char *buffer) argument
482 log_do_header( char *header, size_t size, int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object) argument
521 write_to_journal( int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object, const char *buffer) argument
554 log_dispatch( int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object, char *buffer) argument
634 log_dump_internal( int level, int error, const char *file, int line, const char *func, char *buffer) argument
655 log_internalv( int level, int error, const char *file, int line, const char *func, const char *format, va_list ap) argument
682 log_internal( int level, int error, const char *file, int line, const char *func, const char *format, ...) argument
700 log_object_internalv( int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object, const char *format, va_list ap) argument
744 log_object_internal( int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object, const char *format, ...) argument
764 log_assert( int level, const char *text, const char *file, int line, const char *func, const char *format) argument
786 log_assert_failed(const char *text, const char *file, int line, const char *func) argument
791 log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func) argument
796 log_assert_failed_return(const char *text, const char *file, int line, const char *func) argument
801 log_oom_internal(const char *file, int line, const char *func) argument
852 log_struct_internal( int level, int error, const char *file, int line, const char *func, const char *format, ...) argument
1117 log_syntax_internal( const char *unit, int level, const char *config_file, unsigned config_line, int error, const char *file, int line, const char *func, const char *format, ...) argument
[all...]
H A Dhashmap.c2 This file is part of systemd.
152 const char *file; member in struct:hashmap_debug_info
755 h->debug.file = file;
/systemd/src/login/
H A Dlogind-dbus.c2 This file is part of systemd.
1203 _cleanup_free_ char *rule = NULL, *file = NULL; local
1222 if (asprintf(&file, "/etc/udev/rules.d/72-seat-%s.rules", id_for_seat) < 0)
1229 r = write_string_file_atomic_label(file, rule);

Completed in 126 milliseconds