Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sbin/gpt/gpt.h,v rcsdiff: /ftp/cvs/cvsroot/src/sbin/gpt/gpt.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.5 retrieving revision 1.5.12.2 diff -u -p -r1.5 -r1.5.12.2 --- src/sbin/gpt/gpt.h 2011/01/06 01:08:48 1.5 +++ src/sbin/gpt/gpt.h 2014/08/20 00:02:25 1.5.12.2 @@ -30,25 +30,15 @@ #define _GPT_H_ #include -#ifdef __FreeBSD__ -#include -/* - * XXX struct gpt_hdr is not a multiple of 8 bytes in size and thus - * contains padding we must not include in the size. - */ -#define GPT_SIZE offsetof(struct gpt_hdr, padding) -#endif -#ifdef __NetBSD__ #include #define GPT_SIZE GPT_HDR_SIZE #define hdr_uuid hdr_guid #define ent_uuid ent_guid -#endif #include -void le_uuid_dec(void const *, uuid_t *); -void le_uuid_enc(void *, uuid_t const *); +#define le_uuid_dec uuid_dec_le +#define le_uuid_enc uuid_enc_le int parse_uuid(const char *, uuid_t *); struct mbr_part { @@ -90,6 +80,7 @@ uint8_t *utf16_to_utf8(uint16_t *); void utf8_to_utf16(const uint8_t *, uint16_t *, size_t); int cmd_add(int, char *[]); +int cmd_backup(int, char *[]); int cmd_biosboot(int, char *[]); int cmd_create(int, char *[]); int cmd_destroy(int, char *[]); @@ -97,6 +88,10 @@ int cmd_label(int, char *[]); int cmd_migrate(int, char *[]); int cmd_recover(int, char *[]); int cmd_remove(int, char *[]); +int cmd_resize(int, char *[]); +int cmd_restore(int, char *[]); +int cmd_set(int, char *[]); int cmd_show(int, char *[]); +int cmd_unset(int, char *[]); #endif /* _GPT_H_ */