use #pragma once instead of foo*foo #define guards

#pragma once has been "un-deprecated" in gcc since 3.3, and is widely supported
in other compilers.

I've been using and maintaining (rebasing) this patch for a while now, as
it annoyed me to see #ifndef fooblahfoo, etc all over the place,
almost arrogant about the annoyance of having to define all these names to
perform a commen but neccicary functionality, when a completely superior
alternative exists.

I havn't sent it till now, cause its kindof a style change, and it is bad
voodoo to mess with style that has been established by more established
editors. So feel free to lambast me as a crazy bafoon.

v2 - preserve externally used headers
This commit is contained in:
Shawn Landden 2012-07-18 10:07:51 -07:00 committed by Lennart Poettering
parent 4a842cadb8
commit c2f1db8f83
95 changed files with 95 additions and 379 deletions

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooautomounthfoo #pragma once
#define fooautomounthfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -72,5 +71,3 @@ AutomountState automount_state_from_string(const char *s);
const char* automount_result_to_string(AutomountResult i); const char* automount_result_to_string(AutomountResult i);
AutomountResult automount_result_from_string(const char *s); AutomountResult automount_result_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foobuildhfoo #pragma once
#define foobuildhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -65,5 +64,3 @@
#endif #endif
#define SYSTEMD_FEATURES _PAM_FEATURE_ " " _LIBWRAP_FEATURE_ " " _AUDIT_FEATURE_ " " _SELINUX_FEATURE_ " " _IMA_FEATURE_ " " _SYSVINIT_FEATURE_ " " _LIBCRYPTSETUP_FEATURE_ #define SYSTEMD_FEATURES _PAM_FEATURE_ " " _LIBWRAP_FEATURE_ " " _AUDIT_FEATURE_ " " _SELINUX_FEATURE_ " " _IMA_FEATURE_ " " _SYSVINIT_FEATURE_ " " _LIBCRYPTSETUP_FEATURE_
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foobuserrorshfoo #pragma once
#define foobuserrorshfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -54,5 +53,3 @@ static inline const char *bus_error(const DBusError *e, int r) {
return strerror(-r); return strerror(-r);
} }
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foocgroupattrhfoo #pragma once
#define foocgroupattrhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -45,5 +44,3 @@ int cgroup_attribute_apply_list(CGroupAttribute *first, CGroupBonding *b);
CGroupAttribute *cgroup_attribute_find_list(CGroupAttribute *first, const char *controller, const char *name); CGroupAttribute *cgroup_attribute_find_list(CGroupAttribute *first, const char *controller, const char *name);
void cgroup_attribute_free_list(CGroupAttribute *first); void cgroup_attribute_free_list(CGroupAttribute *first);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foocgrouphfoo #pragma once
#define foocgrouphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -90,5 +89,3 @@ int cgroup_bonding_get(Manager *m, const char *cgroup, CGroupBonding **bonding);
int cgroup_notify_empty(Manager *m, const char *group); int cgroup_notify_empty(Manager *m, const char *group);
Unit* cgroup_unit_by_pid(Manager *m, pid_t pid); Unit* cgroup_unit_by_pid(Manager *m, pid_t pid);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooconditionhfoo #pragma once
#define fooconditionhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -66,5 +65,3 @@ void condition_dump_list(Condition *c, FILE *f, const char *prefix);
const char* condition_type_to_string(ConditionType t); const char* condition_type_to_string(ConditionType t);
int condition_type_from_string(const char *s); int condition_type_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusautomounthfoo #pragma once
#define foodbusautomounthfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -30,5 +29,3 @@ DBusHandlerResult bus_automount_message_handler(Unit *u, DBusConnection *c, DBus
extern const char bus_automount_interface[]; extern const char bus_automount_interface[];
extern const char bus_automount_invalidating_properties[]; extern const char bus_automount_invalidating_properties[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusdevicehfoo #pragma once
#define foodbusdevicehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -30,5 +29,3 @@ DBusHandlerResult bus_device_message_handler(Unit *u, DBusConnection *c, DBusMes
extern const char bus_device_interface[]; extern const char bus_device_interface[];
extern const char bus_device_invalidating_properties[]; extern const char bus_device_invalidating_properties[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusexecutehfoo #pragma once
#define foodbusexecutehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -124,5 +123,3 @@ int bus_execute_append_command(DBusMessageIter *u, const char *property, void *d
int bus_execute_append_kill_mode(DBusMessageIter *i, const char *property, void *data); int bus_execute_append_kill_mode(DBusMessageIter *i, const char *property, void *data);
int bus_execute_append_env_files(DBusMessageIter *i, const char *property, void *data); int bus_execute_append_env_files(DBusMessageIter *i, const char *property, void *data);
int bus_execute_append_syscall_filter(DBusMessageIter *i, const char *property, void *data); int bus_execute_append_syscall_filter(DBusMessageIter *i, const char *property, void *data);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusjobhfoo #pragma once
#define foodbusjobhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -32,5 +31,3 @@ void bus_job_send_removed_signal(Job *j);
extern const DBusObjectPathVTable bus_job_vtable; extern const DBusObjectPathVTable bus_job_vtable;
extern const char bus_job_interface[]; extern const char bus_job_interface[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusmanagerhfoo #pragma once
#define foodbusmanagerhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -27,5 +26,3 @@
extern const DBusObjectPathVTable bus_manager_vtable; extern const DBusObjectPathVTable bus_manager_vtable;
extern const char bus_manager_interface[]; extern const char bus_manager_interface[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusmounthfoo #pragma once
#define foodbusmounthfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -30,5 +29,3 @@ DBusHandlerResult bus_mount_message_handler(Unit *u, DBusConnection *c, DBusMess
extern const char bus_mount_interface[]; extern const char bus_mount_interface[];
extern const char bus_mount_invalidating_properties[]; extern const char bus_mount_invalidating_properties[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbuspathhfoo #pragma once
#define foodbuspathhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -31,5 +30,3 @@ DBusHandlerResult bus_path_message_handler(Unit *u, DBusConnection *c, DBusMessa
extern const char bus_path_interface[]; extern const char bus_path_interface[];
extern const char bus_path_invalidating_properties[]; extern const char bus_path_invalidating_properties[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusservicehfoo #pragma once
#define foodbusservicehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -30,5 +29,3 @@ DBusHandlerResult bus_service_message_handler(Unit *u, DBusConnection *c, DBusMe
extern const char bus_service_interface[]; extern const char bus_service_interface[];
extern const char bus_service_invalidating_properties[]; extern const char bus_service_invalidating_properties[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbussnapshothfoo #pragma once
#define foodbussnapshothfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -29,5 +28,3 @@
DBusHandlerResult bus_snapshot_message_handler(Unit *u, DBusConnection *c, DBusMessage *message); DBusHandlerResult bus_snapshot_message_handler(Unit *u, DBusConnection *c, DBusMessage *message);
extern const char bus_snapshot_interface[]; extern const char bus_snapshot_interface[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbussockethfoo #pragma once
#define foodbussockethfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -30,5 +29,3 @@ DBusHandlerResult bus_socket_message_handler(Unit *u, DBusConnection *c, DBusMes
extern const char bus_socket_interface[]; extern const char bus_socket_interface[];
extern const char bus_socket_invalidating_properties[]; extern const char bus_socket_invalidating_properties[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusswaphfoo #pragma once
#define foodbusswaphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -31,5 +30,3 @@ DBusHandlerResult bus_swap_message_handler(Unit *u, DBusConnection *c, DBusMessa
extern const char bus_swap_interface[]; extern const char bus_swap_interface[];
extern const char bus_swap_invalidating_properties[]; extern const char bus_swap_invalidating_properties[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbustargethfoo #pragma once
#define foodbustargethfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -29,5 +28,3 @@
DBusHandlerResult bus_target_message_handler(Unit *u, DBusConnection *c, DBusMessage *message); DBusHandlerResult bus_target_message_handler(Unit *u, DBusConnection *c, DBusMessage *message);
extern const char bus_target_interface[]; extern const char bus_target_interface[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbustimerhfoo #pragma once
#define foodbustimerhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -30,5 +29,3 @@ DBusHandlerResult bus_timer_message_handler(Unit *u, DBusConnection *c, DBusMess
extern const char bus_timer_interface[]; extern const char bus_timer_interface[];
extern const char bus_timer_invalidating_properties[]; extern const char bus_timer_invalidating_properties[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusunithfoo #pragma once
#define foodbusunithfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -138,5 +137,3 @@ void bus_unit_send_removed_signal(Unit *u);
extern const DBusObjectPathVTable bus_unit_vtable; extern const DBusObjectPathVTable bus_unit_vtable;
extern const char bus_unit_interface[]; extern const char bus_unit_interface[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbushfoo #pragma once
#define foodbushfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -49,5 +48,3 @@ void bus_broadcast_finished(Manager *m, usec_t kernel_usec, usec_t initrd_usec,
#define BUS_PENDING_CALL_NAME(m, p) dbus_pending_call_get_data((p), (m)->name_data_slot) #define BUS_PENDING_CALL_NAME(m, p) dbus_pending_call_get_data((p), (m)->name_data_slot)
extern const char * const bus_interface_table[]; extern const char * const bus_interface_table[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodevicehfoo #pragma once
#define foodevicehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -55,5 +54,3 @@ void device_fd_event(Manager *m, int events);
const char* device_state_to_string(DeviceState i); const char* device_state_to_string(DeviceState i);
DeviceState device_state_from_string(const char *s); DeviceState device_state_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooexecutehfoo #pragma once
#define fooexecutehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -235,5 +234,3 @@ KillMode kill_mode_from_string(const char *s);
const char *kill_who_to_string(KillWho k); const char *kill_who_to_string(KillWho k);
KillWho kill_who_from_string(const char *s); KillWho kill_who_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foofdsethfoo #pragma once
#define foofdsethfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -36,5 +35,3 @@ int fdset_remove(FDSet *s, int fd);
int fdset_new_fill(FDSet **_s); int fdset_new_fill(FDSet **_s);
int fdset_cloexec(FDSet *fds, bool b); int fdset_cloexec(FDSet *fds, bool b);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foohostnamesetuphfoo #pragma once
#define foohostnamesetuphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -23,5 +22,3 @@
***/ ***/
int hostname_setup(void); int hostname_setup(void);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooimasetuphfoo #pragma once
#define fooimasetuphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -25,5 +24,3 @@
***/ ***/
int ima_setup(void); int ima_setup(void);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foojobhfoo #pragma once
#define foojobhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -229,5 +228,3 @@ JobMode job_mode_from_string(const char *s);
const char* job_result_to_string(JobResult t); const char* job_result_to_string(JobResult t);
JobResult job_result_from_string(const char *s); JobResult job_result_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fookmodsetuphfoo #pragma once
#define fookmodsetuphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -23,5 +22,3 @@
***/ ***/
int kmod_setup(void); int kmod_setup(void);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooloaddropinhfoo #pragma once
#define fooloaddropinhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -27,5 +26,3 @@
/* Read service data supplementary drop-in directories */ /* Read service data supplementary drop-in directories */
int unit_load_dropin(Unit *u); int unit_load_dropin(Unit *u);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooloadfragmenthfoo #pragma once
#define fooloadfragmenthfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -87,5 +86,3 @@ int config_parse_syscall_filter(const char *filename, unsigned line, const char
/* gperf prototypes */ /* gperf prototypes */
const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, unsigned length); const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, unsigned length);
extern const char load_fragment_gperf_nulstr[]; extern const char load_fragment_gperf_nulstr[];
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foolocalesetuphfoo #pragma once
#define foolocalesetuphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -23,5 +22,3 @@
***/ ***/
int locale_setup(void); int locale_setup(void);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooloopbacksetuphfoo #pragma once
#define fooloopbacksetuphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -23,5 +22,3 @@
***/ ***/
int loopback_setup(void); int loopback_setup(void);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foomachineidsetuphfoo #pragma once
#define foomachineidsetuphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -23,5 +22,3 @@
***/ ***/
int machine_id_setup(void); int machine_id_setup(void);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foomanagerhfoo #pragma once
#define foomanagerhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -304,5 +303,3 @@ bool manager_get_show_status(Manager *m);
const char *manager_running_as_to_string(ManagerRunningAs i); const char *manager_running_as_to_string(ManagerRunningAs i);
ManagerRunningAs manager_running_as_from_string(const char *s); ManagerRunningAs manager_running_as_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foomountsetuphfoo #pragma once
#define foomountsetuphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -32,5 +31,3 @@ int mount_cgroup_controllers(char ***join_controllers);
bool mount_point_is_api(const char *path); bool mount_point_is_api(const char *path);
bool mount_point_ignore(const char *path); bool mount_point_ignore(const char *path);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foomounthfoo #pragma once
#define foomounthfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -118,5 +117,3 @@ MountExecCommand mount_exec_command_from_string(const char *s);
const char* mount_result_to_string(MountResult i); const char* mount_result_to_string(MountResult i);
MountResult mount_result_from_string(const char *s); MountResult mount_result_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foonamespacehfoo #pragma once
#define foonamespacehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -30,5 +29,3 @@ int setup_namespace(
char **inaccessible, char **inaccessible,
bool private_tmp, bool private_tmp,
unsigned long flags); unsigned long flags);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foopathhfoo #pragma once
#define foopathhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -109,5 +108,3 @@ PathType path_type_from_string(const char *s);
const char* path_result_to_string(PathResult i); const char* path_result_to_string(PathResult i);
PathResult path_result_from_string(const char *s); PathResult path_result_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooselinuxsetuphfoo #pragma once
#define fooselinuxsetuphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -25,5 +24,3 @@
#include <stdbool.h> #include <stdbool.h>
int selinux_setup(bool *loaded_policy); int selinux_setup(bool *loaded_policy);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooservicehfoo #pragma once
#define fooservicehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -216,5 +215,3 @@ ServiceResult service_result_from_string(const char *s);
const char* start_limit_action_to_string(StartLimitAction i); const char* start_limit_action_to_string(StartLimitAction i);
StartLimitAction start_limit_action_from_string(const char *s); StartLimitAction start_limit_action_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foosnapshothfoo #pragma once
#define foosnapshothfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -49,5 +48,3 @@ void snapshot_remove(Snapshot *s);
const char* snapshot_state_to_string(SnapshotState i); const char* snapshot_state_to_string(SnapshotState i);
SnapshotState snapshot_state_from_string(const char *s); SnapshotState snapshot_state_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foosockethfoo #pragma once
#define foosockethfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -169,5 +168,3 @@ SocketExecCommand socket_exec_command_from_string(const char *s);
const char* socket_result_to_string(SocketResult i); const char* socket_result_to_string(SocketResult i);
SocketResult socket_result_from_string(const char *s); SocketResult socket_result_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foospecialhfoo #pragma once
#define foospecialhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -86,5 +85,3 @@
#define SPECIAL_RUNLEVEL3_TARGET "runlevel3.target" #define SPECIAL_RUNLEVEL3_TARGET "runlevel3.target"
#define SPECIAL_RUNLEVEL4_TARGET "runlevel4.target" #define SPECIAL_RUNLEVEL4_TARGET "runlevel4.target"
#define SPECIAL_RUNLEVEL5_TARGET "runlevel5.target" #define SPECIAL_RUNLEVEL5_TARGET "runlevel5.target"
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooswaphfoo #pragma once
#define fooswaphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -119,5 +118,3 @@ SwapExecCommand swap_exec_command_from_string(const char *s);
const char* swap_result_to_string(SwapResult i); const char* swap_result_to_string(SwapResult i);
SwapResult swap_result_from_string(const char *s); SwapResult swap_result_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foosysfsshowhfoo #pragma once
#define foosysfsshowhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -23,5 +22,3 @@
***/ ***/
int show_sysfs(const char *seat, const char *prefix, unsigned columns); int show_sysfs(const char *seat, const char *prefix, unsigned columns);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef footargethfoo #pragma once
#define footargethfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -43,5 +42,3 @@ extern const UnitVTable target_vtable;
const char* target_state_to_string(TargetState i); const char* target_state_to_string(TargetState i);
TargetState target_state_from_string(const char *s); TargetState target_state_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foolibwraphfoo #pragma once
#define foolibwraphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -25,5 +24,3 @@
#include <stdbool.h> #include <stdbool.h>
bool socket_tcpwrap(int fd, const char *name); bool socket_tcpwrap(int fd, const char *name);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef footimerhfoo #pragma once
#define footimerhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -89,5 +88,3 @@ TimerBase timer_base_from_string(const char *s);
const char* timer_result_to_string(TimerResult i); const char* timer_result_to_string(TimerResult i);
TimerResult timer_result_from_string(const char *s); TimerResult timer_result_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooumounthfoo #pragma once
#define fooumounthfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -29,5 +28,3 @@ int swapoff_all(bool *changed);
int loopback_detach_all(bool *changed); int loopback_detach_all(bool *changed);
int dm_detach_all(bool *changed); int dm_detach_all(bool *changed);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foounithfoo #pragma once
#define foounithfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -544,5 +543,3 @@ UnitActiveState unit_active_state_from_string(const char *s);
const char *unit_dependency_to_string(UnitDependency i); const char *unit_dependency_to_string(UnitDependency i);
UnitDependency unit_dependency_from_string(const char *s); UnitDependency unit_dependency_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foocompresshfoo #pragma once
#define foocompresshfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -34,5 +33,3 @@ bool uncompress_startswith(const void *src, uint64_t src_size,
void **buffer, uint64_t *buffer_size, void **buffer, uint64_t *buffer_size,
const void *prefix, uint64_t prefix_len, const void *prefix, uint64_t prefix_len,
uint8_t extra); uint8_t extra);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foojournaldefhfoo #pragma once
#define foojournaldefhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -182,5 +181,3 @@ _packed_ struct Header {
le64_t n_data; le64_t n_data;
le64_t n_fields; le64_t n_fields;
}; };
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foojournalfilehfoo #pragma once
#define foojournalfilehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -147,5 +146,3 @@ int journal_file_get_cutoff_realtime_usec(JournalFile *f, usec_t *from, usec_t *
int journal_file_get_cutoff_monotonic_usec(JournalFile *f, sd_id128_t boot, usec_t *from, usec_t *to); int journal_file_get_cutoff_monotonic_usec(JournalFile *f, sd_id128_t boot, usec_t *from, usec_t *to);
bool journal_file_rotate_suggested(JournalFile *f); bool journal_file_rotate_suggested(JournalFile *f);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foojournalinternalhfoo #pragma once
#define foojournalinternalhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -112,4 +111,3 @@ struct sd_journal {
char *journal_make_match_string(sd_journal *j); char *journal_make_match_string(sd_journal *j);
void journal_print_header(sd_journal *j); void journal_print_header(sd_journal *j);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foojournalratelimithfoo #pragma once
#define foojournalratelimithfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -30,5 +29,3 @@ typedef struct JournalRateLimit JournalRateLimit;
JournalRateLimit *journal_rate_limit_new(usec_t interval, unsigned burst); JournalRateLimit *journal_rate_limit_new(usec_t interval, unsigned burst);
void journal_rate_limit_free(JournalRateLimit *r); void journal_rate_limit_free(JournalRateLimit *r);
int journal_rate_limit_test(JournalRateLimit *r, const char *id, int priority, uint64_t available); int journal_rate_limit_test(JournalRateLimit *r, const char *id, int priority, uint64_t available);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foojournaldhfoo #pragma once
#define foojournaldhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -106,5 +105,3 @@ int config_parse_storage(const char *filename, unsigned line, const char *sectio
const char *storage_to_string(Storage s); const char *storage_to_string(Storage s);
Storage storage_from_string(const char *s); Storage storage_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foolookup3hfoo #pragma once
#define foolookup3hfoo
#include <inttypes.h> #include <inttypes.h>
#include <sys/types.h> #include <sys/types.h>
@ -21,5 +20,3 @@ static inline uint64_t hash64(const void *data, size_t length) {
return ((uint64_t) a << 32ULL) | (uint64_t) b; return ((uint64_t) a << 32ULL) | (uint64_t) b;
} }
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foologindaclhfoo #pragma once
#define foologindaclhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -56,5 +55,3 @@ static inline int devnode_acl_all(struct udev *udev,
} }
#endif #endif
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foologinddevicehfoo #pragma once
#define foologinddevicehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -44,5 +43,3 @@ Device* device_new(Manager *m, const char *sysfs);
void device_free(Device *d); void device_free(Device *d);
void device_attach(Device *d, Seat *s); void device_attach(Device *d, Seat *s);
void device_detach(Device *d); void device_detach(Device *d);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foologindseathfoo #pragma once
#define foologindseathfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -82,5 +81,3 @@ extern const DBusObjectPathVTable bus_seat_vtable;
int seat_send_signal(Seat *s, bool new_seat); int seat_send_signal(Seat *s, bool new_seat);
int seat_send_changed(Seat *s, const char *properties); int seat_send_changed(Seat *s, const char *properties);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foologindsessionhfoo #pragma once
#define foologindsessionhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -145,5 +144,3 @@ SessionClass session_class_from_string(const char *s);
const char *kill_who_to_string(KillWho k); const char *kill_who_to_string(KillWho k);
KillWho kill_who_from_string(const char *s); KillWho kill_who_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foologinduserhfoo #pragma once
#define foologinduserhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -83,5 +82,3 @@ int user_send_changed(User *u, const char *properties);
const char* user_state_to_string(UserState s); const char* user_state_to_string(UserState s);
UserState user_state_from_string(const char *s); UserState user_state_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foologindhfoo #pragma once
#define foologindhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -164,5 +163,3 @@ int manager_dispatch_delayed(Manager *manager);
/* gperf lookup function */ /* gperf lookup function */
const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length); const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooreadaheadcommonhfoo #pragma once
#define fooreadaheadcommonhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -60,5 +59,3 @@ int block_set_readahead(const char *p, uint64_t bytes);
int main_collect(const char *root); int main_collect(const char *root);
int main_replay(const char *root); int main_replay(const char *root);
int main_analyze(const char *pack_path); int main_analyze(const char *pack_path);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooaclutilhfoo #pragma once
#define fooaclutilhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -23,5 +22,3 @@
***/ ***/
int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry); int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooaskpasswordapihfoo #pragma once
#define fooaskpasswordapihfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -29,5 +28,3 @@ int ask_password_tty(const char *message, usec_t until, const char *flag_file, c
int ask_password_agent(const char *message, const char *icon, usec_t until, bool accept_cached, char ***_passphrases); int ask_password_agent(const char *message, const char *icon, usec_t until, bool accept_cached, char ***_passphrases);
int ask_password_auto(const char *message, const char *icon, usec_t until, bool accept_cached, char ***_passphrases); int ask_password_auto(const char *message, const char *icon, usec_t until, bool accept_cached, char ***_passphrases);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foocgrouputilhfoo #pragma once
#define foocgrouputilhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -73,5 +72,3 @@ int cg_pid_get_cgroup(pid_t pid, char **root, char **cgroup);
int cg_pid_get_unit(pid_t pid, char **unit); int cg_pid_get_unit(pid_t pid, char **unit);
char **cg_shorten_controllers(char **controllers); char **cg_shorten_controllers(char **controllers);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooconfparserhfoo #pragma once
#define fooconfparserhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -134,5 +133,3 @@ int config_parse_level(const char *filename, unsigned line, const char *section,
\ \
return 0; \ return 0; \
} }
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbuscommonhfoo #pragma once
#define foodbuscommonhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -204,5 +203,3 @@ void bus_async_unregister_and_exit(DBusConnection *bus, const char *name);
DBusHandlerResult bus_exit_idle_filter(DBusConnection *bus, DBusMessage *m, void *userdata); DBusHandlerResult bus_exit_idle_filter(DBusConnection *bus, DBusMessage *m, void *userdata);
pid_t bus_get_unix_process_id(DBusConnection *connection, const char *name, DBusError *error); pid_t bus_get_unix_process_id(DBusConnection *connection, const char *name, DBusError *error);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodbusloophfoo #pragma once
#define foodbusloophfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -26,5 +25,3 @@
int bus_loop_open(DBusConnection *c); int bus_loop_open(DBusConnection *c);
int bus_loop_dispatch(int fd); int bus_loop_dispatch(int fd);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foodefhfoo #pragma once
#define foodefhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -34,5 +33,3 @@
#define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT #define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT
#define SIGNALS_IGNORE SIGKILL,SIGPIPE #define SIGNALS_IGNORE SIGKILL,SIGPIPE
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooexitstatushfoo #pragma once
#define fooexitstatushfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -82,5 +81,3 @@ const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level);
bool is_clean_exit(int code, int status); bool is_clean_exit(int code, int status);
bool is_clean_exit_lsb(int code, int status); bool is_clean_exit_lsb(int code, int status);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foohashmaphfoo #pragma once
#define foohashmaphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -89,5 +88,3 @@ char **hashmap_get_strv(Hashmap *h);
#define HASHMAP_FOREACH_BACKWARDS(e, h, i) \ #define HASHMAP_FOREACH_BACKWARDS(e, h, i) \
for ((i) = ITERATOR_LAST, (e) = hashmap_iterate_backwards((h), &(i), NULL); (e); (e) = hashmap_iterate_backwards((h), &(i), NULL)) for ((i) = ITERATOR_LAST, (e) = hashmap_iterate_backwards((h), &(i), NULL); (e); (e) = hashmap_iterate_backwards((h), &(i), NULL))
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooinstallhfoo #pragma once
#define fooinstallhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -85,5 +84,3 @@ UnitFileState unit_file_state_from_string(const char *s);
const char *unit_file_change_type_to_string(UnitFileChangeType s); const char *unit_file_change_type_to_string(UnitFileChangeType s);
UnitFileChangeType unit_file_change_type_from_string(const char *s); UnitFileChangeType unit_file_change_type_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foolabelhfoo #pragma once
#define foolabelhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -46,5 +45,3 @@ int label_mkdir(const char *path, mode_t mode, bool apply);
void label_retest_selinux(void); void label_retest_selinux(void);
int label_bind(int fd, const struct sockaddr *addr, socklen_t addrlen); int label_bind(int fd, const struct sockaddr *addr, socklen_t addrlen);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foolisthfoo #pragma once
#define foolisthfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -124,5 +123,3 @@
#define LIST_FOREACH_AFTER(name,i,p) \ #define LIST_FOREACH_AFTER(name,i,p) \
for ((i) = (p)->name##_next; (i); (i) = (i)->name##_next) for ((i) = (p)->name##_next; (i); (i) = (i)->name##_next)
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foologhfoo #pragma once
#define foologhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -108,5 +107,3 @@ int log_dump_internal(
const char *log_target_to_string(LogTarget target); const char *log_target_to_string(LogTarget target);
LogTarget log_target_from_string(const char *s); LogTarget log_target_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foologsshowhfoo #pragma once
#define foologsshowhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -60,5 +59,3 @@ int show_journal_by_unit(
const char* output_mode_to_string(OutputMode m); const char* output_mode_to_string(OutputMode m);
OutputMode output_mode_from_string(const char *s); OutputMode output_mode_from_string(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foomacrohfoo #pragma once
#define foomacrohfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -189,5 +188,3 @@ static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) {
} }
#include "log.h" #include "log.h"
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foomissinghfoo #pragma once
#define foomissinghfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -191,5 +190,3 @@ static inline pid_t gettid(void) {
#ifndef PR_SET_NO_NEW_PRIVS #ifndef PR_SET_NO_NEW_PRIVS
#define PR_SET_NO_NEW_PRIVS 38 #define PR_SET_NO_NEW_PRIVS 38
#endif #endif
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foopagerhfoo #pragma once
#define foopagerhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -24,5 +23,3 @@
void pager_open(void); void pager_open(void);
void pager_close(void); void pager_close(void);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foopathlookuphfoo #pragma once
#define foopathlookuphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -36,5 +35,3 @@ int user_config_home(char **config_home);
int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as, bool personal, const char *generator, const char *generator_early, const char *generator_late); int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as, bool personal, const char *generator, const char *generator_early, const char *generator_late);
void lookup_paths_free(LookupPaths *p); void lookup_paths_free(LookupPaths *p);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foopolkithfoo #pragma once
#define foopolkithfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -32,5 +31,3 @@ int verify_polkit(
bool interactive, bool interactive,
bool *challenge, bool *challenge,
DBusError *error); DBusError *error);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooratelimithfoo #pragma once
#define fooratelimithfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -56,5 +55,3 @@ typedef struct RateLimit {
} while (false) } while (false)
bool ratelimit_test(RateLimit *r); bool ratelimit_test(RateLimit *r);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foosethfoo #pragma once
#define foosethfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -67,5 +66,3 @@ void* set_last(Set *s);
#define SET_FOREACH_BACKWARDS(e, s, i) \ #define SET_FOREACH_BACKWARDS(e, s, i) \
for ((i) = ITERATOR_LAST, (e) = set_iterate_backwards((s), &(i)); (e); (e) = set_iterate_backwards((s), &(i))) for ((i) = ITERATOR_LAST, (e) = set_iterate_backwards((s), &(i)); (e); (e) = set_iterate_backwards((s), &(i)))
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foosocketutilhfoo #pragma once
#define foosocketutilhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -98,5 +97,3 @@ const char* netlink_family_to_string(int b);
int netlink_family_from_string(const char *s); int netlink_family_from_string(const char *s);
bool socket_ipv6_is_supported(void); bool socket_ipv6_is_supported(void);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foospawnaskpasswordagenthfoo #pragma once
#define foospawnaskpasswordagenthfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -24,5 +23,3 @@
int ask_password_agent_open(void); int ask_password_agent_open(void);
void ask_password_agent_close(void); void ask_password_agent_close(void);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foospecifierhfoo #pragma once
#define foospecifierhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -33,5 +32,3 @@ typedef struct Specifier {
char *specifier_printf(const char *text, const Specifier table[], void *userdata); char *specifier_printf(const char *text, const Specifier table[], void *userdata);
char* specifier_string(char specifier, void *data, void *userdata); char* specifier_string(char specifier, void *data, void *userdata);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foostrvhfoo #pragma once
#define foostrvhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -80,5 +79,3 @@ bool strv_overlap(char **a, char **b);
#define STRV_FOREACH_BACKWARDS(s, l) \ #define STRV_FOREACH_BACKWARDS(s, l) \
for (; (l) && ((s) >= (l)); (s)--) for (; (l) && ((s) >= (l)); (s)--)
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foounitnamehfoo #pragma once
#define foounitnamehfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -92,5 +91,3 @@ char *unit_name_to_path(const char *name);
char *unit_dbus_path_from_name(const char *name); char *unit_dbus_path_from_name(const char *name);
char *unit_name_mangle(const char *name); char *unit_name_mangle(const char *name);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooutf8hfoo #pragma once
#define fooutf8hfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -31,5 +30,3 @@ char *utf8_is_printable_n(const char* str, size_t length) _pure_;
char *utf8_filter(const char *s); char *utf8_filter(const char *s);
char *ascii_filter(const char *s); char *ascii_filter(const char *s);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooutilhfoo #pragma once
#define fooutilhfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -531,5 +530,3 @@ void warn_melody(void);
int get_shell(char **ret); int get_shell(char **ret);
int get_home_dir(char **ret); int get_home_dir(char **ret);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef fooutmpwtmphfoo #pragma once
#define fooutmpwtmphfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -34,5 +33,3 @@ int utmp_put_dead_process(const char *id, pid_t pid, int code, int status);
int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line); int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line);
int utmp_wall(const char *message, bool (*match_tty)(const char *tty)); int utmp_wall(const char *message, bool (*match_tty)(const char *tty));
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foovirthfoo #pragma once
#define foovirthfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -34,5 +33,3 @@ typedef enum Virtualization {
} Virtualization; } Virtualization;
Virtualization detect_virtualization(const char **id); Virtualization detect_virtualization(const char **id);
#endif

View File

@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foowatchdoghfoo #pragma once
#define foowatchdoghfoo
/*** /***
This file is part of systemd. This file is part of systemd.
@ -27,5 +26,3 @@
int watchdog_set_timeout(usec_t *usec); int watchdog_set_timeout(usec_t *usec);
int watchdog_ping(void); int watchdog_ping(void);
void watchdog_close(bool disarm); void watchdog_close(bool disarm);
#endif