1 2 // automatically generated by m4 from headers in proto subdir 3 4 5 #ifndef __SYS_IOCTL_H__ 6 #define __SYS_IOCTL_H__ 7 8 // ioctls are defined in arch.h 9 10 #include <arch.h> 11 #include <stdint.h> 12 13 extern int __LIB__ ioctl(int fd,uint16_t request,...) __smallc; 14 15 16 extern int __LIB__ vioctl(int fd,uint16_t request,void *arg) __smallc; 17 extern int __LIB__ vioctl_callee(int fd,uint16_t request,void *arg) __smallc __z88dk_callee; 18 #define vioctl(a,b,c) vioctl_callee(a,b,c) 19 20 21 22 #endif 23