o Include <sys/uuid.h>. This avoids that applications such as

gpt(8) have to include both <sys/uuid.h> and <uuid.h> only
   because they include <sys/gpt.h> before <uuid.h>.
o  Drop the triple bang in the unicode comment in favor of
   adding '-16' to make it explicit that the unicode characters
   are 16-bit. The fact that we use short as the type of the
   array does give it away; but only to the careful reader.
This commit is contained in:
marcel 2002-11-10 20:13:58 +00:00
parent 73d398d702
commit 69bc439801

View File

@ -29,6 +29,8 @@
#ifndef _SYS_GPT_H_
#define _SYS_GPT_H_
#include <sys/uuid.h>
struct gpt_hdr {
char hdr_sig[8];
#define GPT_HDR_SIG "EFI PART"
@ -63,7 +65,7 @@ struct gpt_ent {
uint64_t ent_lba_end;
uint64_t ent_attr;
#define GPT_ENT_ATTR_PLATFORM (1ULL << 0)
short ent_name[36]; /* UNICODE!!! */
short ent_name[36]; /* UNICODE-16. */
};
#define GPT_ENT_TYPE_UNUSED \