Support fdisk on bigendian systems. Does the necessary byte swabbing to
authorrahnds <rahnds@openbsd.org>
Mon, 27 Jan 1997 21:57:34 +0000 (21:57 +0000)
committerrahnds <rahnds@openbsd.org>
Mon, 27 Jan 1997 21:57:34 +0000 (21:57 +0000)
commitaa658d1c5b35fe48e7bb5632ca62e36f63f90bba
treecf34b9322a37df4a231a503fe2a5c1a3e13b8635
parent9374fd97c92df0be64a75416ecd88c6275ea6135
Support fdisk on bigendian systems. Does the necessary byte swabbing to
read and write the fdisk label. Added powerpc to systems to build this for.
Currently uses local functions getshort, putshort, getlong, and putlong.
These functions probably should be moved and renamed. Something like
htoles, letohs, htolel, letohl, or htole16, htole32 should be used instead.
sbin/Makefile
sbin/fdisk/fdisk.c