]>
Commit | Line | Data |
---|---|---|
cf37c299 A |
1 | /* |
2 | * Copyright (c) 2015 Apple Inc. All rights reserved. | |
3 | */ | |
4 | ||
5 | #include <stdio.h> | |
6 | #include <inttypes.h> | |
7 | #include <stdbool.h> | |
8 | #include <uuid/uuid.h> | |
9 | #include <mach/mach_types.h> | |
10 | #include <sysexits.h> | |
11 | #include <err.h> | |
12 | ||
13 | #ifndef _UTILS_H | |
14 | #define _UTILS_H | |
15 | ||
16 | extern const char *pgm; | |
17 | ||
18 | struct region; | |
19 | ||
20 | extern void err_mach(kern_return_t, const struct region *r, const char *fmt, ...) __printflike(3, 4); | |
21 | extern void printr(const struct region *r, const char *fmt, ...) __printflike(2, 3); | |
22 | ||
23 | typedef char hsize_str_t[7]; /* e.g. 1008Mib */ | |
24 | ||
25 | extern const char *str_hsize(hsize_str_t hstr, uint64_t); | |
26 | extern char *strconcat(const char *, const char *, size_t); | |
27 | ||
28 | #endif /* _UTILS_H */ |