. renamed __str to __makestr to allow for g++
. changed some CMOS ioctl codes to have correct sizes (struct tm instead of u32_t), a disk ioctl code from W to RW, and memory ioctl codes from R to W, needed for proper matching of grant in FS
This commit is contained in:
parent
aaca17c36d
commit
cfb984e9bd
|
@ -25,8 +25,8 @@
|
|||
#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 : \
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
#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)
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#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 */
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#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 */
|
||||
|
|
Loading…
Reference in a new issue