summaryrefslogtreecommitdiff
path: root/sbin/fdisk/misc.c
AgeCommit message (Expand)Author
2014-03-31Nuke [get|put][short|long] and just use letoh[16|32] andKenneth R Westerback
2014-03-20Add back various #includes of err.h, unistd.h, ctype.h, ioctl.h toKenneth R Westerback
2014-03-20Add back #include <stdlib.h> so strtod() works better. Fixes fdisk onKenneth R Westerback
2014-03-17Nuke pointless blank lines, defines, comments and casts. EliminateKenneth R Westerback
2014-03-17Un-revert, being careful to not break snap building. Add paranoia checkKenneth R Westerback
2014-03-14Revert last -- broke building snaps.Kenneth R Westerback
2014-03-13Merge 'struct DISK_metrics' and 'struct disk' into one, since we don'tKenneth R Westerback
2014-03-10No need to pass the name of the command to the function that isKenneth R Westerback
2014-03-09Instead of passing around 'char buf[DEV_BSIZE]' buffers, pass aroundKenneth R Westerback
2014-03-07Relieve the code of an overburden of unnecessary typedefKenneth R Westerback
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.Theo de Raadt
2013-03-21more substantial include cleanupTheo de Raadt
2012-08-14remove unused variableCharles Longeau
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-09Use strtonum() instead of strtol() inside ask_num(). Many overflowsKenneth 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
2010-07-04make ^D handling consistant in fdisk by just bailing out instead ofAlexander Hall
2009-07-24properly sanitize the default value in ask_num(...)Alexander Hall
2009-04-07Fix the default value to be between low/high range. Thanks forTobias Weingartner
2008-12-01Back out previous; it broke specifying paritions sizes with decimals,Ray Lai
2008-12-01Check for invalid integers passed getuint(); instead of getuint()Ray Lai
2006-11-08add a -y flag, for non-interactive useTheo de Raadt
2006-10-24Check strlen(buf) to be > 0 before accessing buf[strlen(buf)-1].Moritz Jodeit
2005-11-21Replace default DEV_BSIZE sector conversion factor with disklabel'sKenneth R Westerback
2004-09-18some delinting; ok ottoTheo de Raadt
2003-07-29spacesTheo de Raadt
2003-06-11ansificationTheo de Raadt
2003-06-03Nuke terms 3 & 4.Tobias Weingartner
2002-04-20machine/limits.h is not userland. Use limits.hMarc Espie
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2002-01-23use sizeof instead of magic numbersMichael Shalayeff
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
1997-10-19indentTheo de Raadt
1997-10-19indentTheo de Raadt
1997-10-16only help if possibleTheo de Raadt
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