]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Fix ioctl signature
authorMarc Rittinghaus <marc.rittinghaus@unikraft.io>
Thu, 20 Apr 2023 10:20:56 +0000 (12:20 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 27 Apr 2023 03:38:45 +0000 (03:38 +0000)
commit28483059e554970ed3175d3f833bf64307b8bd41
tree8c1ce8a290c8e353b50cc5295bb87ab3a955571e
parent484fc06ed7d20d80d6f8ba4f9112d1d872e85333
Fix ioctl signature

The signature of ioctl uses a signed int as second argument. This,
however, differs from the definition in Linux, glibc, and our own
implementation in Unikraft, which use an unsigned long. Since using
int has lead to all sorts of problems (e.g., overflow into sign bit),
this commit adopts unsigned long also for the musl imported
header.

Signed-off-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Reviewed-by: Andra Paraschiv <andra@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #42
patches/0020-Use-ulong-in-ioctl.patch [new file with mode: 0644]