summaryrefslogtreecommitdiff
path: root/sbin/fdisk/misc.h
AgeCommit message (Expand)Author
2022-04-20Wrap a long line.Kenneth R Westerback
2022-04-20Simpify code manipulating GPT partition names by coalescingKenneth R Westerback
2021-10-25Nuke a bunch of pointless #ifndef _<.h file>/#endif guards.Kenneth R Westerback
2021-09-13disk.dk_size can't be 0 as we errx() if that happens duringKenneth R Westerback
2021-09-12Stop taking detour through unit_types[SECTORS] to findKenneth R Westerback
2021-08-28Add hex_octet() so the strtol(..,16) dance is done in just oneKenneth R Westerback
2021-08-24A couple more Capt. Obvious comments can go.Kenneth R Westerback
2021-08-24Trim leading/trailing whitespace from -e input to make commandKenneth R Westerback
2021-08-15Don't check & errx() after each and every invocation ofKenneth R Westerback
2021-08-12Further reduce cross-file confusion by adding USER_help() andKenneth R Westerback
2021-07-12Toss 'const' in anywhere the compiler doesn't complain about, thus identifyingKenneth R Westerback
2021-07-11Move ask_cmd(), ask_num(), ask_pid(), ask_string(), parse_b()Kenneth R Westerback
2021-07-11Add tabs to make struct definitions and function prototypes easierKenneth R Westerback
2021-06-20Make -b available to architectures other than amd64 and i386.Kenneth R Westerback
2021-06-10Toss in 'const' for the parameters to string_to_utf16le() andKenneth R Westerback
2021-05-07Replace random mix of u_int* and uint* types with consistent uint* types.Kenneth R Westerback
2015-11-21Bring GPT partition editing into line with MBR partition editingKenneth R Westerback
2015-11-12Avoid problems with pathological input during edit operations. i.e. neverKenneth R Westerback
2015-10-26Add GPT editing. Based on GSOC 2014 work by Markus Muller.Kenneth R Westerback
2015-03-30Even better -- readsector() and writesector() become DISK_readsector() andKenneth R Westerback
2015-03-29Rename MBR_readsector() and MBR_writesector() to just readsector()Kenneth R Westerback
2015-03-28Add a simple crc32() implmentation to avoid pulling in libz, whichKenneth R Westerback
2015-03-26Adapt ask_string() from disklabel's getstring(). It will be usedKenneth R Westerback
2015-03-26Allow input/printing/conversion of terabyte sizes. Which GPT partitonsKenneth R Westerback
2015-03-26Expand internal representation of partition starting LBA and sizeKenneth R Westerback
2015-03-16Stop passing around a pointer to the stack variable 'disk' in main().Kenneth R Westerback
2015-03-14Switch all the license blocks to the standard OpenBSD/ISC license.Kenneth R Westerback
2014-03-31Nuke [get|put][short|long] and just use letoh[16|32] andKenneth R Westerback
2014-03-17Nuke pointless blank lines, defines, comments and casts. EliminateKenneth R Westerback
2014-03-10No need to pass the name of the command to the function that isKenneth R Westerback
2014-03-07Relieve the code of an overburden of unnecessary typedefKenneth R Westerback
2013-03-21more substantial include cleanupTheo de Raadt
2012-07-11Simplify guts and calling of getuint(). Eliminate a useless 'help'Kenneth R Westerback
2012-07-09We always want to do unit conversions. So flags parameter of getuint()Kenneth R Westerback
2012-07-09I want some of what kjell was smoking 10 years ago when he addedKenneth R Westerback
2012-07-08set_pid() does not need prompt string, low or high parameters. TheseKenneth R Westerback
2012-07-08Split out an ask_pid() function rather than over-parameterizing theKenneth R Westerback
2005-11-21Replace default DEV_BSIZE sector conversion factor with disklabel'sKenneth R Westerback
2004-09-30remove stray const, noted by david@Otto Moerbeek
2004-09-18some delinting; ok ottoTheo de Raadt
2003-06-03Nuke terms 3 & 4.Tobias Weingartner
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained o...Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2002-01-18Allow size values to be displayed in the user's choice of units.Kjell Wooding
2002-01-18Add disklabel-style editing for size/offset values inKjell Wooding
2001-08-12#(endif|else) foo is incorrect, make it #endif /* foo */Heikki Korpela
1997-10-16a bunch of improvements by weingart & ITheo de Raadt
1997-09-29ID in the first line w/ tabsMichael Shalayeff
1997-09-29New fdisk code with interactive (command line type)Tobias Weingartner