src/basic: rename uid-alloc-range.[ch] to uid-classification.[ch]

We had both uid-range.h and uid-alloc-range.h. The latter now contains helpers
like {uid,gid}_is_{system,dynamic,container}(), uid_for_system_journal(), so
the existing name is outdated. I think the uid-range.[ch] should stay separate
because it has a bunch of helpers for parsing and printing of uid ranges. So
let's rename as in $subject to better reflect the contents of the file and make
the two sets of files harder to confuse.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-01-09 10:37:27 +01:00
parent eb7d7d14fb
commit 8e1ac16bc6
19 changed files with 18 additions and 18 deletions

View file

@ -96,7 +96,7 @@ basic_sources = files(
'terminal-util.c',
'time-util.c',
'tmpfile-util.c',
'uid-alloc-range.c',
'uid-classification.c',
'uid-range.c',
'unit-def.c',
'unit-file.c',

View file

@ -5,7 +5,7 @@
#include "fileio.h"
#include "missing_threads.h"
#include "string-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-util.h"
static const UGIDAllocationRange default_ugid_allocation_range = {

View file

@ -20,7 +20,7 @@
#include "stdio-util.h"
#include "string-util.h"
#include "strv.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-util.h"
/* Takes a value generated randomly or by hashing and turns it into a UID in the right range */

View file

@ -51,7 +51,7 @@
#include "strv.h"
#include "sync-util.h"
#include "tmpfile-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-util.h"
/* The maximum size up to which we process coredumps. We use 1G on 32-bit systems, and 32G on 64-bit systems */

View file

@ -46,7 +46,7 @@
#include "strv.h"
#include "terminal-util.h"
#include "tmpfile-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-util.h"
#include "vpick.h"

View file

@ -42,7 +42,7 @@
#include "rlimit-util.h"
#include "spawn-polkit-agent.h"
#include "terminal-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-record.h"
#include "user-record-password-quality.h"
#include "user-record-show.h"

View file

@ -38,7 +38,7 @@
#include "stat-util.h"
#include "string-table.h"
#include "strv.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-record-password-quality.h"
#include "user-record-sign.h"
#include "user-record-util.h"

View file

@ -56,7 +56,7 @@
#include "string-table.h"
#include "string-util.h"
#include "syslog-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-util.h"
#include "varlink-io.systemd.Journal.h"

View file

@ -43,7 +43,7 @@
#include "string-util.h"
#include "strv.h"
#include "syslog-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC)

View file

@ -38,7 +38,7 @@
#include "strv.h"
#include "terminal-util.h"
#include "tmpfile-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-util.h"
#define RELEASE_USEC (20*USEC_PER_SEC)

View file

@ -33,7 +33,7 @@
#include "string-table.h"
#include "strv.h"
#include "tmpfile-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "unit-name.h"
#include "user-util.h"

View file

@ -59,7 +59,7 @@
#include "string-util.h"
#include "tomoyo-util.h"
#include "tpm2-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-util.h"
#include "virt.h"

View file

@ -2,7 +2,7 @@
#include "group-record.h"
#include "strv.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-util.h"
GroupRecord* group_record_new(void) {

View file

@ -16,7 +16,7 @@
#include "rlimit-util.h"
#include "string-table.h"
#include "strv.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-record.h"
#include "user-util.h"

View file

@ -35,7 +35,7 @@
#include "strv.h"
#include "sync-util.h"
#include "tmpfile-util-label.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "uid-range.h"
#include "user-util.h"
#include "utf8.h"

View file

@ -171,7 +171,7 @@ simple_tests += files(
'test-terminal-util.c',
'test-tmpfile-util.c',
'test-udev-util.c',
'test-uid-alloc-range.c',
'test-uid-classification.c',
'test-uid-range.c',
'test-umask-util.c',
'test-unaligned.c',

View file

@ -41,7 +41,7 @@
#include "tests.h"
#include "tmpfile-util.h"
#include "tomoyo-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
#include "user-util.h"
#include "virt.h"

View file

@ -9,7 +9,7 @@
#include "fs-util.h"
#include "tests.h"
#include "tmpfile-util.h"
#include "uid-alloc-range.h"
#include "uid-classification.h"
static void test_read_login_defs_one(const char *path) {
log_info("/* %s(\"%s\") */", __func__, path ?: "<custom>");