fdisk: (bsd) move global label variables to fdisk_bsd_label struct

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) move bsdbuffer to fdisk_bsd_label struct

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) remove printf() from the driver code

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: allow to exchange context pointer in menu callbacks

... to make it possible to switch to nested contexts (nested partition
tables).

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) remove generic actions from bsd_command_prompt()

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) implement regular bsd menu callback

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) *OSF --> *BSD

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) remove dead code

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) fix add/link partition

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) coding style, remove unnecessary #ifdef

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) rewrite list disklabel function

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) minor code clean up

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) remove xbsd_ prefix

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: (bsd) final code clean up

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: add bsd driver

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: explicitly add COPYING file

Signed-off-by: Karel Zak <kzak@redhat.com>