summaryrefslogtreecommitdiff
path: root/sbin/pdisk/dump.c
AgeCommit message (Expand)Author
2016-01-27make sure to check malloc(3) return pointer against NULL.Gleydson Soares
2016-01-27We do not support logical_block != physical_block. Remove logical_blockKenneth R Westerback
2016-01-27Nuke another (and I hope final) batch of superfluous '{}' around singleKenneth R Westerback
2016-01-26dpme_name and dpme_type are NUL-terminated in Apple code, so useKenneth R Westerback
2016-01-26Whitespace, line wrapping fixes. Nuke many superfluous '{}' around singleKenneth R Westerback
2016-01-26Whitespace, line wrapping fixes.Kenneth R Westerback
2016-01-25Use new read/write_block0 and read/write_dpme which handle anyKenneth R Westerback
2016-01-25Tweak fields in struct dpme to be more consistent with Apple's info.Kenneth R Westerback
2016-01-25remove some uneeded includesJonathan Gray
2016-01-24Whitespace.Kenneth R Westerback
2016-01-24Nuke get_align_long() and put_align_long() #define's. They don't doKenneth R Westerback
2016-01-24Whitespace fixes.Kenneth R Westerback
2016-01-23Nuke unused kPatchType. Nuke kStringNot and use " not' where needed.Kenneth R Westerback
2016-01-23Flip read_block() and write_block() back to taking sector addressesKenneth R Westerback
2016-01-23map->block0 is always allocated or the map is discarded.Kenneth R Westerback
2016-01-22Change partition map field 'data' to 'dmpe'. Change 'create_data'Kenneth R Westerback
2016-01-22Rename map field 'misc' to 'block0' since that's what it is.Kenneth R Westerback
2016-01-22In the "why use two variables when one would do" category, eliminateKenneth R Westerback
2016-01-22Nuke 'expert' mode and the enabling, undocumented, '-d' flag byKenneth R Westerback
2016-01-21Hoist all file opening and ioctl calls into main(), passing a pointer toKenneth R Westerback
2016-01-21Nuke 'writable' field now that it is always in sync with 'rflag'. SinceKenneth R Westerback
2016-01-19Bring code into line with man page and usage() by only allowing oneKenneth R Westerback
2016-01-18The contents of the Apple_Patches partition is none of our business.Kenneth R Westerback
2016-01-18struct file_media had 1 field left. And one place where structKenneth R Westerback
2016-01-18Run indent(1) over it and tweak the results a bit manually to look moreKenneth R Westerback
2016-01-17Change "//" comments to "/**/". Nuke really stupid ones.Kenneth R Westerback
2016-01-17Reduce namespace pollution by eliminating parameter names from forwardKenneth R Westerback
2016-01-17Kill leading, imbedded, trailing whitespace.Kenneth R Westerback
2016-01-17Remove a bunch of ridiculous and uninformative comments like "// Defines".Kenneth R Westerback
2016-01-17The great de-typedef'ification concludes with u32 -> uint32_t. And aKenneth R Westerback
2016-01-17The great de-typedef'ification continues.Kenneth R Westerback
2016-01-17The great de-typedef'ification continues.Kenneth R Westerback
2016-01-17The great de-typedef'ification continues. OSType -> unsigned long.Kenneth R Westerback
2016-01-17The great de-typedef'ification continues. DDMap -> struct ddmap.Kenneth R Westerback
2016-01-17The great de-typedef'ification continues. Block0 -> struct block0.Kenneth R Westerback
2016-01-17The great de-typedef'ification continues. DPME -> struct dpme.Kenneth R Westerback
2016-01-17Let the great de-typedef'ification begin. MEDIA -> struct file_media *.Kenneth R Westerback
2016-01-17A/UX is no more, was m68k only, and we have no sentimental reasons forKenneth R Westerback
2016-01-17- tidy up a bunch of #if's for code that has been either enabled or disabled ...Jasper Lievisse Adriaanse
2016-01-16Move last field (size_in_bytes) in struct media to struct file_mediaKenneth R Westerback
2016-01-16Start peeling away excess layers of abstraction.Kenneth R Westerback
2016-01-15We don't need yet another alias for DEV_BSIZE. Use DEV_BSIZE andKenneth R Westerback
2016-01-15Replace bitfield_get() and bitfield_set() abstraction with simple maskingKenneth R Westerback
2016-01-14Remove code supporting undocumented and inaccessible flags 'a'Kenneth R Westerback
2016-01-12Use normal err/errx/warn/warnx rather than handrolling new ones. MoveKenneth R Westerback
2016-01-12Retire '-i', a poorly documented interactive mode that tries toKenneth R Westerback
2016-01-11open_pathname_as_media() simply called open_file_as_media() whichKenneth R Westerback
2016-01-11add rcs idsJasper Lievisse Adriaanse
2015-08-20Two reallocarray() conversions that were missed earlier.Todd C. Miller
2015-08-20<stdlib.h> is included, so do not need to cast result fromTheo de Raadt