]> git.saurik.com Git - apple/system_cmds.git/blame - gcore.tproj/utils.h
system_cmds-735.20.1.tar.gz
[apple/system_cmds.git] / gcore.tproj / utils.h
CommitLineData
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
16extern const char *pgm;
17
18struct region;
19
20extern void err_mach(kern_return_t, const struct region *r, const char *fmt, ...) __printflike(3, 4);
21extern void printr(const struct region *r, const char *fmt, ...) __printflike(2, 3);
22
23typedef char hsize_str_t[7]; /* e.g. 1008Mib */
24
25extern const char *str_hsize(hsize_str_t hstr, uint64_t);
26extern char *strconcat(const char *, const char *, size_t);
27
28#endif /* _UTILS_H */