/systemd/src/journal/ |
H A D | test-journal-interleaving.c | 129 JournalFile *one, *two; local 130 one = test_open("one.journal"); 132 append_number(one, 1, NULL); 133 append_number(one, 2, NULL); 136 test_close(one); 141 JournalFile *one, *two; local 142 one = test_open("one.journal"); 144 append_number(one, 212 JournalFile *one, *two; local [all...] |
H A D | test-journal-stream.c | 77 JournalFile *one, *two, *three; local 95 assert_se(journal_file_open("one.journal", O_RDWR|O_CREAT, 0666, true, false, NULL, NULL, NULL, &one) == 0); 129 assert_se(journal_file_append_entry(one, &ts, iovec, 2, NULL, NULL, NULL) == 0); 136 journal_file_close(one);
|
H A D | journald-native.c | 451 static const int one = 1; local 476 r = setsockopt(s->native_fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one)); 482 r = setsockopt(s->native_fd, SOL_SOCKET, SO_PASSSEC, &one, sizeof(one)); 488 r = setsockopt(s->native_fd, SOL_SOCKET, SO_TIMESTAMP, &one, sizeof(one));
|
H A D | journald-syslog.c | 386 static const int one = 1; local 411 r = setsockopt(s->syslog_fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one)); 417 r = setsockopt(s->syslog_fd, SOL_SOCKET, SO_PASSSEC, &one, sizeof(one)); 423 r = setsockopt(s->syslog_fd, SOL_SOCKET, SO_TIMESTAMP, &one, sizeof(one));
|
H A D | catalog.c | 118 static char *combine_entries(const char *one, const char *two) { argument 124 b1 = skip_header(one); 127 l1 = strlen(one); 137 /* Headers from @one */ 138 n = b1 - one; 139 p = mempcpy(p, one, n); 145 /* Body from @one */ 146 n = l1 - (b1 - one);
|
H A D | journald-audit.c | 84 /* The kernel formats string fields in one of two formats. */ 519 static const int one = 1; local 550 r = setsockopt(s->audit_fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one));
|
/systemd/src/resolve/ |
H A D | resolved-llmnr.c | 128 static const int one = 1, pmtu = IP_PMTUDISC_DONT, ttl = 255; local 153 r = setsockopt(m->llmnr_ipv4_udp_fd, IPPROTO_IP, IP_MULTICAST_LOOP, &one, sizeof(one)); 159 r = setsockopt(m->llmnr_ipv4_udp_fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)); 165 r = setsockopt(m->llmnr_ipv4_udp_fd, IPPROTO_IP, IP_PKTINFO, &one, sizeof(one)); 171 r = setsockopt(m->llmnr_ipv4_udp_fd, IPPROTO_IP, IP_RECVTTL, &one, sizeof(one)); 208 static const int one local 336 static const int one = 1, pmtu = IP_PMTUDISC_DONT; local 410 static const int one = 1; local [all...] |
H A D | resolved-mdns.c | 140 static const int one = 1, pmtu = IP_PMTUDISC_DONT, ttl = 255; local 164 r = setsockopt(m->mdns_ipv4_fd, IPPROTO_IP, IP_MULTICAST_LOOP, &one, sizeof(one)); 170 r = setsockopt(m->mdns_ipv4_fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)); 176 r = setsockopt(m->mdns_ipv4_fd, IPPROTO_IP, IP_PKTINFO, &one, sizeof(one)); 182 r = setsockopt(m->mdns_ipv4_fd, IPPROTO_IP, IP_RECVTTL, &one, sizeof(one)); 217 static const int one local [all...] |
H A D | resolved-dns-scope.c | 309 static const int one = 1; local 354 r = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one)); 377 r = setsockopt(fd, IPPROTO_IP, IP_TTL, &one, sizeof(one)); 381 r = setsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &one, sizeof(one)); 548 * one. This is necessary on some devices, such as 887 /* We only place one RR per key in the conflict 951 * found one, w [all...] |
/systemd/src/basic/ |
H A D | socket-label.c | 53 int r, one; local 92 one = 1; 93 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)) < 0) 98 one = 1; 99 if (setsockopt(fd, IPPROTO_IP, IP_FREEBIND, &one, sizeof(one)) < 0) 104 one = 1; 105 if (setsockopt(fd, IPPROTO_IP, IP_TRANSPARENT, &one, sizeof(one)) < [all...] |
/systemd/src/libsystemd-network/ |
H A D | icmp6-util.c | 50 int r, zero = 0, one = 1, hops = 255; local 82 r = setsockopt(s, SOL_IPV6, IPV6_RECVHOPLIMIT, &one, sizeof(one));
|
/systemd/test/bus-policy/ |
H A D | test.conf | 9 this user can only send the one kind of message -->
|
/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-socket.c | 107 int r, one = 1; local 109 r = setsockopt(nl->fd, SOL_NETLINK, NETLINK_PKTINFO, &one, sizeof(one));
|
/systemd/src/test/ |
H A D | test-fileio.c | 41 _cleanup_free_ char *one = NULL, *two = NULL, *three = NULL, *four = NULL, *five = NULL, local 57 fputs("one=BAR \n" 84 assert_se(streq_ptr(a[0], "one=BAR")); 106 "one", &one, 120 log_info("one=[%s]", strna(one)); 131 assert_se(streq(one, "BAR")); 170 fputs("one=BAR\\\n" 191 assert_se(streq_ptr(a[0], "one [all...] |
H A D | test-util.c | 887 _cleanup_free_ char *one, *three, *zero; local 888 one = strrep("waldo", 1); 892 assert_se(streq(one, "waldo"));
|
/systemd/src/shared/ |
H A D | ask-password-api.c | 421 static const int one = 1; local 438 if (setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one)) < 0)
|
/systemd/src/core/ |
H A D | socket.c | 441 log_unit_error(UNIT(s), "Unit has symlinks set but none or more than one node in the file system. Refusing."); 809 * before we create a new one, not after we stopped 810 * using one! */ 887 int one = 1; local 888 if (setsockopt(fd, SOL_SOCKET, SO_BROADCAST, &one, sizeof(one)) < 0) 893 int one = 1; local 894 if (setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one)) < 0) 899 int one local [all...] |
H A D | manager.c | 455 /* .. one free signal here ... */ 471 /* ... one free signal here SIGRTMIN+30 ... */ 685 static const int one = 1; local 721 r = setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one)); 804 GC_OFFSET_IN_PATH, /* This one is on the path we were traveling */ 853 /* We definitely know that this one is not useful anymore, so 1598 * to avoid notifying the same one multiple times. */ 1779 /* Run the exit target if there is one, if not, just exit. */
|
/systemd/src/import/ |
H A D | importd.c | 654 static const int one = 1; local 683 if (setsockopt(m->notify_fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one)) < 0)
|
/systemd/src/udev/ |
H A D | udevd.c | 594 /* only one process can add events to the queue */ 686 /* one devpath is contained in the other? */ 1501 int r, fd_worker, one = 1; local 1545 r = setsockopt(fd_worker, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one));
|