History log of /openbsd-src/sbin/fdisk/user.h (Results 1 – 25 of 25)
Revision Date Author Comments
# 2ad00dad 25-Mar-2023 krw <krw@openbsd.org>

Move LINEBUFSZ to be with its friends in misc.h.

Nuke unused HELPBUFSZ.

No functional change.


# 9ba61043 25-Jul-2022 krw <krw@openbsd.org>

Only MBR and GPT structures can be edited by fdisk.

If neither are found, restrict user actions to printing basic
information on the disk, reading the man page, initializing an
MBR or GPT, or termin

Only MBR and GPT structures can be edited by fdisk.

If neither are found, restrict user actions to printing basic
information on the disk, reading the man page, initializing an
MBR or GPT, or terminating fdisk without changing anything.

Feedback on earlier attempt by miod@ and brynet@.

show more ...


# 63400da5 10-Jul-2022 krw <krw@openbsd.org>

Use nice #define's for input buf size and output help buf size.

No functional change.


# c4fc5564 25-Oct-2021 krw <krw@openbsd.org>

Nuke a bunch of pointless #ifndef _<.h file>/#endif guards.


# 9930d3aa 24-Aug-2021 krw <krw@openbsd.org>

A couple more Capt. Obvious comments can go.


# 58c4c3e5 12-Aug-2021 krw <krw@openbsd.org>

Further reduce cross-file confusion by adding USER_help() and
calling it from Xhelp(). Move declaration of struct cmd to nestle
next to its only instantiation (cmd_table) and use nitems() when
scanni

Further reduce cross-file confusion by adding USER_help() and
calling it from Xhelp(). Move declaration of struct cmd to nestle
next to its only instantiation (cmd_table) and use nitems() when
scanning cmd_table.

No functional change.

show more ...


# 0cd9e2af 13-Jul-2021 krw <krw@openbsd.org>

Disk sector addresses are normally stored/provided in uint64_t
variables/parameters, not off_t.

Adjust various parameters and variables accordingly. A few missed const's
and verbiage tweaks in passi

Disk sector addresses are normally stored/provided in uint64_t
variables/parameters, not off_t.

Adjust various parameters and variables accordingly. A few missed const's
and verbiage tweaks in passing.

No functional change.

show more ...


# eccd34eb 11-Jul-2021 krw <krw@openbsd.org>

Add tabs to make struct definitions and function prototypes easier
to read.

No functional change.


# fbf68f68 11-Dec-2015 krw <krw@openbsd.org>

Add '-v' flag that forces the display of both GPT's and the MBR.
Useful for seeing exactly what is currently on the disk. Suggested
by a request from kettenis@.

Man page & usage ok jmc@


# 9317a2dd 18-Mar-2015 krw <krw@openbsd.org>

Stop passing around little used 'struct mbr tt' parameter. Just
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

Stop passing around little used 'struct mbr tt' parameter. Just
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.

show more ...


# ac519580 16-Mar-2015 krw <krw@openbsd.org>

Stop passing around a pointer to the stack variable 'disk' in main().
There is only one disk being worked on, so just make it a global.

Fewer parameters, less confusion, no functional change.


# e78137c1 16-Mar-2015 krw <krw@openbsd.org>

Document that -i/-u are mutually exclusive and clean up the related
code a bit.

ok deraadt@ igor@ (with suggested tweak that is coming)


# 7126966c 14-Mar-2015 krw <krw@openbsd.org>

Whitespace & KNF tweaks. Change functions whose return values are
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
s

Whitespace & KNF tweaks. Change functions whose return values are
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.

show more ...


# 10a68084 14-Mar-2015 krw <krw@openbsd.org>

Switch all the license blocks to the standard OpenBSD/ISC license.

With the permission of Toby.

ok deraadt@


# ab12137e 09-Feb-2015 krw <krw@openbsd.org>

Rename 'm_flag' to 'e_flag' since it's '-e' that sets it. Rename
'User_modify' to 'USER_edit' for the same reason.


# 49241bda 31-Mar-2014 krw <krw@openbsd.org>

Whitespace rectification.


# a5472107 17-Mar-2014 krw <krw@openbsd.org>

Nuke pointless blank lines, defines, comments and casts. Eliminate
#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 mi

Nuke pointless blank lines, defines, comments and casts. Eliminate
#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.

show more ...


# 53f0474f 07-Mar-2014 krw <krw@openbsd.org>

Relieve the code of an overburden of unnecessary typedef
abstraction. Call a 'struct' a 'struct' and not a pony.

No functional change.

idea ok deraadt@


# 0c430764 03-Jun-2003 weingart <weingart@openbsd.org>

Nuke terms 3 & 4.


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

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 don

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.

show more ...


# 6eb02440 15-Dec-2001 kjell <kjell@openbsd.org>

Get this damn diff out of my tree. ok from weingart@, deraadt@ and others.
Add a -u flag to fdisk which updates MBR code, but leaves the partition
table intact. There are still issues with 'update' h

Get this damn diff out of my tree. ok from weingart@, deraadt@ and others.
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

show more ...


# fd0d495e 12-Aug-2001 heko <heko@openbsd.org>

#(endif|else) foo is incorrect, make it #endif /* foo */
deraadt@ ok


# ca2e86e1 21-Oct-1997 provos <provos@openbsd.org>

make fdisk grok extended partitions again. we have to keep track of the
absolute offset of the current mbr and its relative position. because:
the starting sector of the first mbr entry in an extende

make fdisk grok extended partitions again. we have to keep track of the
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.

show more ...


# c884cb9a 29-Sep-1997 mickey <mickey@openbsd.org>

ID in the first line w/ tabs


# a1705421 29-Sep-1997 weingart <weingart@openbsd.org>

New fdisk code with interactive (command line type)
editing code. Rewrite from the ground up, save about
20 lines of code. Seems to create valid partition
tables on i386 and alphas.