Make dev_t 32-bits and provide backwards compatibility
This commit is contained in:
@@ -77,6 +77,7 @@ struct msg_control
|
||||
#define NWIOSUDSCONN _IOW ('n', 74, struct sockaddr_un) /* connect() */
|
||||
#define NWIOSUDSSHUT _IOW ('n', 75, int) /* shutdown() */
|
||||
#define NWIOSUDSPAIR _IOW ('n', 76, dev_t) /* socketpair() */
|
||||
#define NWIOSUDSPAIROLD _IOW ('n', 76, short) /* socketpair() */
|
||||
#define NWIOSUDSACCEPT _IOW ('n', 77, struct sockaddr_un) /* accept() */
|
||||
#define NWIOSUDSCTRL _IOW ('n', 78, struct msg_control) /* sendmsg() */
|
||||
#define NWIOGUDSCTRL _IORW('n', 79, struct msg_control) /* recvmsg() */
|
||||
|
||||
@@ -42,13 +42,13 @@ struct stat {
|
||||
|
||||
|
||||
struct minix_prev_stat {
|
||||
dev_t st_dev; /* major/minor device number */
|
||||
short st_dev; /* major/minor device number */
|
||||
ino_t st_ino; /* i-node number */
|
||||
mode_t st_mode; /* file mode, protection bits, etc. */
|
||||
nlink_t st_nlink; /* # links; */
|
||||
uid_t st_uid; /* uid of the file's owner */
|
||||
short int st_gid; /* gid; TEMPORARY HACK: should be gid_t */
|
||||
dev_t st_rdev;
|
||||
short st_rdev;
|
||||
off_t st_size; /* file size */
|
||||
time_t st_atime; /* time of last access */
|
||||
time_t st_mtime; /* time of last data modification */
|
||||
|
||||
@@ -193,7 +193,7 @@ typedef int64_t daddr_t; /* disk address */
|
||||
#endif
|
||||
|
||||
|
||||
typedef short dev_t; /* device number */
|
||||
typedef uint32_t dev_t; /* device number */
|
||||
typedef uint32_t fixpt_t; /* fixed point number */
|
||||
|
||||
#ifndef gid_t
|
||||
|
||||
Reference in New Issue
Block a user