Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 24 of 24) sorted by relevance

/systemd-251/src/test/
Dtest-socket-util.c171 int pair[2]; in TEST() local
199 assert_se(socketpair(AF_UNIX, SOCK_STREAM, 0, pair) >= 0); in TEST()
201 assert_se(getpeercred(pair[0], &ucred) >= 0); in TEST()
210 r = getpeergroups(pair[0], &peer_groups); in TEST()
219 safe_close_pair(pair); in TEST()
226 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in TEST() local
229 assert_se(socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) >= 0); in TEST()
236 pair[0] = safe_close(pair[0]); in TEST()
245 assert_se(send_one_fd(pair[1], tmpfd, MSG_DONTWAIT) == 0); in TEST()
254 pair[1] = safe_close(pair[1]); in TEST()
[all …]
Dtest-fd-util.c155 int pair[2]; in TEST() local
156 assert_se(pipe(pair) >= 0); in TEST()
157 assert_se(pair[0] == 0); in TEST()
158 assert_se(pair[1] == 1); in TEST()
/systemd-251/tmpfiles.d/
Dmeson.build19 foreach pair : files
22 elif pair[1] == '' or conf.get(pair[1]) == 1
23 install_data(pair[0], install_dir : tmpfilesdir)
26 .format(pair[0], pair[1], conf.get(pair[1], 0)))
37 foreach pair : in_files
40 elif pair[1] == '' or conf.get(pair[1]) == 1
42 pair[0],
43 input : pair[0] + '.in',
44 output: pair[0],
50 .format(pair[0], pair[1], conf.get(pair[1], 0)))
/systemd-251/src/libsystemd/sd-bus/
Dbus-container.c16 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in bus_container_connect_socket() local
52 if (socketpair(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0, pair) < 0) in bus_container_connect_socket()
60 pair[0] = safe_close(pair[0]); in bus_container_connect_socket()
66 (void) write(pair[1], &error_buf, sizeof(error_buf)); in bus_container_connect_socket()
73 pair[1] = safe_close(pair[1]); in bus_container_connect_socket()
80 n = read(pair[0], &error_buf, sizeof(error_buf)); in bus_container_connect_socket()
Dtest-bus-benchmark.c215 int i, pair[2] = { -1, -1 }; in main() local
256 assert_se(socketpair(AF_UNIX, SOCK_STREAM, 0, pair) >= 0); in main()
258 r = sd_bus_set_fd(b, pair[0], pair[0]); in main()
302 client_chart(type, address, server_name, pair[1]); in main()
320 safe_close(pair[1]); in main()
/systemd-251/sysusers.d/
Dmeson.build7 foreach pair : files
10 elif pair[1] == '' or conf.get(pair[1]) == 1
11 install_data(pair[0], install_dir : sysusersdir)
14 .format(pair[0], pair[1], conf.get(pair[1], 0)))
/systemd-251/src/machine/
Dmachine-dbus.c239 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in bus_machine_method_get_addresses() local
261 if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, pair) < 0) in bus_machine_method_get_addresses()
273 pair[0] = safe_close(pair[0]); in bus_machine_method_get_addresses()
285 r = writev(pair[1], iov, 2); in bus_machine_method_get_addresses()
290 pair[1] = safe_close(pair[1]); in bus_machine_method_get_addresses()
295 pair[1] = safe_close(pair[1]); in bus_machine_method_get_addresses()
310 n = recvmsg(pair[0], &mh, 0); in bus_machine_method_get_addresses()
388 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in bus_machine_method_get_os_release() local
396 if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, pair) < 0) in bus_machine_method_get_os_release()
407 pair[0] = safe_close(pair[0]); in bus_machine_method_get_os_release()
[all …]
/systemd-251/src/basic/
Dterminal-util.c1134 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in openpt_allocate_in_namespace() local
1144 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) < 0) in openpt_allocate_in_namespace()
1152 pair[0] = safe_close(pair[0]); in openpt_allocate_in_namespace()
1158 if (send_one_fd(pair[1], fd, 0) < 0) in openpt_allocate_in_namespace()
1164 pair[1] = safe_close(pair[1]); in openpt_allocate_in_namespace()
1172 fd = receive_one_fd(pair[0], 0); in openpt_allocate_in_namespace()
1187 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in open_terminal_in_namespace() local
1195 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) < 0) in open_terminal_in_namespace()
1205 pair[0] = safe_close(pair[0]); in open_terminal_in_namespace()
1211 if (send_one_fd(pair[1], master, 0) < 0) in open_terminal_in_namespace()
[all …]
/systemd-251/hwdb.d/
Dparse_hwdb.py276 for pair in pairs:
277 if pair[0] in properties and pair[1] not in properties:
278 error('{} requires {} to be specified', *pair)
Dusb.ids18664 05e1 Free shared USB VID/PID pair for CDC devices
18665 05e4 Free shared USB VID/PID pair for MIDI devices
D20-usb-vendor-model.hwdb55926 ID_MODEL_FROM_DATABASE=Free shared USB VID/PID pair for CDC devices
55929 ID_MODEL_FROM_DATABASE=Free shared USB VID/PID pair for MIDI devices
/systemd-251/src/libsystemd/sd-login/
Dtest-login.c40 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in TEST() local
81 assert_se(socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == 0); in TEST()
82 sd_peer_get_session(pair[0], &pp); in TEST()
83 sd_peer_get_session(pair[1], &qq); in TEST()
/systemd-251/docs/
Dindex.md20 {% for pair in merged %}
21 {% if pair.name != "" %}
22 ## {{ pair.name }}
23 {% assign sorted = pair.items | sort:"title" %}{% for page in sorted %}
DJOURNAL_NATIVE_PROTOCOL.md64 key/value pair is serialized via one of two methods:
79 If the value of a key/value pair contains a newline character (`\n`), it *must*
94 The most important key/value pair to send is `MESSAGE=`, as that contains the
169 colon-separated pair of device and inode number (formatted in decimal ASCII) of
DUSER_GROUP_API.md251 returned. The return value is a pair of user name and group name, where the
253 membership will be tested for, but no others, and the pair is returned if it is
DUSERDB_AND_DESKTOPS.md88 automatically ask if a key pair shall be written to it and the local account be
DHOME_DIRECTORY.md58 pair of Base64 encoded data fields. The first field contains a salt value, the
DUIDS-GIDS.md228 call in a `lckpwdf()` + `ulckpwdf()` pair, to make allocation
/systemd-251/src/shared/
Dlogs-show.c1511 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in get_boot_id_for_machine() local
1529 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) < 0) in get_boot_id_for_machine()
1539 pair[0] = safe_close(pair[0]); in get_boot_id_for_machine()
1550 k = send(pair[1], buf, 36, MSG_NOSIGNAL); in get_boot_id_for_machine()
1557 pair[1] = safe_close(pair[1]); in get_boot_id_for_machine()
1565 k = recv(pair[0], buf, 36, 0); in get_boot_id_for_machine()
/systemd-251/src/core/
Dsocket.c1507 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in socket_address_listen_in_cgroup() local
1551 if (socketpair(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0, pair) < 0) in socket_address_listen_in_cgroup()
1560 pair[0] = safe_close(pair[0]); in socket_address_listen_in_cgroup()
1585 r = send_one_fd(pair[1], fd, 0); in socket_address_listen_in_cgroup()
1594 pair[1] = safe_close(pair[1]); in socket_address_listen_in_cgroup()
1595 fd = receive_one_fd(pair[0], 0); in socket_address_listen_in_cgroup()
2904 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in socket_accept_in_cgroup() local
2924 if (socketpair(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0, pair) < 0) in socket_accept_in_cgroup()
2933 pair[0] = safe_close(pair[0]); in socket_accept_in_cgroup()
2943 r = send_one_fd(pair[1], cfd, 0); in socket_accept_in_cgroup()
[all …]
Dexecute.c3859 static void append_socket_pair(int *array, size_t *n, const int pair[static 2]) { in append_socket_pair()
3862 assert(pair); in append_socket_pair()
3864 if (pair[0] >= 0) in append_socket_pair()
3865 array[(*n)++] = pair[0]; in append_socket_pair()
3866 if (pair[1] >= 0) in append_socket_pair()
3867 array[(*n)++] = pair[1]; in append_socket_pair()
/systemd-251/shell-completion/zsh/
D_journalctl136 '--setup-keys[Generate a new FSS key pair]' \
/systemd-251/
DNEWS252 trusted.invocation_id. The latter pair requires privileges to set,
873 * systemd-analyze verify gained support for a pair of new --image= +
1734 * A pair of service settings SocketBindAllow= + SocketBindDeny= have
1880 * A pair of new dependency types between units PropagatesStopTo= +
2091 pair of cleaned up, human readable strings describing the system's
3212 * Another pair of new settings ConditionEnvironment=/AssertEnvironment=
5367 sd_bus_message_read() but takes a va_list object. The pair
5541 * Unit files gained support for a pair of options
5546 * A pair of LogRateLimitIntervalSec=/LogRateLimitBurst= per-service
6414 * sd-event gained a new call pair
[all …]
DTODO151 it. when developer mode is entered generate a key pair in the TPM2, and add