Lorenz Brun | ddd6caf | 2021-03-04 17:16:04 +0100 | [diff] [blame] | 1 | Copyright 2020 The Monogon Project Authors. |
| 2 | |
| 3 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | you may not use this file except in compliance with the License. |
| 5 | You may obtain a copy of the License at |
| 6 | |
| 7 | http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
| 14 | |
| 15 | |
| 16 | From 0f851156fc72247f8a6ad27dc5d98c1f18a11390 Mon Sep 17 00:00:00 2001 |
| 17 | From: Lorenz Brun <lorenz@nexantic.com> |
| 18 | Date: Thu, 4 Mar 2021 14:42:52 +0100 |
| 19 | Subject: [PATCH] bazel_cc_fix patch |
| 20 | |
| 21 | --- |
| 22 | lib/blkdev.c | 10 +++++----- |
| 23 | lib/canonicalize.c | 6 +++--- |
| 24 | lib/color-names.c | 4 ++-- |
| 25 | lib/cpuset.c | 4 ++-- |
| 26 | lib/crc32.c | 2 +- |
| 27 | lib/crc32c.c | 2 +- |
| 28 | lib/encode.c | 4 ++-- |
| 29 | lib/env.c | 2 +- |
| 30 | lib/fileutils.c | 6 +++--- |
| 31 | lib/idcache.c | 4 ++-- |
| 32 | lib/ismounted.c | 10 +++++----- |
| 33 | lib/linux_version.c | 4 ++-- |
| 34 | lib/loopdev.c | 20 ++++++++++---------- |
| 35 | lib/mangle.c | 4 ++-- |
| 36 | lib/match.c | 2 +- |
| 37 | lib/mbsalign.c | 8 ++++---- |
| 38 | lib/mbsedit.c | 4 ++-- |
| 39 | lib/md5.c | 2 +- |
| 40 | lib/pager.c | 10 +++++----- |
| 41 | lib/path.c | 14 +++++++------- |
| 42 | lib/procutils.c | 10 +++++----- |
| 43 | lib/pwdutils.c | 6 +++--- |
| 44 | lib/randutils.c | 6 +++--- |
| 45 | lib/setproctitle.c | 2 +- |
| 46 | lib/sha1.c | 2 +- |
| 47 | lib/signames.c | 6 +++--- |
| 48 | lib/strutils.c | 10 +++++----- |
| 49 | lib/strv.c | 4 ++-- |
| 50 | lib/sysfs.c | 16 ++++++++-------- |
| 51 | lib/timeutils.c | 8 ++++---- |
| 52 | lib/ttyutils.c | 4 ++-- |
| 53 | libblkid/src/blkidP.h | 14 +++++++------- |
| 54 | libblkid/src/cache.c | 2 +- |
| 55 | libblkid/src/config.c | 2 +- |
| 56 | libblkid/src/devname.c | 6 +++--- |
| 57 | libblkid/src/devno.c | 4 ++-- |
| 58 | libblkid/src/evaluate.c | 6 +++--- |
| 59 | libblkid/src/partitions/bsd.c | 2 +- |
| 60 | libblkid/src/partitions/dos.c | 2 +- |
| 61 | libblkid/src/partitions/gpt.c | 2 +- |
| 62 | libblkid/src/partitions/minix.c | 2 +- |
| 63 | libblkid/src/partitions/partitions.c | 4 ++-- |
| 64 | libblkid/src/partitions/partitions.h | 4 ++-- |
| 65 | libblkid/src/partitions/sgi.c | 2 +- |
| 66 | libblkid/src/partitions/sun.c | 2 +- |
| 67 | libblkid/src/probe.c | 8 ++++---- |
| 68 | libblkid/src/save.c | 4 ++-- |
| 69 | libblkid/src/superblocks/bluestore.c | 2 +- |
| 70 | libblkid/src/superblocks/drbdmanage.c | 2 +- |
| 71 | libblkid/src/superblocks/hfs.c | 2 +- |
| 72 | libblkid/src/superblocks/minix.c | 2 +- |
| 73 | libblkid/src/superblocks/mpool.c | 2 +- |
| 74 | libblkid/src/superblocks/nilfs.c | 2 +- |
| 75 | libblkid/src/superblocks/squashfs.c | 2 +- |
| 76 | libblkid/src/superblocks/stratis.c | 2 +- |
| 77 | libblkid/src/superblocks/superblocks.h | 2 +- |
| 78 | libblkid/src/superblocks/vfat.c | 2 +- |
| 79 | libblkid/src/topology/sysfs.c | 2 +- |
| 80 | libblkid/src/topology/topology.h | 2 +- |
| 81 | libblkid/src/verify.c | 2 +- |
| 82 | libuuid/src/gen_uuid.c | 12 ++++++------ |
| 83 | misc-utils/blkid.c | 16 ++++++++-------- |
| 84 | misc-utils/uuidgen.c | 8 ++++---- |
| 85 | 63 files changed, 162 insertions(+), 162 deletions(-) |
| 86 | |
| 87 | diff --git a/lib/blkdev.c b/lib/blkdev.c |
| 88 | index c22853ddc..852c3bcfb 100644 |
| 89 | --- a/lib/blkdev.c |
| 90 | +++ b/lib/blkdev.c |
| 91 | @@ -27,11 +27,11 @@ |
| 92 | # define EBADFD 77 /* File descriptor in bad state */ |
| 93 | #endif |
| 94 | |
| 95 | -#include "blkdev.h" |
| 96 | -#include "c.h" |
| 97 | -#include "linux_version.h" |
| 98 | -#include "fileutils.h" |
| 99 | -#include "nls.h" |
| 100 | +#include "include/blkdev.h" |
| 101 | +#include "include/c.h" |
| 102 | +#include "include/linux_version.h" |
| 103 | +#include "include/fileutils.h" |
| 104 | +#include "include/nls.h" |
| 105 | |
| 106 | static long |
| 107 | blkdev_valid_offset (int fd, off_t offset) { |
| 108 | diff --git a/lib/canonicalize.c b/lib/canonicalize.c |
| 109 | index e101c5b7a..05ad92660 100644 |
| 110 | --- a/lib/canonicalize.c |
| 111 | +++ b/lib/canonicalize.c |
| 112 | @@ -16,9 +16,9 @@ |
| 113 | #include <sys/stat.h> |
| 114 | #include <sys/wait.h> |
| 115 | |
| 116 | -#include "canonicalize.h" |
| 117 | -#include "pathnames.h" |
| 118 | -#include "all-io.h" |
| 119 | +#include "include/canonicalize.h" |
| 120 | +#include "include/pathnames.h" |
| 121 | +#include "include/all-io.h" |
| 122 | |
| 123 | /* |
| 124 | * Converts private "dm-N" names to "/dev/mapper/<name>" |
| 125 | diff --git a/lib/color-names.c b/lib/color-names.c |
| 126 | index 9b1505e4b..3e956312e 100644 |
| 127 | --- a/lib/color-names.c |
| 128 | +++ b/lib/color-names.c |
| 129 | @@ -4,8 +4,8 @@ |
| 130 | * |
| 131 | * Written by Karel Zak <kzak@redhat.com> |
| 132 | */ |
| 133 | -#include "c.h" |
| 134 | -#include "color-names.h" |
| 135 | +#include "include/c.h" |
| 136 | +#include "include/color-names.h" |
| 137 | |
| 138 | struct ul_color_name { |
| 139 | const char *name; |
| 140 | diff --git a/lib/cpuset.c b/lib/cpuset.c |
| 141 | index 2847db853..e8fd4a6d4 100644 |
| 142 | --- a/lib/cpuset.c |
| 143 | +++ b/lib/cpuset.c |
| 144 | @@ -22,8 +22,8 @@ |
| 145 | #include <ctype.h> |
| 146 | #include <sys/syscall.h> |
| 147 | |
| 148 | -#include "cpuset.h" |
| 149 | -#include "c.h" |
| 150 | +#include "include/cpuset.h" |
| 151 | +#include "include/c.h" |
| 152 | |
| 153 | static inline int val_to_char(int v) |
| 154 | { |
| 155 | diff --git a/lib/crc32.c b/lib/crc32.c |
| 156 | index 824693d01..2a213c431 100644 |
| 157 | --- a/lib/crc32.c |
| 158 | +++ b/lib/crc32.c |
| 159 | @@ -40,7 +40,7 @@ |
| 160 | |
| 161 | #include <stdio.h> |
| 162 | |
| 163 | -#include "crc32.h" |
| 164 | +#include "include/crc32.h" |
| 165 | |
| 166 | |
| 167 | static const uint32_t crc32_tab[] = { |
| 168 | diff --git a/lib/crc32c.c b/lib/crc32c.c |
| 169 | index 49e7543f6..afcd4321b 100644 |
| 170 | --- a/lib/crc32c.c |
| 171 | +++ b/lib/crc32c.c |
| 172 | @@ -10,7 +10,7 @@ |
| 173 | * code or tables extracted from it, as desired without restriction. |
| 174 | */ |
| 175 | |
| 176 | -#include "crc32c.h" |
| 177 | +#include "include/crc32c.h" |
| 178 | |
| 179 | static const uint32_t crc32Table[256] = { |
| 180 | 0x00000000L, 0xF26B8303L, 0xE13B70F7L, 0x1350F3F4L, |
| 181 | diff --git a/lib/encode.c b/lib/encode.c |
| 182 | index 10b5971c5..2367dab40 100644 |
| 183 | --- a/lib/encode.c |
| 184 | +++ b/lib/encode.c |
| 185 | @@ -8,8 +8,8 @@ |
| 186 | * This file may be redistributed under the terms of the |
| 187 | * GNU Lesser General Public License. |
| 188 | */ |
| 189 | -#include "c.h" |
| 190 | -#include "encode.h" |
| 191 | +#include "include/c.h" |
| 192 | +#include "include/encode.h" |
| 193 | |
| 194 | size_t ul_encode_to_utf8(int enc, unsigned char *dest, size_t len, |
| 195 | const unsigned char *src, size_t count) |
| 196 | diff --git a/lib/env.c b/lib/env.c |
| 197 | index 91c935cf6..02a1b6f0d 100644 |
| 198 | --- a/lib/env.c |
| 199 | +++ b/lib/env.c |
| 200 | @@ -18,7 +18,7 @@ |
| 201 | #include <unistd.h> |
| 202 | #include <sys/types.h> |
| 203 | |
| 204 | -#include "env.h" |
| 205 | +#include "include/env.h" |
| 206 | |
| 207 | #ifndef HAVE_ENVIRON_DECL |
| 208 | extern char **environ; |
| 209 | diff --git a/lib/fileutils.c b/lib/fileutils.c |
| 210 | index 003f890f9..511a849e0 100644 |
| 211 | --- a/lib/fileutils.c |
| 212 | +++ b/lib/fileutils.c |
| 213 | @@ -11,9 +11,9 @@ |
| 214 | #include <sys/time.h> |
| 215 | #include <sys/resource.h> |
| 216 | |
| 217 | -#include "c.h" |
| 218 | -#include "fileutils.h" |
| 219 | -#include "pathnames.h" |
| 220 | +#include "include/c.h" |
| 221 | +#include "include/fileutils.h" |
| 222 | +#include "include/pathnames.h" |
| 223 | |
| 224 | int mkstemp_cloexec(char *template) |
| 225 | { |
| 226 | diff --git a/lib/idcache.c b/lib/idcache.c |
| 227 | index 55502238d..625121178 100644 |
| 228 | --- a/lib/idcache.c |
| 229 | +++ b/lib/idcache.c |
| 230 | @@ -9,8 +9,8 @@ |
| 231 | #include <grp.h> |
| 232 | #include <sys/types.h> |
| 233 | |
| 234 | -#include "c.h" |
| 235 | -#include "idcache.h" |
| 236 | +#include "include/c.h" |
| 237 | +#include "include/idcache.h" |
| 238 | |
| 239 | struct identry *get_id(struct idcache *ic, unsigned long int id) |
| 240 | { |
| 241 | diff --git a/lib/ismounted.c b/lib/ismounted.c |
| 242 | index 9a20b2367..ec29d64f5 100644 |
| 243 | --- a/lib/ismounted.c |
| 244 | +++ b/lib/ismounted.c |
| 245 | @@ -28,12 +28,12 @@ |
| 246 | # endif |
| 247 | #endif |
| 248 | |
| 249 | -#include "pathnames.h" |
| 250 | -#include "strutils.h" |
| 251 | -#include "ismounted.h" |
| 252 | -#include "c.h" |
| 253 | +#include "include/pathnames.h" |
| 254 | +#include "include/strutils.h" |
| 255 | +#include "include/ismounted.h" |
| 256 | +#include "include/c.h" |
| 257 | #ifdef __linux__ |
| 258 | -# include "loopdev.h" |
| 259 | +#include "include/loopdev.h" |
| 260 | #endif |
| 261 | |
| 262 | |
| 263 | diff --git a/lib/linux_version.c b/lib/linux_version.c |
| 264 | index 119869e5e..bea8bcf86 100644 |
| 265 | --- a/lib/linux_version.c |
| 266 | +++ b/lib/linux_version.c |
| 267 | @@ -5,8 +5,8 @@ |
| 268 | #include <stdio.h> |
| 269 | #include <sys/utsname.h> |
| 270 | |
| 271 | -#include "c.h" |
| 272 | -#include "linux_version.h" |
| 273 | +#include "include/c.h" |
| 274 | +#include "include/linux_version.h" |
| 275 | |
| 276 | int get_linux_version (void) |
| 277 | { |
| 278 | diff --git a/lib/loopdev.c b/lib/loopdev.c |
| 279 | index 7f299ebf3..ca2e35014 100644 |
| 280 | --- a/lib/loopdev.c |
| 281 | +++ b/lib/loopdev.c |
| 282 | @@ -33,15 +33,15 @@ |
| 283 | #include <inttypes.h> |
| 284 | #include <dirent.h> |
| 285 | |
| 286 | -#include "linux_version.h" |
| 287 | -#include "c.h" |
| 288 | -#include "sysfs.h" |
| 289 | -#include "pathnames.h" |
| 290 | -#include "loopdev.h" |
| 291 | -#include "canonicalize.h" |
| 292 | -#include "blkdev.h" |
| 293 | -#include "debug.h" |
| 294 | -#include "fileutils.h" |
| 295 | +#include "include/linux_version.h" |
| 296 | +#include "include/c.h" |
| 297 | +#include "include/sysfs.h" |
| 298 | +#include "include/pathnames.h" |
| 299 | +#include "include/loopdev.h" |
| 300 | +#include "include/canonicalize.h" |
| 301 | +#include "include/blkdev.h" |
| 302 | +#include "include/debug.h" |
| 303 | +#include "include/fileutils.h" |
| 304 | |
| 305 | /* |
| 306 | * Debug stuff (based on include/debug.h) |
| 307 | @@ -58,7 +58,7 @@ UL_DEBUG_DEFINE_MASKNAMES(loopdev) = UL_DEBUG_EMPTY_MASKNAMES; |
| 308 | #define ON_DBG(m, x) __UL_DBG_CALL(loopdev, LOOPDEV_DEBUG_, m, x) |
| 309 | |
| 310 | #define UL_DEBUG_CURRENT_MASK UL_DEBUG_MASK(loopdev) |
| 311 | -#include "debugobj.h" |
| 312 | +#include "include/debugobj.h" |
| 313 | |
| 314 | static void loopdev_init_debug(void) |
| 315 | { |
| 316 | diff --git a/lib/mangle.c b/lib/mangle.c |
| 317 | index 1a3b89ae4..ebd9af5ac 100644 |
| 318 | --- a/lib/mangle.c |
| 319 | +++ b/lib/mangle.c |
| 320 | @@ -11,8 +11,8 @@ |
| 321 | #include <string.h> |
| 322 | #include <ctype.h> |
| 323 | |
| 324 | -#include "mangle.h" |
| 325 | -#include "c.h" |
| 326 | +#include "include/mangle.h" |
| 327 | +#include "include/c.h" |
| 328 | |
| 329 | #define isoctal(a) (((a) & ~7) == '0') |
| 330 | |
| 331 | diff --git a/lib/match.c b/lib/match.c |
| 332 | index a286a190c..b35302df2 100644 |
| 333 | --- a/lib/match.c |
| 334 | +++ b/lib/match.c |
| 335 | @@ -7,7 +7,7 @@ |
| 336 | |
| 337 | #include <string.h> |
| 338 | |
| 339 | -#include "match.h" |
| 340 | +#include "include/match.h" |
| 341 | |
| 342 | /* |
| 343 | * match_fstype: |
| 344 | diff --git a/lib/mbsalign.c b/lib/mbsalign.c |
| 345 | index e251202af..305bf8f83 100644 |
| 346 | --- a/lib/mbsalign.c |
| 347 | +++ b/lib/mbsalign.c |
| 348 | @@ -23,10 +23,10 @@ |
| 349 | #include <limits.h> |
| 350 | #include <ctype.h> |
| 351 | |
| 352 | -#include "c.h" |
| 353 | -#include "mbsalign.h" |
| 354 | -#include "strutils.h" |
| 355 | -#include "widechar.h" |
| 356 | +#include "include/c.h" |
| 357 | +#include "include/mbsalign.h" |
| 358 | +#include "include/strutils.h" |
| 359 | +#include "include/widechar.h" |
| 360 | |
| 361 | /* |
| 362 | * Counts number of cells in multibyte string. All control and |
| 363 | diff --git a/lib/mbsedit.c b/lib/mbsedit.c |
| 364 | index 8ce59016f..9d69e0820 100644 |
| 365 | --- a/lib/mbsedit.c |
| 366 | +++ b/lib/mbsedit.c |
| 367 | @@ -12,8 +12,8 @@ |
| 368 | #include <errno.h> |
| 369 | #include <stdio.h> |
| 370 | |
| 371 | -#include "mbsalign.h" |
| 372 | -#include "mbsedit.h" |
| 373 | +#include "include/mbsalign.h" |
| 374 | +#include "include/mbsedit.h" |
| 375 | |
| 376 | struct mbs_editor *mbs_new_edit(char *buf, size_t bufsz, size_t ncells) |
| 377 | { |
| 378 | diff --git a/lib/md5.c b/lib/md5.c |
| 379 | index 3765ab93e..5b1b3ccbb 100644 |
| 380 | --- a/lib/md5.c |
| 381 | +++ b/lib/md5.c |
| 382 | @@ -16,7 +16,7 @@ |
| 383 | */ |
| 384 | #include <string.h> /* for memcpy() */ |
| 385 | |
| 386 | -#include "md5.h" |
| 387 | +#include "include/md5.h" |
| 388 | |
| 389 | #if !defined(WORDS_BIGENDIAN) |
| 390 | # define byteReverse(buf, len) /* Nothing */ |
| 391 | diff --git a/lib/pager.c b/lib/pager.c |
| 392 | index 747521e13..3a3a9411c 100644 |
| 393 | --- a/lib/pager.c |
| 394 | +++ b/lib/pager.c |
| 395 | @@ -14,11 +14,11 @@ |
| 396 | #include <sys/wait.h> |
| 397 | #include <signal.h> |
| 398 | |
| 399 | -#include "c.h" |
| 400 | -#include "xalloc.h" |
| 401 | -#include "nls.h" |
| 402 | -#include "ttyutils.h" |
| 403 | -#include "pager.h" |
| 404 | +#include "include/c.h" |
| 405 | +#include "include/xalloc.h" |
| 406 | +#include "include/nls.h" |
| 407 | +#include "include/ttyutils.h" |
| 408 | +#include "include/pager.h" |
| 409 | |
| 410 | #define NULL_DEVICE "/dev/null" |
| 411 | |
| 412 | diff --git a/lib/path.c b/lib/path.c |
| 413 | index 75fa85305..7b60be431 100644 |
| 414 | --- a/lib/path.c |
| 415 | +++ b/lib/path.c |
| 416 | @@ -20,12 +20,12 @@ |
| 417 | #include <inttypes.h> |
| 418 | #include <errno.h> |
| 419 | |
| 420 | -#include "c.h" |
| 421 | -#include "fileutils.h" |
| 422 | -#include "all-io.h" |
| 423 | -#include "path.h" |
| 424 | -#include "debug.h" |
| 425 | -#include "strutils.h" |
| 426 | +#include "include/c.h" |
| 427 | +#include "include/fileutils.h" |
| 428 | +#include "include/all-io.h" |
| 429 | +#include "include/path.h" |
| 430 | +#include "include/debug.h" |
| 431 | +#include "include/strutils.h" |
| 432 | |
| 433 | /* |
| 434 | * Debug stuff (based on include/debug.h) |
| 435 | @@ -40,7 +40,7 @@ UL_DEBUG_DEFINE_MASKNAMES(ulpath) = UL_DEBUG_EMPTY_MASKNAMES; |
| 436 | #define ON_DBG(m, x) __UL_DBG_CALL(ulpath, ULPATH_DEBUG_, m, x) |
| 437 | |
| 438 | #define UL_DEBUG_CURRENT_MASK UL_DEBUG_MASK(ulpath) |
| 439 | -#include "debugobj.h" |
| 440 | +#include "include/debugobj.h" |
| 441 | |
| 442 | void ul_path_init_debug(void) |
| 443 | { |
| 444 | diff --git a/lib/procutils.c b/lib/procutils.c |
| 445 | index bf689ab63..e97de926f 100644 |
| 446 | --- a/lib/procutils.c |
| 447 | +++ b/lib/procutils.c |
| 448 | @@ -18,11 +18,11 @@ |
| 449 | #include <dirent.h> |
| 450 | #include <ctype.h> |
| 451 | |
| 452 | -#include "procutils.h" |
| 453 | -#include "statfs_magic.h" |
| 454 | -#include "fileutils.h" |
| 455 | -#include "all-io.h" |
| 456 | -#include "c.h" |
| 457 | +#include "include/procutils.h" |
| 458 | +#include "include/statfs_magic.h" |
| 459 | +#include "include/fileutils.h" |
| 460 | +#include "include/all-io.h" |
| 461 | +#include "include/c.h" |
| 462 | |
| 463 | /* |
| 464 | * @pid: process ID for which we want to obtain the threads group |
| 465 | diff --git a/lib/pwdutils.c b/lib/pwdutils.c |
| 466 | index d97020cb9..20750acc7 100644 |
| 467 | --- a/lib/pwdutils.c |
| 468 | +++ b/lib/pwdutils.c |
| 469 | @@ -4,9 +4,9 @@ |
| 470 | */ |
| 471 | #include <stdlib.h> |
| 472 | |
| 473 | -#include "c.h" |
| 474 | -#include "pwdutils.h" |
| 475 | -#include "xalloc.h" |
| 476 | +#include "include/c.h" |
| 477 | +#include "include/pwdutils.h" |
| 478 | +#include "include/xalloc.h" |
| 479 | |
| 480 | /* Returns allocated passwd and allocated pwdbuf to store passwd strings |
| 481 | * fields. In case of error returns NULL and set errno, for unknown user set |
| 482 | diff --git a/lib/randutils.c b/lib/randutils.c |
| 483 | index bf8193338..2f262b480 100644 |
| 484 | --- a/lib/randutils.c |
| 485 | +++ b/lib/randutils.c |
| 486 | @@ -16,9 +16,9 @@ |
| 487 | #ifdef __linux__ |
| 488 | #include <sys/syscall.h> |
| 489 | #endif |
| 490 | -#include "c.h" |
| 491 | -#include "randutils.h" |
| 492 | -#include "nls.h" |
| 493 | +#include "include/c.h" |
| 494 | +#include "include/randutils.h" |
| 495 | +#include "include/nls.h" |
| 496 | |
| 497 | #ifdef HAVE_TLS |
| 498 | #define THREAD_LOCAL static __thread |
| 499 | diff --git a/lib/setproctitle.c b/lib/setproctitle.c |
| 500 | index 7168e4658..464c0ebde 100644 |
| 501 | --- a/lib/setproctitle.c |
| 502 | +++ b/lib/setproctitle.c |
| 503 | @@ -8,7 +8,7 @@ |
| 504 | #include <string.h> |
| 505 | #include <stdarg.h> |
| 506 | |
| 507 | -#include "setproctitle.h" |
| 508 | +#include "include/setproctitle.h" |
| 509 | |
| 510 | #ifndef SPT_BUFSIZE |
| 511 | # define SPT_BUFSIZE 2048 |
| 512 | diff --git a/lib/sha1.c b/lib/sha1.c |
| 513 | index 22d33b315..9abcb3c64 100644 |
| 514 | --- a/lib/sha1.c |
| 515 | +++ b/lib/sha1.c |
| 516 | @@ -14,7 +14,7 @@ |
| 517 | #include <string.h> |
| 518 | #include <stdint.h> |
| 519 | |
| 520 | -#include "sha1.h" |
| 521 | +#include "include/sha1.h" |
| 522 | |
| 523 | #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) |
| 524 | |
| 525 | diff --git a/lib/signames.c b/lib/signames.c |
| 526 | index 064776a44..c47cdb8ea 100644 |
| 527 | --- a/lib/signames.c |
| 528 | +++ b/lib/signames.c |
| 529 | @@ -14,9 +14,9 @@ |
| 530 | #include <string.h> |
| 531 | #include <errno.h> |
| 532 | |
| 533 | -#include "c.h" |
| 534 | -#include "strutils.h" |
| 535 | -#include "signames.h" |
| 536 | +#include "include/c.h" |
| 537 | +#include "include/strutils.h" |
| 538 | +#include "include/signames.h" |
| 539 | |
| 540 | static const struct ul_signal_name { |
| 541 | const char *name; |
| 542 | diff --git a/lib/strutils.c b/lib/strutils.c |
| 543 | index 304f31407..9761b5b7b 100644 |
| 544 | --- a/lib/strutils.c |
| 545 | +++ b/lib/strutils.c |
| 546 | @@ -14,11 +14,11 @@ |
| 547 | #include <string.h> |
| 548 | #include <assert.h> |
| 549 | |
| 550 | -#include "c.h" |
| 551 | -#include "nls.h" |
| 552 | -#include "strutils.h" |
| 553 | -#include "bitops.h" |
| 554 | -#include "pathnames.h" |
| 555 | +#include "include/c.h" |
| 556 | +#include "include/nls.h" |
| 557 | +#include "include/strutils.h" |
| 558 | +#include "include/bitops.h" |
| 559 | +#include "include/pathnames.h" |
| 560 | |
| 561 | static int STRTOXX_EXIT_CODE = EXIT_FAILURE; |
| 562 | |
| 563 | diff --git a/lib/strv.c b/lib/strv.c |
| 564 | index ddc2a0c5d..13b2e7875 100644 |
| 565 | --- a/lib/strv.c |
| 566 | +++ b/lib/strv.c |
| 567 | @@ -19,8 +19,8 @@ |
| 568 | #include <stdbool.h> |
| 569 | #include <assert.h> |
| 570 | |
| 571 | -#include "strutils.h" |
| 572 | -#include "strv.h" |
| 573 | +#include "include/strutils.h" |
| 574 | +#include "include/strv.h" |
| 575 | |
| 576 | void strv_clear(char **l) { |
| 577 | char **k; |
| 578 | diff --git a/lib/sysfs.c b/lib/sysfs.c |
| 579 | index 221b49083..ef19baf06 100644 |
| 580 | --- a/lib/sysfs.c |
| 581 | +++ b/lib/sysfs.c |
| 582 | @@ -10,13 +10,13 @@ |
| 583 | #include <sys/stat.h> |
| 584 | #include <unistd.h> |
| 585 | |
| 586 | -#include "c.h" |
| 587 | -#include "pathnames.h" |
| 588 | -#include "sysfs.h" |
| 589 | -#include "fileutils.h" |
| 590 | -#include "all-io.h" |
| 591 | -#include "debug.h" |
| 592 | -#include "strutils.h" |
| 593 | +#include "include/c.h" |
| 594 | +#include "include/pathnames.h" |
| 595 | +#include "include/sysfs.h" |
| 596 | +#include "include/fileutils.h" |
| 597 | +#include "include/all-io.h" |
| 598 | +#include "include/debug.h" |
| 599 | +#include "include/strutils.h" |
| 600 | |
| 601 | static void sysfs_blkdev_deinit_path(struct path_cxt *pc); |
| 602 | static int sysfs_blkdev_enoent_redirect(struct path_cxt *pc, const char *path, int *dirfd); |
| 603 | @@ -34,7 +34,7 @@ UL_DEBUG_DEFINE_MASKNAMES(ulsysfs) = UL_DEBUG_EMPTY_MASKNAMES; |
| 604 | #define ON_DBG(m, x) __UL_DBG_CALL(ulsysfs, ULSYSFS_DEBUG_, m, x) |
| 605 | |
| 606 | #define UL_DEBUG_CURRENT_MASK UL_DEBUG_MASK(ulsysfs) |
| 607 | -#include "debugobj.h" |
| 608 | +#include "include/debugobj.h" |
| 609 | |
| 610 | void ul_sysfs_init_debug(void) |
| 611 | { |
| 612 | diff --git a/lib/timeutils.c b/lib/timeutils.c |
| 613 | index 8b443cdfb..94d9f7070 100644 |
| 614 | --- a/lib/timeutils.c |
| 615 | +++ b/lib/timeutils.c |
| 616 | @@ -25,10 +25,10 @@ |
| 617 | #include <time.h> |
| 618 | #include <sys/time.h> |
| 619 | |
| 620 | -#include "c.h" |
| 621 | -#include "nls.h" |
| 622 | -#include "strutils.h" |
| 623 | -#include "timeutils.h" |
| 624 | +#include "include/c.h" |
| 625 | +#include "include/nls.h" |
| 626 | +#include "include/strutils.h" |
| 627 | +#include "include/timeutils.h" |
| 628 | |
| 629 | #define WHITESPACE " \t\n\r" |
| 630 | |
| 631 | diff --git a/lib/ttyutils.c b/lib/ttyutils.c |
| 632 | index 706456503..8f39a54d0 100644 |
| 633 | --- a/lib/ttyutils.c |
| 634 | +++ b/lib/ttyutils.c |
| 635 | @@ -7,8 +7,8 @@ |
| 636 | #include <ctype.h> |
| 637 | #include <unistd.h> |
| 638 | |
| 639 | -#include "c.h" |
| 640 | -#include "ttyutils.h" |
| 641 | +#include "include/c.h" |
| 642 | +#include "include/ttyutils.h" |
| 643 | |
| 644 | |
| 645 | static int get_env_int(const char *name) |
| 646 | diff --git a/libblkid/src/blkidP.h b/libblkid/src/blkidP.h |
| 647 | index 802a1b3a6..3ae4bd1dc 100644 |
| 648 | --- a/libblkid/src/blkidP.h |
| 649 | +++ b/libblkid/src/blkidP.h |
| 650 | @@ -27,14 +27,14 @@ |
| 651 | # define UUID_STR_LEN 37 |
| 652 | #endif |
| 653 | |
| 654 | -#include "c.h" |
| 655 | -#include "bitops.h" /* $(top_srcdir)/include/ */ |
| 656 | -#include "blkdev.h" |
| 657 | +#include "include/c.h" |
| 658 | +#include "include/bitops.h" /* $(top_srcdir)/include/ */ |
| 659 | +#include "include/blkdev.h" |
| 660 | |
| 661 | -#include "debug.h" |
| 662 | +#include "include/debug.h" |
| 663 | #include "blkid.h" |
| 664 | -#include "list.h" |
| 665 | -#include "encode.h" |
| 666 | +#include "include/list.h" |
| 667 | +#include "include/encode.h" |
| 668 | |
| 669 | /* |
| 670 | * This describes the attributes of a specific device. |
| 671 | @@ -338,7 +338,7 @@ UL_DEBUG_DECLARE_MASK(libblkid); |
| 672 | #define ON_DBG(m, x) __UL_DBG_CALL(libblkid, BLKID_DEBUG_, m, x) |
| 673 | |
| 674 | #define UL_DEBUG_CURRENT_MASK UL_DEBUG_MASK(libblkid) |
| 675 | -#include "debugobj.h" |
| 676 | +#include "include/debugobj.h" |
| 677 | |
| 678 | extern void blkid_debug_dump_dev(blkid_dev dev); |
| 679 | |
| 680 | diff --git a/libblkid/src/cache.c b/libblkid/src/cache.c |
| 681 | index c199b919e..85d08a5be 100644 |
| 682 | --- a/libblkid/src/cache.c |
| 683 | +++ b/libblkid/src/cache.c |
| 684 | @@ -22,7 +22,7 @@ |
| 685 | #include <sys/stat.h> |
| 686 | #endif |
| 687 | #include "blkidP.h" |
| 688 | -#include "env.h" |
| 689 | +#include "include/env.h" |
| 690 | |
| 691 | /** |
| 692 | * SECTION:cache |
| 693 | diff --git a/libblkid/src/config.c b/libblkid/src/config.c |
| 694 | index f229b3e63..985f6bdec 100644 |
| 695 | --- a/libblkid/src/config.c |
| 696 | +++ b/libblkid/src/config.c |
| 697 | @@ -24,7 +24,7 @@ |
| 698 | #include <stdarg.h> |
| 699 | |
| 700 | #include "blkidP.h" |
| 701 | -#include "env.h" |
| 702 | +#include "include/env.h" |
| 703 | |
| 704 | static int parse_evaluate(struct blkid_config *conf, char *s) |
| 705 | { |
| 706 | diff --git a/libblkid/src/devname.c b/libblkid/src/devname.c |
| 707 | index c58b784cc..42b34dca7 100644 |
| 708 | --- a/libblkid/src/devname.c |
| 709 | +++ b/libblkid/src/devname.c |
| 710 | @@ -36,9 +36,9 @@ |
| 711 | |
| 712 | #include "blkidP.h" |
| 713 | |
| 714 | -#include "canonicalize.h" /* $(top_srcdir)/include */ |
| 715 | -#include "pathnames.h" |
| 716 | -#include "sysfs.h" |
| 717 | +#include "include/canonicalize.h" /* $(top_srcdir)/include */ |
| 718 | +#include "include/pathnames.h" |
| 719 | +#include "include/sysfs.h" |
| 720 | |
| 721 | /* |
| 722 | * Find a dev struct in the cache by device name, if available. |
| 723 | diff --git a/libblkid/src/devno.c b/libblkid/src/devno.c |
| 724 | index 74a0d982e..53e54a34f 100644 |
| 725 | --- a/libblkid/src/devno.c |
| 726 | +++ b/libblkid/src/devno.c |
| 727 | @@ -33,8 +33,8 @@ |
| 728 | #include <inttypes.h> |
| 729 | |
| 730 | #include "blkidP.h" |
| 731 | -#include "pathnames.h" |
| 732 | -#include "sysfs.h" |
| 733 | +#include "include/pathnames.h" |
| 734 | +#include "include/sysfs.h" |
| 735 | |
| 736 | static char *blkid_strconcat(const char *a, const char *b, const char *c) |
| 737 | { |
| 738 | diff --git a/libblkid/src/evaluate.c b/libblkid/src/evaluate.c |
| 739 | index 710eac956..08a5f8b0b 100644 |
| 740 | --- a/libblkid/src/evaluate.c |
| 741 | +++ b/libblkid/src/evaluate.c |
| 742 | @@ -22,9 +22,9 @@ |
| 743 | #include <stdint.h> |
| 744 | #include <stdarg.h> |
| 745 | |
| 746 | -#include "pathnames.h" |
| 747 | -#include "canonicalize.h" |
| 748 | -#include "closestream.h" |
| 749 | +#include "include/pathnames.h" |
| 750 | +#include "include/canonicalize.h" |
| 751 | +#include "include/closestream.h" |
| 752 | |
| 753 | #include "blkidP.h" |
| 754 | |
| 755 | diff --git a/libblkid/src/partitions/bsd.c b/libblkid/src/partitions/bsd.c |
| 756 | index c74517334..73fe3a8bf 100644 |
| 757 | --- a/libblkid/src/partitions/bsd.c |
| 758 | +++ b/libblkid/src/partitions/bsd.c |
| 759 | @@ -14,7 +14,7 @@ |
| 760 | #include <stdint.h> |
| 761 | |
| 762 | #include "partitions.h" |
| 763 | -#include "pt-bsd.h" |
| 764 | +#include "include/pt-bsd.h" |
| 765 | |
| 766 | /* Returns 'blkid_idmag' in 512-sectors */ |
| 767 | #define BLKID_MAG_SECTOR(_mag) (((_mag)->kboff / 2) + ((_mag)->sboff >> 9)) |
| 768 | diff --git a/libblkid/src/partitions/dos.c b/libblkid/src/partitions/dos.c |
| 769 | index 6e758ecaa..1c48cf6be 100644 |
| 770 | --- a/libblkid/src/partitions/dos.c |
| 771 | +++ b/libblkid/src/partitions/dos.c |
| 772 | @@ -14,7 +14,7 @@ |
| 773 | #include <stdint.h> |
| 774 | |
| 775 | #include "partitions.h" |
| 776 | -#include "superblocks/superblocks.h" |
| 777 | +#include "libblkid/src/superblocks/superblocks.h" |
| 778 | #include "aix.h" |
| 779 | |
| 780 | /* see superblocks/vfat.c */ |
| 781 | diff --git a/libblkid/src/partitions/gpt.c b/libblkid/src/partitions/gpt.c |
| 782 | index 889ff772c..a792e1d1b 100644 |
| 783 | --- a/libblkid/src/partitions/gpt.c |
| 784 | +++ b/libblkid/src/partitions/gpt.c |
| 785 | @@ -21,7 +21,7 @@ |
| 786 | #include <inttypes.h> |
| 787 | |
| 788 | #include "partitions.h" |
| 789 | -#include "crc32.h" |
| 790 | +#include "include/crc32.h" |
| 791 | |
| 792 | #define GPT_PRIMARY_LBA 1 |
| 793 | |
| 794 | diff --git a/libblkid/src/partitions/minix.c b/libblkid/src/partitions/minix.c |
| 795 | index 43c9d9af1..c5f37011f 100644 |
| 796 | --- a/libblkid/src/partitions/minix.c |
| 797 | +++ b/libblkid/src/partitions/minix.c |
| 798 | @@ -12,7 +12,7 @@ |
| 799 | #include <stdint.h> |
| 800 | |
| 801 | #include "partitions.h" |
| 802 | -#include "minix.h" |
| 803 | +#include "include/minix.h" |
| 804 | |
| 805 | static int probe_minix_pt(blkid_probe pr, |
| 806 | const struct blkid_idmag *mag __attribute__((__unused__))) |
| 807 | diff --git a/libblkid/src/partitions/partitions.c b/libblkid/src/partitions/partitions.c |
| 808 | index e0a1ee170..4aa51164a 100644 |
| 809 | --- a/libblkid/src/partitions/partitions.c |
| 810 | +++ b/libblkid/src/partitions/partitions.c |
| 811 | @@ -21,8 +21,8 @@ |
| 812 | #include <stdarg.h> |
| 813 | |
| 814 | #include "partitions.h" |
| 815 | -#include "sysfs.h" |
| 816 | -#include "strutils.h" |
| 817 | +#include "include/sysfs.h" |
| 818 | +#include "include/strutils.h" |
| 819 | |
| 820 | /** |
| 821 | * SECTION: partitions |
| 822 | diff --git a/libblkid/src/partitions/partitions.h b/libblkid/src/partitions/partitions.h |
| 823 | index 4a718f4ea..6b8ec40cb 100644 |
| 824 | --- a/libblkid/src/partitions/partitions.h |
| 825 | +++ b/libblkid/src/partitions/partitions.h |
| 826 | @@ -1,8 +1,8 @@ |
| 827 | #ifndef BLKID_PARTITIONS_H |
| 828 | #define BLKID_PARTITIONS_H |
| 829 | |
| 830 | -#include "blkidP.h" |
| 831 | -#include "pt-mbr.h" |
| 832 | +#include "libblkid/src/blkidP.h" |
| 833 | +#include "include/pt-mbr.h" |
| 834 | |
| 835 | extern int blkid_partitions_get_flags(blkid_probe pr); |
| 836 | |
| 837 | diff --git a/libblkid/src/partitions/sgi.c b/libblkid/src/partitions/sgi.c |
| 838 | index 99c0bf1c7..801ff368a 100644 |
| 839 | --- a/libblkid/src/partitions/sgi.c |
| 840 | +++ b/libblkid/src/partitions/sgi.c |
| 841 | @@ -13,7 +13,7 @@ |
| 842 | #include <stdint.h> |
| 843 | |
| 844 | #include "partitions.h" |
| 845 | -#include "pt-sgi.h" |
| 846 | +#include "include/pt-sgi.h" |
| 847 | |
| 848 | static int probe_sgi_pt(blkid_probe pr, |
| 849 | const struct blkid_idmag *mag __attribute__((__unused__))) |
| 850 | diff --git a/libblkid/src/partitions/sun.c b/libblkid/src/partitions/sun.c |
| 851 | index 058a66372..24e6df011 100644 |
| 852 | --- a/libblkid/src/partitions/sun.c |
| 853 | +++ b/libblkid/src/partitions/sun.c |
| 854 | @@ -12,7 +12,7 @@ |
| 855 | #include <stdint.h> |
| 856 | #include <stddef.h> |
| 857 | |
| 858 | -#include "pt-sun.h" |
| 859 | +#include "include/pt-sun.h" |
| 860 | #include "partitions.h" |
| 861 | |
| 862 | static int probe_sun_pt(blkid_probe pr, |
| 863 | diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c |
| 864 | index 8f5f59da3..3d63c6e79 100644 |
| 865 | --- a/libblkid/src/probe.c |
| 866 | +++ b/libblkid/src/probe.c |
| 867 | @@ -106,10 +106,10 @@ |
| 868 | #include <limits.h> |
| 869 | |
| 870 | #include "blkidP.h" |
| 871 | -#include "all-io.h" |
| 872 | -#include "sysfs.h" |
| 873 | -#include "strutils.h" |
| 874 | -#include "list.h" |
| 875 | +#include "include/all-io.h" |
| 876 | +#include "include/sysfs.h" |
| 877 | +#include "include/strutils.h" |
| 878 | +#include "include/list.h" |
| 879 | |
| 880 | /* |
| 881 | * All supported chains |
| 882 | diff --git a/libblkid/src/save.c b/libblkid/src/save.c |
| 883 | index bceaa1139..cae87bf21 100644 |
| 884 | --- a/libblkid/src/save.c |
| 885 | +++ b/libblkid/src/save.c |
| 886 | @@ -22,8 +22,8 @@ |
| 887 | #include <errno.h> |
| 888 | #endif |
| 889 | |
| 890 | -#include "closestream.h" |
| 891 | -#include "fileutils.h" |
| 892 | +#include "include/closestream.h" |
| 893 | +#include "include/fileutils.h" |
| 894 | |
| 895 | #include "blkidP.h" |
| 896 | |
| 897 | diff --git a/libblkid/src/superblocks/bluestore.c b/libblkid/src/superblocks/bluestore.c |
| 898 | index 2ff1f3518..a516ba8d0 100644 |
| 899 | --- a/libblkid/src/superblocks/bluestore.c |
| 900 | +++ b/libblkid/src/superblocks/bluestore.c |
| 901 | @@ -20,7 +20,7 @@ |
| 902 | #include <inttypes.h> |
| 903 | #include <stddef.h> |
| 904 | |
| 905 | -#include "bitops.h" |
| 906 | +#include "include/bitops.h" |
| 907 | #include "superblocks.h" |
| 908 | |
| 909 | #define BLUESTORE_MAGIC_L 22 |
| 910 | diff --git a/libblkid/src/superblocks/drbdmanage.c b/libblkid/src/superblocks/drbdmanage.c |
| 911 | index d56c414c9..43537920e 100644 |
| 912 | --- a/libblkid/src/superblocks/drbdmanage.c |
| 913 | +++ b/libblkid/src/superblocks/drbdmanage.c |
| 914 | @@ -20,7 +20,7 @@ |
| 915 | #include <inttypes.h> |
| 916 | #include <stddef.h> |
| 917 | |
| 918 | -#include "bitops.h" |
| 919 | +#include "include/bitops.h" |
| 920 | #include "superblocks.h" |
| 921 | |
| 922 | struct drbdmanage_hdr { |
| 923 | diff --git a/libblkid/src/superblocks/hfs.c b/libblkid/src/superblocks/hfs.c |
| 924 | index ebf90e49e..c507c7c02 100644 |
| 925 | --- a/libblkid/src/superblocks/hfs.c |
| 926 | +++ b/libblkid/src/superblocks/hfs.c |
| 927 | @@ -12,7 +12,7 @@ |
| 928 | #include <inttypes.h> |
| 929 | |
| 930 | #include "superblocks.h" |
| 931 | -#include "md5.h" |
| 932 | +#include "include/md5.h" |
| 933 | |
| 934 | /* HFS / HFS+ */ |
| 935 | struct hfs_finder_info { |
| 936 | diff --git a/libblkid/src/superblocks/minix.c b/libblkid/src/superblocks/minix.c |
| 937 | index b521efb2b..d1fb293cb 100644 |
| 938 | --- a/libblkid/src/superblocks/minix.c |
| 939 | +++ b/libblkid/src/superblocks/minix.c |
| 940 | @@ -11,7 +11,7 @@ |
| 941 | |
| 942 | #include <string.h> |
| 943 | #include "superblocks.h" |
| 944 | -#include "minix.h" |
| 945 | +#include "include/minix.h" |
| 946 | |
| 947 | #define minix_swab16(doit, num) ((uint16_t) (doit ? swab16(num) : num)) |
| 948 | #define minix_swab32(doit, num) ((uint32_t) (doit ? swab32(num) : num)) |
| 949 | diff --git a/libblkid/src/superblocks/mpool.c b/libblkid/src/superblocks/mpool.c |
| 950 | index b27569ef3..702d86897 100644 |
| 951 | --- a/libblkid/src/superblocks/mpool.c |
| 952 | +++ b/libblkid/src/superblocks/mpool.c |
| 953 | @@ -10,7 +10,7 @@ |
| 954 | #include <unistd.h> |
| 955 | #include <string.h> |
| 956 | #include <stdint.h> |
| 957 | -#include "crc32c.h" |
| 958 | +#include "include/crc32c.h" |
| 959 | #include "superblocks.h" |
| 960 | |
| 961 | #define MAX_MPOOL_NAME_LEN 32 |
| 962 | diff --git a/libblkid/src/superblocks/nilfs.c b/libblkid/src/superblocks/nilfs.c |
| 963 | index 423bd1ac4..8fa7200fa 100644 |
| 964 | --- a/libblkid/src/superblocks/nilfs.c |
| 965 | +++ b/libblkid/src/superblocks/nilfs.c |
| 966 | @@ -8,7 +8,7 @@ |
| 967 | #include <string.h> |
| 968 | |
| 969 | #include "superblocks.h" |
| 970 | -#include "crc32.h" |
| 971 | +#include "include/crc32.h" |
| 972 | |
| 973 | struct nilfs_super_block { |
| 974 | uint32_t s_rev_level; |
| 975 | diff --git a/libblkid/src/superblocks/squashfs.c b/libblkid/src/superblocks/squashfs.c |
| 976 | index 4db842493..b3171b45f 100644 |
| 977 | --- a/libblkid/src/superblocks/squashfs.c |
| 978 | +++ b/libblkid/src/superblocks/squashfs.c |
| 979 | @@ -13,7 +13,7 @@ |
| 980 | #include <string.h> |
| 981 | #include <stdint.h> |
| 982 | |
| 983 | -#include "bitops.h" /* swab16() */ |
| 984 | +#include "include/bitops.h" /* swab16() */ |
| 985 | #include "superblocks.h" |
| 986 | |
| 987 | struct sqsh_super_block { |
| 988 | diff --git a/libblkid/src/superblocks/stratis.c b/libblkid/src/superblocks/stratis.c |
| 989 | index 7a889b2d4..b7b13817d 100644 |
| 990 | --- a/libblkid/src/superblocks/stratis.c |
| 991 | +++ b/libblkid/src/superblocks/stratis.c |
| 992 | @@ -17,7 +17,7 @@ |
| 993 | #include <inttypes.h> |
| 994 | |
| 995 | #include "superblocks.h" |
| 996 | -#include "crc32c.h" |
| 997 | +#include "include/crc32c.h" |
| 998 | |
| 999 | struct stratis_sb { |
| 1000 | uint32_t crc32; |
| 1001 | diff --git a/libblkid/src/superblocks/superblocks.h b/libblkid/src/superblocks/superblocks.h |
| 1002 | index 5ebe6bc43..867ede21f 100644 |
| 1003 | --- a/libblkid/src/superblocks/superblocks.h |
| 1004 | +++ b/libblkid/src/superblocks/superblocks.h |
| 1005 | @@ -7,7 +7,7 @@ |
| 1006 | #ifndef _BLKID_SUPERBLOCKS_H |
| 1007 | #define _BLKID_SUPERBLOCKS_H |
| 1008 | |
| 1009 | -#include "blkidP.h" |
| 1010 | +#include "libblkid/src/blkidP.h" |
| 1011 | |
| 1012 | extern const struct blkid_idinfo cramfs_idinfo; |
| 1013 | extern const struct blkid_idinfo swap_idinfo; |
| 1014 | diff --git a/libblkid/src/superblocks/vfat.c b/libblkid/src/superblocks/vfat.c |
| 1015 | index c7a3d080c..ffde68492 100644 |
| 1016 | --- a/libblkid/src/superblocks/vfat.c |
| 1017 | +++ b/libblkid/src/superblocks/vfat.c |
| 1018 | @@ -17,7 +17,7 @@ |
| 1019 | #include <stdint.h> |
| 1020 | #include <inttypes.h> |
| 1021 | |
| 1022 | -#include "pt-mbr.h" |
| 1023 | +#include "include/pt-mbr.h" |
| 1024 | #include "superblocks.h" |
| 1025 | |
| 1026 | /* Yucky misaligned values */ |
| 1027 | diff --git a/libblkid/src/topology/sysfs.c b/libblkid/src/topology/sysfs.c |
| 1028 | index 745cd115a..ac02389c2 100644 |
| 1029 | --- a/libblkid/src/topology/sysfs.c |
| 1030 | +++ b/libblkid/src/topology/sysfs.c |
| 1031 | @@ -17,7 +17,7 @@ |
| 1032 | #include <unistd.h> |
| 1033 | #include <errno.h> |
| 1034 | |
| 1035 | -#include "sysfs.h" |
| 1036 | +#include "include/sysfs.h" |
| 1037 | #include "topology.h" |
| 1038 | |
| 1039 | /* |
| 1040 | diff --git a/libblkid/src/topology/topology.h b/libblkid/src/topology/topology.h |
| 1041 | index 3e46af9ac..cf0231119 100644 |
| 1042 | --- a/libblkid/src/topology/topology.h |
| 1043 | +++ b/libblkid/src/topology/topology.h |
| 1044 | @@ -1,7 +1,7 @@ |
| 1045 | #ifndef BLKID_TOPOLOGY_H |
| 1046 | #define BLKID_TOPOLOGY_H |
| 1047 | |
| 1048 | -#include "blkidP.h" |
| 1049 | +#include "libblkid/src/blkidP.h" |
| 1050 | |
| 1051 | extern int blkid_topology_set_alignment_offset(blkid_probe pr, int val); |
| 1052 | extern int blkid_topology_set_minimum_io_size(blkid_probe pr, unsigned long val); |
| 1053 | diff --git a/libblkid/src/verify.c b/libblkid/src/verify.c |
| 1054 | index 4bda3fd40..9f2e0ac8a 100644 |
| 1055 | --- a/libblkid/src/verify.c |
| 1056 | +++ b/libblkid/src/verify.c |
| 1057 | @@ -21,7 +21,7 @@ |
| 1058 | #endif |
| 1059 | |
| 1060 | #include "blkidP.h" |
| 1061 | -#include "sysfs.h" |
| 1062 | +#include "include/sysfs.h" |
| 1063 | |
| 1064 | static void blkid_probe_to_tags(blkid_probe pr, blkid_dev dev) |
| 1065 | { |
| 1066 | diff --git a/libuuid/src/gen_uuid.c b/libuuid/src/gen_uuid.c |
| 1067 | index 50039fc2e..7225c8ec5 100644 |
| 1068 | --- a/libuuid/src/gen_uuid.c |
| 1069 | +++ b/libuuid/src/gen_uuid.c |
| 1070 | @@ -81,14 +81,14 @@ |
| 1071 | #include <sys/syscall.h> |
| 1072 | #endif |
| 1073 | |
| 1074 | -#include "all-io.h" |
| 1075 | +#include "include/all-io.h" |
| 1076 | #include "uuidP.h" |
| 1077 | #include "uuidd.h" |
| 1078 | -#include "randutils.h" |
| 1079 | -#include "strutils.h" |
| 1080 | -#include "c.h" |
| 1081 | -#include "md5.h" |
| 1082 | -#include "sha1.h" |
| 1083 | +#include "include/randutils.h" |
| 1084 | +#include "include/strutils.h" |
| 1085 | +#include "include/c.h" |
| 1086 | +#include "include/md5.h" |
| 1087 | +#include "include/sha1.h" |
| 1088 | |
| 1089 | #ifdef HAVE_TLS |
| 1090 | #define THREAD_LOCAL static __thread |
| 1091 | diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c |
| 1092 | index dba3bb7d7..c57800b9d 100644 |
| 1093 | --- a/misc-utils/blkid.c |
| 1094 | +++ b/misc-utils/blkid.c |
| 1095 | @@ -30,21 +30,21 @@ |
| 1096 | #define BLKID_EXIT_OTHER 4 /* bad usage or other error */ |
| 1097 | #define BLKID_EXIT_AMBIVAL 8 /* ambivalent low-level probing detected */ |
| 1098 | |
| 1099 | -#include <blkid.h> |
| 1100 | +#include "blkid.h" |
| 1101 | |
| 1102 | -#include "ismounted.h" |
| 1103 | +#include "include/ismounted.h" |
| 1104 | |
| 1105 | -#include "strutils.h" |
| 1106 | +#include "include/strutils.h" |
| 1107 | #define OPTUTILS_EXIT_CODE BLKID_EXIT_OTHER /* exclusive_option() */ |
| 1108 | -#include "optutils.h" |
| 1109 | +#include "include/optutils.h" |
| 1110 | #define CLOSE_EXIT_CODE BLKID_EXIT_OTHER /* close_stdout() */ |
| 1111 | -#include "closestream.h" |
| 1112 | +#include "include/closestream.h" |
| 1113 | |
| 1114 | -#include "nls.h" |
| 1115 | -#include "ttyutils.h" |
| 1116 | +#include "include/nls.h" |
| 1117 | +#include "include/ttyutils.h" |
| 1118 | |
| 1119 | #define XALLOC_EXIT_CODE BLKID_EXIT_OTHER /* x.*alloc(), xstrndup() */ |
| 1120 | -#include "xalloc.h" |
| 1121 | +#include "include/xalloc.h" |
| 1122 | |
| 1123 | struct blkid_control { |
| 1124 | int output; |
| 1125 | diff --git a/misc-utils/uuidgen.c b/misc-utils/uuidgen.c |
| 1126 | index fa148abae..09b267978 100644 |
| 1127 | --- a/misc-utils/uuidgen.c |
| 1128 | +++ b/misc-utils/uuidgen.c |
| 1129 | @@ -13,10 +13,10 @@ |
| 1130 | #include <stdlib.h> |
| 1131 | #include <getopt.h> |
| 1132 | |
| 1133 | -#include "uuid.h" |
| 1134 | -#include "nls.h" |
| 1135 | -#include "c.h" |
| 1136 | -#include "closestream.h" |
| 1137 | +#include "libuuid/src/uuid.h" |
| 1138 | +#include "include/nls.h" |
| 1139 | +#include "include/c.h" |
| 1140 | +#include "include/closestream.h" |
| 1141 | |
| 1142 | static void __attribute__((__noreturn__)) usage(void) |
| 1143 | { |
| 1144 | -- |
| 1145 | 2.25.1 |
| 1146 | |