summaryrefslogtreecommitdiff
path: root/lib9p/include
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-07 15:29:21 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-07 15:29:21 -0600
commit28486154a1b3763992548bc085070f3f09e4bf09 (patch)
treeebbe770c7dea2044e9db91275b316b10957716c6 /lib9p/include
parentb160e07ac1cb13bef89c248c555a00287c7574b9 (diff)
lib9p: add DM_PERM, more newlines in bitfield headers
Diffstat (limited to 'lib9p/include')
-rw-r--r--lib9p/include/lib9p/9p.generated.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib9p/include/lib9p/9p.generated.h b/lib9p/include/lib9p/9p.generated.h
index a682908..6d44472 100644
--- a/lib9p/include/lib9p/9p.generated.h
+++ b/lib9p/include/lib9p/9p.generated.h
@@ -21,6 +21,7 @@ const char *lib9p_version_str(enum lib9p_version);
/* non-message types **********************************************************/
typedef uint32_t lib9p_dm_t;
+
#define LIB9P_DM_DIR ((lib9p_dm_t)(1<<31))
#define LIB9P_DM_APPEND ((lib9p_dm_t)(1<<30))
#define LIB9P_DM_EXCL ((lib9p_dm_t)(1<<29))
@@ -54,7 +55,10 @@ typedef uint32_t lib9p_dm_t;
#define LIB9P_DM_OTHER_W ((lib9p_dm_t)(1<<1))
#define LIB9P_DM_OTHER_X ((lib9p_dm_t)(1<<0))
+#define LIB9P_DM_PERM ((lib9p_dm_t)(0777))
+
typedef uint8_t lib9p_qt_t;
+
#define LIB9P_QT_DIR ((lib9p_qt_t)(1<<7))
#define LIB9P_QT_APPEND ((lib9p_qt_t)(1<<6))
#define LIB9P_QT_EXCL ((lib9p_qt_t)(1<<5))
@@ -63,9 +67,11 @@ typedef uint8_t lib9p_qt_t;
#define LIB9P_QT_TMP ((lib9p_qt_t)(1<<2))
#define LIB9P_QT_SYMLINK ((lib9p_qt_t)(1<<1)) /* 9P2000.u */
#define _LIB9P_QT_UNUSED_0 ((lib9p_qt_t)(1<<0))
+
#define LIB9P_QT_FILE ((lib9p_qt_t)(0))
typedef uint8_t lib9p_o_t;
+
#define _LIB9P_O_UNUSED_7 ((lib9p_o_t)(1<<7))
#define LIB9P_O_RCLOSE ((lib9p_o_t)(1<<6))
#define _LIB9P_O_UNUSED_5 ((lib9p_o_t)(1<<5))
@@ -74,6 +80,7 @@ typedef uint8_t lib9p_o_t;
#define _LIB9P_O_UNUSED_2 ((lib9p_o_t)(1<<2))
#define LIB9P_O_rwx_1 ((lib9p_o_t)(1<<1))
#define LIB9P_O_rwx_0 ((lib9p_o_t)(1<<0))
+
#define LIB9P_O_READ ((lib9p_o_t)(0))
#define LIB9P_O_WRITE ((lib9p_o_t)(1))
#define LIB9P_O_RDWR ((lib9p_o_t)(2))