diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/acl-util.c | 13 | ||||
-rw-r--r-- | src/shared/acl-util.h | 13 | ||||
-rw-r--r-- | src/shared/bus-util.c | 13 | ||||
-rw-r--r-- | src/shared/bus-util.h | 13 | ||||
-rw-r--r-- | src/shared/clean-ipc.c | 13 | ||||
-rw-r--r-- | src/shared/clean-ipc.h | 13 | ||||
-rw-r--r-- | src/shared/conf-parser.c | 13 | ||||
-rw-r--r-- | src/shared/conf-parser.h | 20 | ||||
-rw-r--r-- | src/shared/meson.build | 13 | ||||
-rw-r--r-- | src/shared/nsflags.c | 13 | ||||
-rw-r--r-- | src/shared/nsflags.h | 13 | ||||
-rw-r--r-- | src/shared/output-mode.c | 13 | ||||
-rw-r--r-- | src/shared/output-mode.h | 13 | ||||
-rw-r--r-- | src/shared/sleep-config.c | 128 | ||||
-rw-r--r-- | src/shared/sleep-config.h | 16 | ||||
-rw-r--r-- | src/shared/spawn-polkit-agent.c | 13 | ||||
-rw-r--r-- | src/shared/spawn-polkit-agent.h | 13 | ||||
-rw-r--r-- | src/shared/test-tables.h | 13 | ||||
-rw-r--r-- | src/shared/udev-util.c | 13 | ||||
-rw-r--r-- | src/shared/udev-util.h | 13 | ||||
-rw-r--r-- | src/shared/utmp-wtmp.c | 13 | ||||
-rw-r--r-- | src/shared/utmp-wtmp.h | 13 |
22 files changed, 19 insertions, 392 deletions
diff --git a/src/shared/acl-util.c b/src/shared/acl-util.c index 70f22bb90..e6360335d 100644 --- a/src/shared/acl-util.c +++ b/src/shared/acl-util.c @@ -3,19 +3,6 @@ This file is part of systemd. Copyright 2011,2013 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <errno.h> diff --git a/src/shared/acl-util.h b/src/shared/acl-util.h index fde21e0f3..9aa37287d 100644 --- a/src/shared/acl-util.h +++ b/src/shared/acl-util.h @@ -5,19 +5,6 @@ This file is part of systemd. Copyright 2011 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #if HAVE_ACL diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index ff098b703..55e686ab5 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -3,19 +3,6 @@ This file is part of systemd. Copyright 2013 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <errno.h> diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h index b755e7d0a..d22b7d8c1 100644 --- a/src/shared/bus-util.h +++ b/src/shared/bus-util.h @@ -5,19 +5,6 @@ This file is part of systemd. Copyright 2013 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <stdbool.h> diff --git a/src/shared/clean-ipc.c b/src/shared/clean-ipc.c index 9d13f3e27..3e30877c0 100644 --- a/src/shared/clean-ipc.c +++ b/src/shared/clean-ipc.c @@ -3,19 +3,6 @@ This file is part of systemd. Copyright 2014 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <dirent.h> diff --git a/src/shared/clean-ipc.h b/src/shared/clean-ipc.h index 15b528dd9..9f0806e44 100644 --- a/src/shared/clean-ipc.h +++ b/src/shared/clean-ipc.h @@ -5,19 +5,6 @@ This file is part of systemd. Copyright 2014 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <sys/types.h> diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index eebc05b0e..1b09b20a5 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -3,19 +3,6 @@ This file is part of systemd. Copyright 2010 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <errno.h> diff --git a/src/shared/conf-parser.h b/src/shared/conf-parser.h index 776fc844b..aff673acc 100644 --- a/src/shared/conf-parser.h +++ b/src/shared/conf-parser.h @@ -5,19 +5,6 @@ This file is part of systemd. Copyright 2010 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <errno.h> @@ -165,6 +152,7 @@ int config_parse_strv(GENERIC_PARSER_ARGS); int config_parse_sec(GENERIC_PARSER_ARGS); int config_parse_nsec(GENERIC_PARSER_ARGS); int config_parse_mode(GENERIC_PARSER_ARGS); +int config_parse_warn_compat(GENERIC_PARSER_ARGS); int config_parse_log_facility(GENERIC_PARSER_ARGS); int config_parse_log_level(GENERIC_PARSER_ARGS); int config_parse_signal(GENERIC_PARSER_ARGS); @@ -175,6 +163,12 @@ int config_parse_ip_port(GENERIC_PARSER_ARGS); int config_parse_join_controllers(GENERIC_PARSER_ARGS); #endif // 0 +typedef enum Disabled { + DISABLED_CONFIGURATION, + DISABLED_LEGACY, + DISABLED_EXPERIMENTAL, +} Disabled; + #define DEFINE_CONFIG_PARSE_ENUM(function,name,type,msg) \ int function(GENERIC_PARSER_ARGS) { \ type *i = data, x; \ diff --git a/src/shared/meson.build b/src/shared/meson.build index 341eb52cb..04de8926b 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -1,19 +1,6 @@ # SPDX-License-Identifier: LGPL-2.1+ # # Copyright 2017 Zbigniew Jędrzejewski-Szmek -# -# elogind is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. -# -# elogind is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with elogind; If not, see <http://www.gnu.org/licenses/>. #if 0 /// elogind has a much shorter list # shared_sources = ''' diff --git a/src/shared/nsflags.c b/src/shared/nsflags.c index 1a9c8ca07..2b4f6e664 100644 --- a/src/shared/nsflags.c +++ b/src/shared/nsflags.c @@ -3,19 +3,6 @@ This file is part of systemd. Copyright 2016 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <sched.h> diff --git a/src/shared/nsflags.h b/src/shared/nsflags.h index f374a4883..297b4ccc6 100644 --- a/src/shared/nsflags.h +++ b/src/shared/nsflags.h @@ -5,19 +5,6 @@ This file is part of systemd. Copyright 2016 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <sched.h> diff --git a/src/shared/output-mode.c b/src/shared/output-mode.c index 5256e917a..89be1d68a 100644 --- a/src/shared/output-mode.c +++ b/src/shared/output-mode.c @@ -3,19 +3,6 @@ This file is part of systemd. Copyright 2012 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include "output-mode.h" diff --git a/src/shared/output-mode.h b/src/shared/output-mode.h index 747f7eb1b..3aa7b295e 100644 --- a/src/shared/output-mode.h +++ b/src/shared/output-mode.h @@ -5,19 +5,6 @@ This file is part of systemd. Copyright 2013 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include "macro.h" diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index 1086e689f..fdaa3f39b 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -4,23 +4,9 @@ Copyright 2013 Zbigniew Jędrzejewski-Szmek Copyright 2018 Dell Inc. - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ //#include <errno.h> -//#include <linux/fs.h> //#include <stdbool.h> //#include <stddef.h> //#include <stdio.h> @@ -194,10 +180,13 @@ int can_sleep_disk(char **types) { #define HIBERNATION_SWAP_THRESHOLD 0.98 -int find_hibernate_location(char **device, char **type, size_t *size, size_t *used) { +static int hibernation_partition_size(size_t *size, size_t *used) { _cleanup_fclose_ FILE *f; unsigned i; + assert(size); + assert(used); + f = fopen("/proc/swaps", "re"); if (!f) { log_full(errno == ENOENT ? LOG_DEBUG : LOG_WARNING, @@ -209,7 +198,7 @@ int find_hibernate_location(char **device, char **type, size_t *size, size_t *us (void) fscanf(f, "%*s %*s %*s %*s %*s\n"); for (i = 1;; i++) { - _cleanup_free_ char *dev_field = NULL, *type_field = NULL; + _cleanup_free_ char *dev = NULL, *type = NULL; size_t size_field, used_field; int k; @@ -219,7 +208,7 @@ int find_hibernate_location(char **device, char **type, size_t *size, size_t *us "%zu " /* swap size */ "%zu " /* used */ "%*i\n", /* priority */ - &dev_field, &type_field, &size_field, &used_field); + &dev, &type, &size_field, &used_field); if (k != 4) { if (k == EOF) break; @@ -228,18 +217,13 @@ int find_hibernate_location(char **device, char **type, size_t *size, size_t *us continue; } - if (streq(type_field, "partition") && endswith(dev_field, "\\040(deleted)")) { - log_warning("Ignoring deleted swapfile '%s'.", dev_field); + if (streq(type, "partition") && endswith(dev, "\\040(deleted)")) { + log_warning("Ignoring deleted swapfile '%s'.", dev); continue; } - if (device) - *device = TAKE_PTR(dev_field); - if (type) - *type = TAKE_PTR(type_field); - if (size) - *size = size_field; - if (used) - *used = used_field; + + *size = size_field; + *used = used_field; return 0; } @@ -258,7 +242,7 @@ static bool enough_memory_for_hibernation(void) { return true; #endif // 0 - r = find_hibernate_location(NULL, NULL, &size, &used); + r = hibernation_partition_size(&size, &used); if (r < 0) return false; @@ -282,94 +266,6 @@ static bool enough_memory_for_hibernation(void) { return r; } -int read_fiemap(int fd, struct fiemap **ret) { - _cleanup_free_ struct fiemap *fiemap = NULL, *result_fiemap = NULL; - int extents_size; - struct stat statinfo; - uint32_t result_extents = 0; - uint64_t fiemap_start = 0, fiemap_length; - size_t fiemap_size = 1, result_fiemap_size = 1; - - if (fstat(fd, &statinfo) < 0) - return log_debug_errno(errno, "Cannot determine file size: %m"); - if (!S_ISREG(statinfo.st_mode)) - return -ENOTTY; - fiemap_length = statinfo.st_size; - - /* zero this out in case we run on a file with no extents */ - fiemap = new0(struct fiemap, 1); - if (!fiemap) - return -ENOMEM; - - result_fiemap = new(struct fiemap, 1); - if (!result_fiemap) - return -ENOMEM; - - /* XFS filesystem has incorrect implementation of fiemap ioctl and - * returns extents for only one block-group at a time, so we need - * to handle it manually, starting the next fiemap call from the end - * of the last extent - */ - while (fiemap_start < fiemap_length) { - *fiemap = (struct fiemap) { - .fm_start = fiemap_start, - .fm_length = fiemap_length, - .fm_flags = FIEMAP_FLAG_SYNC, - }; - - /* Find out how many extents there are */ - if (ioctl(fd, FS_IOC_FIEMAP, fiemap) < 0) - return log_debug_errno(errno, "Failed to read extents: %m"); - - /* Nothing to process */ - if (fiemap->fm_mapped_extents == 0) - break; - - /* Result fiemap has to hold all the extents for the whole file */ - extents_size = DIV_ROUND_UP(sizeof(struct fiemap_extent) * fiemap->fm_mapped_extents, - sizeof(struct fiemap)); - - /* Resize fiemap to allow us to read in the extents */ - if (!GREEDY_REALLOC0(fiemap, fiemap_size, extents_size)) - return -ENOMEM; - - fiemap->fm_extent_count = fiemap->fm_mapped_extents; - fiemap->fm_mapped_extents = 0; - - if (ioctl(fd, FS_IOC_FIEMAP, fiemap) < 0) - return log_debug_errno(errno, "Failed to read extents: %m"); - - extents_size = DIV_ROUND_UP(sizeof(struct fiemap_extent) * (result_extents + fiemap->fm_mapped_extents), - sizeof(struct fiemap)); - - /* Resize result_fiemap to allow us to read in the extents */ - if (!GREEDY_REALLOC(result_fiemap, result_fiemap_size, - extents_size)) - return -ENOMEM; - - memcpy(result_fiemap->fm_extents + result_extents, - fiemap->fm_extents, - sizeof(struct fiemap_extent) * fiemap->fm_mapped_extents); - - result_extents += fiemap->fm_mapped_extents; - - /* Highly unlikely that it is zero */ - if (fiemap->fm_mapped_extents > 0) { - uint32_t i = fiemap->fm_mapped_extents - 1; - - fiemap_start = fiemap->fm_extents[i].fe_logical + - fiemap->fm_extents[i].fe_length; - - if (fiemap->fm_extents[i].fe_flags & FIEMAP_EXTENT_LAST) - break; - } - } - - memcpy(result_fiemap, fiemap, sizeof(struct fiemap)); - result_fiemap->fm_mapped_extents = result_extents; - *ret = TAKE_PTR(result_fiemap); - return 0; -} #if 0 /// elogind has to do, or better, *can* do it differently static bool can_s2h(void) { diff --git a/src/shared/sleep-config.h b/src/shared/sleep-config.h index 767a69927..ecce5f6e4 100644 --- a/src/shared/sleep-config.h +++ b/src/shared/sleep-config.h @@ -5,28 +5,12 @@ This file is part of systemd. Copyright 2013 Zbigniew Jędrzejewski-Szmek - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #if 0 /// UNNEEDED by elogind -//#include <linux/fiemap.h> //#include "time-util.h" -int read_fiemap(int fd, struct fiemap **ret); int parse_sleep_config(const char *verb, char ***modes, char ***states, usec_t *delay); -int find_hibernate_location(char **device, char **type, size_t *size, size_t *used); int can_sleep(const char *verb); int can_sleep_disk(char **types); diff --git a/src/shared/spawn-polkit-agent.c b/src/shared/spawn-polkit-agent.c index 3c93c79ce..062e0210c 100644 --- a/src/shared/spawn-polkit-agent.c +++ b/src/shared/spawn-polkit-agent.c @@ -3,19 +3,6 @@ This file is part of systemd. Copyright 2011 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <errno.h> diff --git a/src/shared/spawn-polkit-agent.h b/src/shared/spawn-polkit-agent.h index 9f26fa10a..ea72c1281 100644 --- a/src/shared/spawn-polkit-agent.h +++ b/src/shared/spawn-polkit-agent.h @@ -5,19 +5,6 @@ This file is part of systemd. Copyright 2012 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include "bus-util.h" diff --git a/src/shared/test-tables.h b/src/shared/test-tables.h index b1ca4247f..59c2c06ec 100644 --- a/src/shared/test-tables.h +++ b/src/shared/test-tables.h @@ -3,19 +3,6 @@ This file is part of systemd Copyright 2013 Zbigniew Jędrzejewski-Szmek - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <stdio.h> diff --git a/src/shared/udev-util.c b/src/shared/udev-util.c index a19d5429d..14f2c1928 100644 --- a/src/shared/udev-util.c +++ b/src/shared/udev-util.c @@ -3,19 +3,6 @@ This file is part of systemd. Copyright 2017 Zbigniew Jędrzejewski-Szmek - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <string.h> diff --git a/src/shared/udev-util.h b/src/shared/udev-util.h index 8fd65f6f4..17b1c3eee 100644 --- a/src/shared/udev-util.h +++ b/src/shared/udev-util.h @@ -5,19 +5,6 @@ This file is part of systemd. Copyright 2013 Zbigniew Jędrzejewski-Szmek - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #if 0 /// elogind needs the systems udev header diff --git a/src/shared/utmp-wtmp.c b/src/shared/utmp-wtmp.c index cab1cd6a2..314488ab8 100644 --- a/src/shared/utmp-wtmp.c +++ b/src/shared/utmp-wtmp.c @@ -3,19 +3,6 @@ This file is part of systemd. Copyright 2010 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <errno.h> diff --git a/src/shared/utmp-wtmp.h b/src/shared/utmp-wtmp.h index 2c75d4097..23cb03b31 100644 --- a/src/shared/utmp-wtmp.h +++ b/src/shared/utmp-wtmp.h @@ -5,19 +5,6 @@ This file is part of systemd. Copyright 2010 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <stdbool.h> |