styx2000.extrautil.mischelpers

This module contains a set of various useful helpers for miscellaneous stuff.

Members

Functions

createQid
auto createQid(STYX_QID_TYPE type, uint vers, ulong path)

Create Qid object from Qid type, version and path

createQid
auto createQid(DirEntry de)

Create Qid object from DirEntry

createQid
auto createQid(string path)

Convenient helper for creating Qid from path string

createStat
auto createStat(DirEntry de, ushort type, ushort dev, string uid, string gid, string muid)

Create Stat object from DirEntry

createStat
auto createStat(string path, ushort type, ushort dev, string uid, string gid, string muid)

Convenient helper for creating Stat object from path string

fromPlan9Mode
auto fromPlan9Mode(string mode)

Translates string mode (e.g drwxrwxr-x) to integer value

fromPlan9Permissions
auto fromPlan9Permissions(string mode)

Translates string mode (e.g drwxrwxr-x) to Perm object

toPlan9Chunk
auto toPlan9Chunk(Data data, uint count)

Translate data chunks to their string representation (string are the same as in Plan 9)

toPlan9Message
auto toPlan9Message(StyxMessage msg)

Translate Plan 9 Message to standard output form in Plan 9

toPlan9Mode
auto toPlan9Mode(uint mode)

Translate integer mode (such as 0755) to readable permission string (e.g drwxrwxr-x for 0755)

toPlan9Mode
auto toPlan9Mode(Perm perm)

Translates Perm object to permission string (e.g drwxrwxr-x)

toPlan9Nwname
auto toPlan9Nwname(Nwname nwname)

Translate Nwname to his string representation (string are the same as in Plan 9)

toPlan9Nwqid
auto toPlan9Nwqid(Nwqid nwqid)

Translate Nwqid to his string representation (string are the same as in Plan 9)

toPlan9Permissions
auto toPlan9Permissions(Perm perm)

Translate permission to his string representation (string are the same as in Plan 9)

toPlan9Qid
auto toPlan9Qid(T qid)

Translate Qid to his string representation (string are the same as in Plan 9)

toPlan9Stat
auto toPlan9Stat(Stat stat)

Translate Stat to his string representation (string are the same as in Plan 9)

Meta

Authors

Oleg Bakharev, Ilya Pertsev