modus
Menu
On this page

The entry output_liar

A writer that lies about the condition of its wiring . It takes the end of its record output past the library, answers Taken, and writes into the ring the joined record of 0 and one record of the status 200, whatever the condition of the wiring says. The console, which reads output_liar.counts |> where(status = 404), must refuse that record as a fault of the writer, never drop it in silence.

Start: start("output_liar") in the console. What a reader sees: no window; one line "output_liar: ...: as it must", or a line "output_liar: WRONG: ...". Its starter stops it.

See: Record outputs and record inputs of a module: typed streams of records between processes: The condition of a wiring in the repository

output_liar module with an entry

Hash
4985ff786e83c2dc91a3ccf3f6a4d6627b85a8eba0ee2dab9f11e0b32de1a5ff
Size
36864 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

A writer that lies about the condition of its wiring

FactValue
KindModules with an entry
Sourcesrc/modules/tests/output_liar
Boot imageyes: in the boot image, 36864 bytes in this build
Build settingsnone: the defaults of the source
Importsnone
Imported bynone

Neighbours

It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.

Exports

ExportWhat it does
entry()

entry

entry()
Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/tests/output_liar/main.odin:68

Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).

What the root service gives it

WhatValueAs the root service says
GrantsnoneA writer that writes its ring past the library and ignores the condition of its wiring: the console must refuse its record.
Other terms of its start grant setnone
Budget that it asks for
  • the least budget
No MODULE_BUDGET in its source: it asks for the least budget.

The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module; the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).