summaryrefslogtreecommitdiff
path: root/sbin/fdisk/fdisk.c
AgeCommit message (Expand)Author
2014-03-20Add back various #includes of err.h, unistd.h, ctype.h, ioctl.h toKenneth 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-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
2014-03-06tweak previous;Jason McIntyre
2014-03-02-l disksize code, to force LBA mode. code by chris, after I suggestedTheo de Raadt
2013-03-21more substantial include cleanupTheo de Raadt
2011-12-25printf("msg")/return 1 -> err(1, "msg"), which will also show relevantKenneth R Westerback
2011-02-21Honour MBR_read() results and don't pretend we can parse blocks weKenneth R Westerback
2010-05-25match usage to the manual page, and borrow the description of 'disk'Theo de Raadt
2010-03-22introduce HAS_MBR and let make define it for the right machines;Otto Moerbeek
2010-02-17loongson has mbr as well; ok miod@ (but he made me promise to makeOtto Moerbeek
2007-12-30sort flags in both synopsis and usageIgor Sobrado
2007-04-26lint says: fdisk.c:160: warning: operator '==' found where '=' was expectedTheo de Raadt
2006-11-09oopsTheo de Raadt
2006-11-08sh machines also have a /usr/mdec/mbrTheo de Raadt
2006-11-08add a -y flag, for non-interactive useTheo de Raadt
2006-07-27Change some obvious atoi() to strtonum().Ray Lai
2006-07-27Add checks to each write(2) attempt and try to keep fdisk in aRay Lai
2006-07-09Do not try and read /usr/mdec/mbr in ``fdisk -e'' unless the architectureMiod Vallat
2005-05-01- better synopsisJason McIntyre
2004-08-03Handle geometry parameters as unsigned quantities, getting rid of negativeOtto Moerbeek
2004-01-07Better diagnostic message if we can't open the external MBR fileTom Cosgrove
2003-07-02missing protosTheo de Raadt
2003-06-11ansificationTheo de Raadt
2003-06-03Nuke terms 3 & 4.Tobias Weingartner
2001-12-15Get this damn diff out of my tree. ok from weingart@, deraadt@ and others.Kjell Wooding
2001-07-02#include <string.h> to get mem* prototypes.Todd C. Miller
2001-06-23Changes from Toby. Make error tests explicit (against -1), remove one bigKjell Wooding
2000-01-08support LBA-mapped extended partitions too; sigh@kuzirabekon.econ.nagasaki-u....Theo de Raadt
1998-09-14Since on the powerpc, the system does not supply the user withDale S. Rahn
1997-10-28if printing, we do not need to read the mbr firstTheo de Raadt
1997-10-21make fdisk grok extended partitions again. we have to keep track of theNiels Provos
1997-10-19indentTheo de Raadt
1997-10-19indentTheo de Raadt
1997-10-16a bunch of improvements by weingart & ITheo de Raadt
1997-10-14Be a little more informative.Per Fogelstrom
1997-09-29ID in the first line w/ tabsMichael Shalayeff
1997-09-29better usage()Michael Shalayeff
1997-09-29New fdisk code with interactive (command line type)Tobias Weingartner
1997-09-29Clean up junk before commit of new fdiskTobias Weingartner
1997-07-06Explicit typingNiklas Hallqvist
1997-04-17fix start address for first extended filesystemNiels Provos
1997-04-15indentTheo de Raadt
1997-04-14works a bit better with extended partitions. hack.Niels Provos
1997-04-11add more partition types. add (non-functional) Extended partition supportTheo de Raadt
1997-04-06Add partition type 0x12.Jason Downs