OSDN Git Service

linux-user: Add support for FDFMT<BEG|TRK|END> ioctls
authorAleksandar Markovic <amarkovic@wavecomp.com>
Thu, 16 Jan 2020 22:49:47 +0000 (23:49 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 22 Jan 2020 14:13:49 +0000 (15:13 +0100)
commit08e3ce59fcf4a83c5be078e9783161310c769c20
tree6cbfd98aad6e7c44e33e56c2e8031b2bea43f23b
parent81eb1a369da5f9cb282b65f1221899cc07711df2
linux-user: Add support for FDFMT<BEG|TRK|END> ioctls

FDFMTBEG, FDFMTTRK, and FDFMTEND ioctls provide means for controlling
formatting of a floppy drive.

FDFMTTRK's third agrument is a pointer to the structure:

struct format_descr {
    unsigned int device,head,track;
};

defined in Linux kernel header <linux/fd.h>.

Since all fields of the structure are of type 'unsigned int', there is
no need to define "target_format_descr".

FDFMTBEG and FDFMTEND ioctls do not use the third argument.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <1579214991-19602-9-git-send-email-aleksandar.markovic@rt-rk.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/ioctls.h
linux-user/syscall_defs.h
linux-user/syscall_types.h