fix ioctl _IOR, _IOW, etc macros to avoid signed overflow (2<<30)
[musl] / src / stdlib / imaxdiv.c
1 #include <inttypes.h>
2
3 imaxdiv_t imaxdiv(intmax_t num, intmax_t den)
4 {
5         return (imaxdiv_t){ num/den, num%den };
6 }