Displaying 1 result from an estimated 1 matches for "perm_type".
Did you mean:
mem_type
2011 Mar 30
2
[PATCH] xenstore-stat v2
...h] [-n NR] key", progname, mstr);
+ case MODE_stat:
+ mstr = incl_mode ? "stat " : "";
+ errx(1, "Usage: %s %s[-h] [-s] key [...]", progname, mstr);
}
}
@@ -286,6 +290,52 @@ do_watch(struct xs_handle *xsh, int max_events)
}
}
+static const char *
+perm_type_str(int perm_type)
+{
+ switch (perm_type) {
+ case XS_PERM_WRITE:
+ return "-w";
+ case XS_PERM_READ:
+ return "r-";
+ case XS_PERM_READ|XS_PERM_WRITE:
+ return "rw";
+ case XS_PERM_NONE:
+ return "--";
+ default...