summaryrefslogtreecommitdiff
path: root/src/basic/uid-range.c
Commit message (Collapse)AuthorAgeFilesLines
* uid-range: tie up number and array of uid range entriesYu Watanabe2022-09-161-46/+69
| | | | | | This renames UidRange -> UidRangeEntry, and reintroduces UidRange which contains the array of UidRangeEntry and its size. No fucntional changes, just refactoring.
* uid-range: make uid_range_intersect() take two UidRange objectsYu Watanabe2022-09-161-5/+5
| | | | No functional changes, just refactoring.
* uid-range: optimize to load uid_map fileYu Watanabe2022-09-161-35/+23
| | | | | If uid_map contains many lines, then the previous logic takes O(n^2 log n), This makes O(n log n).
* uid-range: escape from loop earlierYu Watanabe2022-09-161-12/+14
| | | | | | The array of uid range entries are already sorted. Hence, if x and y are does not have intersection, then the remaining entries neither have intersection with x.
* uid-range: sort uid range entries in uid_range_coalesce()Yu Watanabe2022-09-161-11/+18
| | | | | | As the logic in uid_range_coalesce() assumes the array of entries are already sorted. No functional changes, just refactoring.
* uid-range: use parse_uid_range()Yu Watanabe2022-09-161-28/+5
|
* uid-range: move to src/basic/Yu Watanabe2022-09-081-0/+240
To make the functions defined in the files usable by libsystemd library.