summaryrefslogtreecommitdiff
path: root/lib9p/idl
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-14 18:12:00 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-14 20:02:16 -0700
commitaf308395c6cea756c9911865137ed29e0fb34aae (patch)
treee796e418177f588824616ad7431d86a3db415ba6 /lib9p/idl
parent4e987e1b1e0aef7dc0ab634fd65b9e04969eb9c9 (diff)
lib9p: idl: .u: Pull out an `nuid` type
Diffstat (limited to 'lib9p/idl')
-rw-r--r--lib9p/idl/2005-9P2000.u.9p15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib9p/idl/2005-9P2000.u.9p b/lib9p/idl/2005-9P2000.u.9p
index 3eab4ad..0529e47 100644
--- a/lib9p/idl/2005-9P2000.u.9p
+++ b/lib9p/idl/2005-9P2000.u.9p
@@ -1,6 +1,6 @@
# lib9p/idl/2005-9P2000.u.9p - Definitions of 9P2000.u messages
#
-# Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
+# Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
# "9P2000.u" Unix extension
@@ -10,13 +10,16 @@ version "9P2000.u"
from ./2002-9P2000.9p import *
+# numeric user ID
+num nuid = 4
+
struct stat += "file_extension[s]"
- "file_owner_n_uid[4]"
- "file_owner_n_gid[4]"
- "file_last_modified_n_uid[4]"
+ "file_owner_n_uid[nuid]"
+ "file_owner_n_gid[nuid]"
+ "file_last_modified_n_uid[nuid]"
-msg Tauth += "n_uname[4]"
-msg Tattach += "n_uname[4]"
+msg Tauth += "n_uid[nuid]"
+msg Tattach += "n_uid[nuid]"
msg Rerror += "errno[4]"