Update header files to support UNIX Domain Sockets. Contributed by Thomas Cort
This commit is contained in:
@@ -131,6 +131,7 @@
|
||||
|
||||
/* Flag bits for i_mode in the inode. */
|
||||
#define I_TYPE 0170000 /* this field gives inode type */
|
||||
#define I_UNIX_SOCKET 0140000 /* unix domain socket */
|
||||
#define I_SYMBOLIC_LINK 0120000 /* file is a symbolic link */
|
||||
#define I_REGULAR 0100000 /* regular file, not dir or special */
|
||||
#define I_BLOCK_SPECIAL 0060000 /* block special file */
|
||||
|
||||
@@ -34,6 +34,7 @@ enum dev_style { STYLE_NDEV, STYLE_DEV, STYLE_DEVA, STYLE_TTY, STYLE_CTTY,
|
||||
#define LOG_MAJOR 15 /* 15 = /dev/klog (log driver) */
|
||||
#define RANDOM_MAJOR 16 /* 16 = /dev/random (random driver) */
|
||||
#define HELLO_MAJOR 17 /* 17 = /dev/hello (hello driver) */
|
||||
#define UDS_MAJOR 18 /* 18 = /dev/uds (pfs) */
|
||||
|
||||
|
||||
/* Minor device numbers for memory driver. */
|
||||
|
||||
@@ -117,5 +117,7 @@ typedef struct {
|
||||
|
||||
#define NREQS 33
|
||||
|
||||
#define IS_VFS_RQ(type) (((type) & ~0xff) == VFS_BASE)
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user