summaryrefslogtreecommitdiff
path: root/sbin/pdisk/pdisk.c
AgeCommit message (Expand)Author
2016-03-09Accept only character special devices rather than generating a coreKenneth R Westerback
2016-02-02Pledge, based on what's done in fdisk.Kenneth R Westerback
2016-01-31Nuke pointless map field 'physical_block' and just use 'sbBlkSize' which isKenneth R Westerback
2016-01-30Move last three lines (#define's) from dpme.h to partition_map.h andKenneth R Westerback
2016-01-30Fold struct dpme into struct entry. Same reasons as for foldingKenneth R Westerback
2016-01-29Add do_dump_map() to make command processing more consistent. PassKenneth R Westerback
2016-01-29Rename struct partition_map_header to struct partition_map. No change toKenneth R Westerback
2016-01-28Hand rolled lists suck. First, replace disk_order with an LIST.Kenneth R Westerback
2016-01-28Tweak verbiage for 'r' (reorder) command.Kenneth R Westerback
2016-01-27Tweak some verbiage.Kenneth R Westerback
2016-01-27On-disk partition name/types/processorid may or may not be NULKenneth R Westerback
2016-01-27We do not support logical_block != physical_block. Remove logical_blockKenneth R Westerback
2016-01-27Check block 0 signature, physical block size and physical block count whenKenneth R Westerback
2016-01-26Rework and simplify string argument parsing. All string arguments are atKenneth 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-25Use new read/write_block0 and read/write_dpme which handle anyKenneth R Westerback
2016-01-25remove some uneeded includesJonathan Gray
2016-01-24Nuke more pointless checks for map NULLness.Kenneth 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-23No need for 'default_value' parameter for get_number_argument() since weKenneth R Westerback
2016-01-23No need for get_string_argument() parameter 'reprompt' since weKenneth R Westerback
2016-01-23Pass the disk sector size to open_partition_map(), eliminating it'sKenneth R Westerback
2016-01-23Add comments to ensure future spelunkers realize that struct block0Kenneth R Westerback
2016-01-22Change partition map field 'data' to 'dmpe'. Change 'create_data'Kenneth R Westerback
2016-01-22Repair creation of initial partition table on a blank disk, brokenKenneth 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-19Simplify the main command switch, eliminating a couple of /* fallKenneth R Westerback
2016-01-19It's pointless to check for 'dflag' inside do_expert(), since you can'tKenneth R Westerback
2016-01-19Remove forward declarations for functions that do not exist.Kenneth R Westerback
2016-01-19Bring code into line with man page and usage() by only allowing oneKenneth R Westerback
2016-01-19No need for pdisk(8) to provide a version of hexdump. RemoveKenneth 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-18Fold get_options() into main() and eliminate unneeded nFLAG_DEFAULTKenneth R Westerback
2016-01-18Remove a grab bag of unused #define's, fields, enum's, variables,Kenneth 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 continues.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-16Move last field (size_in_bytes) in struct media to struct file_mediaKenneth R Westerback