#else
/* Debugging enabled -- verify assertions at run time. */
#ifdef _ANSI
-#define __str(x) # x
-#define __xstr(x) __str(x)
+#define __makestr(x) # x
+#define __xstr(x) __makestr(x)
_PROTOTYPE( void __bad_assertion, (const char *_mess) );
#define assert(expr) ((expr)? (void)0 : \
#include <minix/ioctl.h>
-#define CIOCGETTIME _IOR('c', 1, u32_t)
-#define CIOCGETTIMEY2K _IOR('c', 2, u32_t)
+#define CIOCGETTIME _IOR('c', 1, struct tm)
+#define CIOCGETTIMEY2K _IOR('c', 2, struct tm)
#define CIOCSETTIME _IOW('c', 3, u32_t)
#define CIOCSETTIMEY2K _IOW('c', 4, u32_t)
#define DIOCSETP _IOW('d', 3, struct partition)
#define DIOCGETP _IOR('d', 4, struct partition)
#define DIOCEJECT _IO ('d', 5)
-#define DIOCTIMEOUT _IOW('d', 6, int)
+#define DIOCTIMEOUT _IORW('d', 6, int)
#define DIOCOPENCT _IOR('d', 7, int)
#endif /* _S_I_DISK_H */
#include <minix/ioctl.h>
#define MIOCRAMSIZE _IOW('m', 3, u32_t)
-#define MIOCMAP _IOR('m', 4, struct mapreq)
-#define MIOCUNMAP _IOR('m', 5, struct mapreq)
+#define MIOCMAP _IOW('m', 4, struct mapreq)
+#define MIOCUNMAP _IOW('m', 5, struct mapreq)
#endif /* _S_I_MEMORY_H */