tests: Fixes test-io-channel-file by mask only owner file state mask bits
[qemu/ar7.git] / include / qemu / systemd.h
blobf0ea1266d5604c443891173cf6e8219becbbfaef
1 /*
2 * systemd socket activation support
4 * Copyright 2017 Red Hat, Inc. and/or its affiliates
6 * Authors:
7 * Richard W.M. Jones <rjones@redhat.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #ifndef QEMU_SYSTEMD_H
14 #define QEMU_SYSTEMD_H
16 #define FIRST_SOCKET_ACTIVATION_FD 3 /* defined by systemd ABI */
19 * Check if socket activation was requested via use of the
20 * LISTEN_FDS and LISTEN_PID environment variables.
22 * Returns 0 if no socket activation, or the number of FDs.
24 unsigned int check_socket_activation(void);
26 #endif