1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-22 22:03:43 +03:00

#pragma once here and there

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-01-23 09:20:59 -05:00
parent 6825a04de6
commit c9403dced7
15 changed files with 30 additions and 0 deletions

View File

@ -19,6 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include <stdbool.h>
#include "path-lookup.h"

View File

@ -18,6 +18,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#define __make_section_unallocated(section_string) \
asm (".section " section_string "\n\t.previous");

View File

@ -19,6 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include "sd-event.h"
#include "util.h"

View File

@ -20,6 +20,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include "sd-event.h"
#include "sd-dhcp-server.h"

View File

@ -19,6 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include <sys/types.h>
#include "hashmap.h"

View File

@ -19,6 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include <stdbool.h>
#include <sys/types.h>

View File

@ -19,6 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include <endian.h>
#include "sd-id128.h"

View File

@ -4,6 +4,8 @@
* Copyright 2000, 2005 Red Hat, Inc.
*/
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>

View File

@ -19,6 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include <stdbool.h>
bool session_id_valid(const char *id);

View File

@ -19,6 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
void sigbus_install(void);
void sigbus_reset(void);

View File

@ -19,6 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
int parse_sleep_config(const char *verb, char ***modes, char ***states);
int can_sleep(const char *verb);

View File

@ -17,6 +17,8 @@
* Boston, MA 02110-1301 USA
*/
#pragma once
#include <mtd/mtd-user.h>
/* Full oob structure as written on the flash */

View File

@ -10,6 +10,8 @@
* Free Software Foundation version 2 of the License.
*/
#pragma once
#include <scsi/scsi.h>
struct scsi_ioctl_command {

View File

@ -15,6 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define MAX_PATH_LEN 512
/*

View File

@ -15,6 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "udev.h"
struct udev_device *find_device(struct udev *udev,