Searched defs:err (Results 1 - 25 of 30) sorted by relevance

12

/systemd/src/udev/
H A Dudev-builtin-btrfs.c36 int err; local
46 err = ioctl(fd, BTRFS_IOC_DEVICES_READY, &args);
47 if (err < 0)
50 udev_builtin_add_property(dev, test, "ID_BTRFS_READY", one_zero(err == 0));
H A Dudev-builtin-kmod.c35 int err; local
37 err = kmod_module_new_from_lookup(ctx, alias, &list);
38 if (err < 0)
39 return err;
47 err = kmod_module_probe_insert_module(mod, KMOD_PROBE_APPLY_BLACKLIST, NULL, NULL, NULL, NULL);
48 if (err == KMOD_PROBE_APPLY_BLACKLIST)
50 else if (err == 0)
59 return err;
H A Dudev-builtin-blkid.c234 int err = 0; local
275 err = log_debug_errno(errno, "Failure opening block device %s: %m", udev_device_get_devnode(dev));
279 err = blkid_probe_set_device(pr, fd, offset, 0);
280 if (err < 0)
287 err = probe_superblocks(pr);
288 if (err < 0)
326 if (err < 0)
H A Dudev-node.c44 int err = 0; local
62 err = -EINVAL;
89 err = mkdir_parents_label(slink, 0755);
90 if (err != 0 && err != -ENOENT)
93 err = symlink(target, slink);
94 if (err != 0)
95 err = -errno;
97 } while (err == -ENOENT);
98 if (err
207 int err; local
259 int err = 0; local
[all...]
H A Dudev-builtin-net_id.c210 int hotplug_slot = 0, err = 0; local
236 err = -ENOENT;
242 err = -errno;
285 return err;
501 int err; local
537 err = names_mac(dev, &names);
538 if (err >= 0 && names.mac_valid) {
550 err = names_ccw(dev, &names);
551 if (err >= 0 && names.type == NET_CCWGROUP) {
560 err
[all...]
H A Dudev-builtin-path_id.c41 int err = 0; local
44 err = vasprintf(&pre, fmt, va);
46 if (err < 0)
52 err = asprintf(&new, "%s-%s", pre, *path);
54 if (err < 0)
62 return err;
H A Dudev-ctrl.c117 int err; local
120 err = bind(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen);
121 if (err < 0 && errno == EADDRINUSE) {
123 err = bind(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen);
126 if (err < 0)
129 err = listen(uctrl->sock, 0);
130 if (err < 0)
190 goto err;
197 goto err;
201 goto err;
240 int err = 0; local
[all...]
H A Dudev-event.c417 /* connect pipes to std{out,err} */
553 log_debug("'%s'(%s) '%s'", cmd, *fd == fd_stdout ? "out" : "err" , line);
729 int err = 0; local
734 err = log_error_errno(errno, "pipe failed: %m");
740 err = log_error_errno(errno, "pipe failed: %m");
775 err = -1;
788 err = spawn_wait(event, timeout_usec, timeout_warn_usec, cmd, pid, accept_failure);
800 return err;
/systemd/src/test/
H A Dtest-rlimit-util.c53 struct rlimit err = { local
88 assert_se(setrlimit_closest(RLIMIT_NOFILE, &err) == -EINVAL);
H A Dtest-udev.c50 int err; local
52 err = unshare(CLONE_NEWNS);
53 if (err < 0) {
54 err = -errno;
60 err = -errno;
66 err = mount(fakefss[i].src, fakefss[i].target, NULL, MS_BIND, NULL);
67 if (err < 0) {
68 err = -errno;
70 return err;
74 return err;
85 int err; local
[all...]
/systemd/src/boot/efi/
H A Dgraphics.c65 EFI_STATUS err; local
67 err = LibLocateProtocol(&ConsoleControlProtocolGuid, (VOID **)&ConsoleControl);
68 if (EFI_ERROR(err))
70 return err == EFI_NOT_FOUND ? EFI_SUCCESS : err;
73 err = uefi_call_wrapper(ConsoleControl->GetMode, 4, ConsoleControl, &current, &uga_exists, &stdin_locked);
74 if (EFI_ERROR(err))
75 return err;
82 err = uefi_call_wrapper(ConsoleControl->SetMode, 2, ConsoleControl, new);
87 return err;
[all...]
H A Dstub.c49 EFI_STATUS err; local
53 err = uefi_call_wrapper(BS->OpenProtocol, 6, image, &LoadedImageProtocol, (VOID **)&loaded_image,
55 if (EFI_ERROR(err)) {
56 Print(L"Error getting a LoadedImageProtocol handle: %r ", err);
58 return err;
63 Print(L"Unable to open root directory: %r ", err);
76 err = pefile_locate_sections(root_dir, loaded_image_path, sections, addrs, offs, szs);
77 if (EFI_ERROR(err)) {
78 Print(L"Unable to locate embedded .linux section: %r ", err);
80 return err;
[all...]
H A Dconsole.c85 EFI_STATUS err; local
88 err = LibLocateProtocol(&EfiSimpleTextInputExProtocolGuid, (VOID **)&TextInputEx);
89 if (EFI_ERROR(err))
107 err = uefi_call_wrapper(TextInputEx->ReadKeyStrokeEx, 2, TextInputEx, &keydata);
108 if (!EFI_ERROR(err)) {
133 err = uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &k);
134 if (EFI_ERROR(err))
135 return err;
H A Dlinux.c91 EFI_STATUS err; local
101 err = uefi_call_wrapper(BS->AllocatePages, 4, AllocateMaxAddress, EfiLoaderData,
103 if (EFI_ERROR(err))
104 return err;
114 err = uefi_call_wrapper(BS->AllocatePages, 4, AllocateMaxAddress, EfiLoaderData,
116 if (EFI_ERROR(err))
117 return err;
H A Dpefile.c76 EFI_STATUS err; local
78 err = uefi_call_wrapper(dir->Open, 5, dir, &handle, path, EFI_FILE_MODE_READ, 0ULL);
79 if (EFI_ERROR(err))
80 return err;
84 err = uefi_call_wrapper(handle->Read, 3, handle, &len, &dos);
85 if (EFI_ERROR(err))
88 err = EFI_LOAD_ERROR;
93 err = EFI_LOAD_ERROR;
97 err = uefi_call_wrapper(handle->SetPosition, 2, handle, dos.ExeHeader);
98 if (EFI_ERROR(err))
[all...]
H A Dsplash.c265 EFI_STATUS err; local
276 err = LibLocateProtocol(&GraphicsOutputProtocolGuid, (VOID **)&GraphicsOutput);
277 if (EFI_ERROR(err))
278 return err;
280 err = bmp_parse_header(content, len, &dib, &map, &pixmap);
281 if (EFI_ERROR(err))
282 goto err;
301 err = uefi_call_wrapper(GraphicsOutput->Blt, 10, GraphicsOutput,
304 if (EFI_ERROR(err))
305 goto err;
[all...]
H A Dutil.c120 EFI_STATUS err; local
122 err = efivar_get_raw(&loader_guid, name, &buf, &size);
123 if (EFI_ERROR(err))
124 return err;
138 EFI_STATUS err; local
140 err = efivar_get(name, &val);
141 if (!EFI_ERROR(err)) {
145 return err;
151 EFI_STATUS err; local
158 err
310 EFI_STATUS err; local
[all...]
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-util.c101 struct nlmsgerr *err; local
112 err = NLMSG_DATA((*ret)->hdr);
114 err->error = error;
H A Dnetlink-message.c890 struct nlmsgerr *err; local
898 err = NLMSG_DATA(m->hdr);
900 return err->error;
/systemd/src/bus-proxyd/
H A Ddriver.c442 int err = 0; local
475 err = -ENOMEM;
481 err = r;
487 if (err < 0)
495 if (err < 0)
496 return synthetic_reply_method_errno(m, err, NULL);
/systemd/src/modules-load/
H A Dmodules-load.c92 int state, err; local
107 err = kmod_module_probe_insert_module(mod, probe_flags,
110 if (err == 0)
112 else if (err == KMOD_PROBE_APPLY_BLACKLIST)
115 log_error_errno(err, "Failed to insert '%s': %m", kmod_module_get_name(mod));
116 r = err;
/systemd/src/libsystemd/sd-hwdb/
H A Dsd-hwdb.c173 int err; local
183 err = trie_fnmatch_f(hwdb, trie_node_from_off(hwdb, child->child_off), 0, buf, search);
184 if (err < 0)
185 return err;
191 err = hwdb_add_property(hwdb, trie_string(hwdb, trie_node_values(hwdb, node)[i].key_off),
193 if (err < 0)
194 return err;
205 int err; local
229 err = trie_fnmatch_f(hwdb, child, 0, &buf, search + i);
230 if (err <
[all...]
/systemd/src/hwdb/
H A Dhwdb.c199 int err = 0; local
240 err = node_add_child(trie, node, new_child, c);
241 if (err < 0)
242 return err;
269 err = node_add_child(trie, node, child, c);
270 if (err < 0) {
272 return err;
378 int err; local
384 err = fopen_temporary(filename , &t.f, &filename_tmp);
385 if (err <
[all...]
/systemd/src/libudev/
H A Dlibudev-monitor.c294 int err; local
383 err = setsockopt(udev_monitor->sock, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter));
384 return err < 0 ? -errno : 0;
403 int err = 0; local
409 err = bind(udev_monitor->sock,
411 if (err == 0)
415 if (err >= 0)
421 err = setsockopt(udev_monitor->sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on));
422 if (err < 0)
447 int err; local
[all...]
/systemd/src/udev/scsi_id/
H A Dscsi_serial.c95 #define SG_ERR_CAT_RECOVERED 4 /* Successful command after recovered err */
817 int err = 0; local
827 err = 2;
834 err = scsi_inquiry(udev, dev_scsi, fd, 0, 0, buf, SCSI_INQ_BUFF_LEN);
835 if (err < 0)
838 err = 0;
849 return err;

Completed in 2270 milliseconds

12