OSDN Git Service

Defined the request argument of ioctl() as unsigned long
authorJean-Pierre André <jean-pierre.andre@wanadoo.fr>
Sat, 7 Mar 2020 09:31:12 +0000 (10:31 +0100)
committerJean-Pierre André <jean-pierre.andre@wanadoo.fr>
Sat, 7 Mar 2020 09:31:12 +0000 (10:31 +0100)
commit32c27a8a4fda5205e579165baa716231efb6c1cf
treeac14110387a04f5e4e714f674049c697fa27e7a6
parent3433dd0b3c3a5b41fd6b6a85f9815ee32adbeacb
Defined the request argument of ioctl() as unsigned long

On linux the request argument of ioctl() is defined as an unsigned long,
but the fuse protocol squashes it into a signed int. As a consequence
the value received by ntfs-3g may appear as negative and different from
the value defined by the corresponding macro.
So define the request argument as unsigned long in ntfs-3g. It has
however to be fed as unsigned from fuse until the fuse protocol is
updated.
include/fuse-lite/fuse.h
include/fuse-lite/fuse_lowlevel.h
include/ntfs-3g/device.h
include/ntfs-3g/ioctl.h
libntfs-3g/unix_io.c
libntfs-3g/win32_io.c
src/lowntfs-3g.c
src/ntfs-3g.c