~/bend-docscommunity

src/vmm/hostfiles.bend checks

raw source on the hub · import 0x09bd79c7faef22310b6d041f523d5cb2/src/vmm/hostfiles.bend as Hostfiles

2 imports
import Base
import ../lib/u64.bend as U

Types

type Listen source · line 29 · raw

Data

Definitions

def Files.private source · line 23 · raw

U32

def Files.private_dir source · line 26 · raw

U32

def Files.listen.sock source · line 37 · raw

@live:Bool -> Listen

kind: 0 nothing, 1 a socket, 2 anything else (as lstat sees it, so a symlink is anything else); live: a process accepted a connection on it.

def Files.listen source · line 44 · raw

@+kind:U32 -> @live:Bool -> Listen

def Files.listen.why source · line 48 · raw

@l:Listen -> String

Why a listen was refused, for the error message; "" when it may go on.

def Files.listen.replace source · line 59 · raw

@l:Listen -> Bool

def Files.dir_trusted source · line 68 · raw

@+kind:U32 -> @mine:Bool -> @+perm:U32 -> Bool

kind: 0 nothing, 1 a directory, 2 anything else (lstat); mine: this user's; perm: its permission bits.

def Files.hex2 source · line 74 · raw

@+b:U32 -> String

A VM's socket in the LAN directory: its MAC, two lowercase hex digits a byte joined by "-", then ".sock" (host/hvf.c names the sockets it sends to the same way).

def Files.mac.go source · line 77 · raw

@bs:List<&2, U32> -> String

def Files.lan_sock source · line 86 · raw

@+mac:List<&2, U32> -> String