search for: reverse_uuid

Displaying 3 results from an estimated 3 matches for "reverse_uuid".

2011 Aug 05
3
isolinux: Generate GPT and Mac bootable images
...chksum_crc32 (unsigned char *block, unsigned int length) +{ + register unsigned long crc; + unsigned long i; + + crc = 0xFFFFFFFF; + for (i = 0; i < length; i++) + { + crc = ((crc >> 8) & 0x00FFFFFF) ^ crc_tab[(crc ^ *block++) & 0xFF]; + } + return (crc ^ 0xFFFFFFFF); +} + +void +reverse_uuid(uuid_t uuid) +{ + uint8_t t, *p = (uint8_t *)uuid; + + t = p[0]; p[0] = p[3]; p[3] = t; + t = p[1]; p[1] = p[2]; p[2] = t; + t = p[4]; p[4] = p[5]; p[5] = t; + t = p[6]; p[6] = p[7]; p[7] = t; +} + +void +initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary) +{ + struct...
2012 May 06
1
isohybrid.c, problem reports and questions
...-------------------------- The second Apple partition map entry points to the VFAT image file /isolinux/efiboot.img but announces as partition type "Apple_HFS". Is this ok ? ----------------------------------------------------------------------- What is the reason for calling function reverse_uuid() ? Is it intentional that it only byteswaps the first 8 of 16 bytes ? ----------------------------------------------------------------------- The explored ISO image stems from http://mjg59.fedorapeople.org/Fedora-LiveCD.iso Matthew advised it to me at his article "Anatomy of a Fedora 17...
2014 Jun 24
2
[syslinux:master] isohybrid: Function to write UTF-16LE strings
...ret = fread(mbr, 1, MBRSIZE, fp); > - if (ferror(fp)) > + if (ferror(fp) || ret != MBRSIZE) > err(1, "error while reading MBR template file `%s'", path); > fclose(fp); > } Shouldn't that be in a separate commit? > @@ -786,6 +786,21 @@ reverse_uuid(uuid_t uuid) > t = p[6]; p[6] = p[7]; p[7] = t; > } > > +static uint16_t * > +ascii_to_utf16le(uint16_t *dst, const char *src) > +{ > + uint8_t *p = (uint8_t *)dst; > + char c; > + > + do { > + c = *src++; > + *p++ = c; > + *p++ = 0; > + }...