summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk/user.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add '-v' flag that forces the display of both GPT's and the MBR.krw2015-12-111-2/+2
| | | | | | | Useful for seeing exactly what is currently on the disk. Suggested by a request from kettenis@. Man page & usage ok jmc@
* Stop passing around little used 'struct mbr tt' parameter. Justkrw2015-03-181-2/+2
| | | | | | | make the initial mbr that tt pointed at a global that can be directly accessed in the couple of places it is needed. Fewer parameters, less confusion, no functional change.
* Stop passing around a pointer to the stack variable 'disk' in main().krw2015-03-161-3/+3
| | | | | | There is only one disk being worked on, so just make it a global. Fewer parameters, less confusion, no functional change.
* Document that -i/-u are mutually exclusive and clean up the relatedkrw2015-03-161-2/+1
| | | | | | code a bit. ok deraadt@ igor@ (with suggested tweak that is coming)
* Whitespace & KNF tweaks. Change functions whose return values arekrw2015-03-141-4/+4
| | | | | | | | | | not checked to void. Use continue inside a do loop instead of a goto to the top. Move a #define/#undef more local to use. Eliminate some lint. General cleanup of things noticed preparing the big churn. No intentional functional change.
* Switch all the license blocks to the standard OpenBSD/ISC license.krw2015-03-141-20/+11
| | | | | | With the permission of Toby. ok deraadt@
* Rename 'm_flag' to 'e_flag' since it's '-e' that sets it. Renamekrw2015-02-091-2/+2
| | | | 'User_modify' to 'USER_edit' for the same reason.
* Whitespace rectification.krw2014-03-311-2/+1
|
* Nuke pointless blank lines, defines, comments and casts. Eliminatekrw2014-03-171-4/+1
| | | | | | | | | #include in *.h files in favour of listing them as required in the *.c files. Fix error message to correctly state that 64 is the minimum value for -l. Use errx() where errno is not relevant. Use 'continue' rather than a label to go back to start of a loop. No intentional functional change.
* Relieve the code of an overburden of unnecessary typedefkrw2014-03-071-4/+4
| | | | | | | | abstraction. Call a 'struct' a 'struct' and not a pony. No functional change. idea ok deraadt@
* Nuke terms 3 & 4.weingart2003-06-031-6/+1
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-4/+4
|
* Get this damn diff out of my tree. ok from weingart@, deraadt@ and others.kjell2001-12-151-2/+2
| | | | | | Add a -u flag to fdisk which updates MBR code, but leaves the partition table intact. There are still issues with 'update' having different behavior, but I'll resolve those shortly
* #(endif|else) foo is incorrect, make it #endif /* foo */heko2001-08-121-2/+2
| | | | deraadt@ ok
* make fdisk grok extended partitions again. we have to keep track of theprovos1997-10-211-2/+2
| | | | | | | | absolute offset of the current mbr and its relative position. because: the starting sector of the first mbr entry in an extended partition is relative to the starting offset of the whole mbr itself. the starting offset of a new extended partition is relative to the offset of the very first extended partition.
* ID in the first line w/ tabsmickey1997-09-291-2/+1
|
* New fdisk code with interactive (command line type)weingart1997-09-291-0/+46
editing code. Rewrite from the ground up, save about 20 lines of code. Seems to create valid partition tables on i386 and alphas.