Home
last modified time | relevance | path

Searched refs:fd1 (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/test/ !
Dtest-data-fd-util.c62 static void assert_equal_fd(int fd1, int fd2) { in assert_equal_fd() argument
67 x = read(fd1, a, sizeof(a)); in assert_equal_fd()
83 _cleanup_close_ int fd1 = -1, fd2 = -1; in TEST() local
88 fd1 = open("/etc/fstab", O_RDONLY|O_CLOEXEC); in TEST()
89 if (fd1 >= 0) { in TEST()
91 fd2 = copy_data_fd(fd1); in TEST()
94 assert_se(lseek(fd1, 0, SEEK_SET) == 0); in TEST()
95 assert_equal_fd(fd1, fd2); in TEST()
98 fd1 = safe_close(fd1); in TEST()
101 fd1 = acquire_data_fd("hallo", 6, 0); in TEST()
[all …]
Dtest-fd-util.c396 _cleanup_close_ int fd1 = -1, fd2 = -1; in TEST() local
401 fd1 = open("/proc", O_DIRECTORY|O_PATH|O_CLOEXEC); in TEST()
402 assert_se(fd1 >= 0); in TEST()
404 assert_se(fstat(fd1, &st1) >= 0); in TEST()
407 fl = fcntl(fd1, F_GETFL); in TEST()
412 fd2 = fd_reopen(fd1, O_RDONLY|O_DIRECTORY|O_CLOEXEC); /* drop the O_PATH */ in TEST()
425 safe_close(fd1); in TEST()
427 fd1 = fd_reopen(fd2, O_DIRECTORY|O_PATH|O_CLOEXEC); /* reacquire the O_PATH */ in TEST()
428 assert_se(fd1 >= 0); in TEST()
430 assert_se(fstat(fd1, &st1) >= 0); in TEST()
[all …]
Dtest-socket-util.c491 _cleanup_close_ int fd1 = -1, fd2 = -1, fd3 = -1; in TEST() local
506 fd1 = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0); in TEST()
507 assert_se(fd1 >= 0); in TEST()
508 assert_se(bind(fd1, &sa.sa, SOCKADDR_LEN(sa)) >= 0); in TEST()
509 assert_se(listen(fd1, 1) >= 0); in TEST()
/systemd-251/src/login/ !
Dtest-inhibit.c71 int fd1, fd2; in main() local
79 fd1 = inhibit(bus, "sleep"); in main()
80 assert_se(fd1 >= 0); in main()
87 safe_close(fd1); in main()
/systemd-251/src/core/ !
Dmanager-serialize.c506 int fd0, fd1; in manager_deserialize() local
508 …anf(val, "%i %i", &fd0, &fd1) != 2 || fd0 < 0 || fd1 < 0 || fd0 == fd1 || !fdset_contains(fds, fd0… in manager_deserialize()
514 m->user_lookup_fds[1] = fdset_remove(fds, fd1); in manager_deserialize()
Ddynamic-user.c641 int r, fd0, fd1; in dynamic_user_deserialize_one() local
660 if (safe_atoi(s1, &fd1) < 0 || !fdset_contains(fds, fd1)) { in dynamic_user_deserialize_one()
665 r = dynamic_user_add(m, name, (int[]) { fd0, fd1 }, NULL); in dynamic_user_deserialize_one()
672 (void) fdset_remove(fds, fd1); in dynamic_user_deserialize_one()
/systemd-251/hwdb.d/ !
Dpci.ids491 1028 1fd1 PERC H730P MX
7774 2fd1 PCI-7334
11383 0fd1 GK107M [GeForce GT 650M]
31510 2fd1 Xeon E7 v3/Xeon E5 v3/Core i7 Integrated Memory Controller 1 Channel 1 Thermal Control
32850 6fd1 Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D Memory Controller 1 - Channel 1 Thermal Control
Dusb.ids15556 0fd1 Giant Electronics Ltd.
22358 3fd1 Fireface UFX+