diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/inferno/man4/logfile.4 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/inferno/man4/logfile.4')
| -rw-r--r-- | static/inferno/man4/logfile.4 | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/static/inferno/man4/logfile.4 b/static/inferno/man4/logfile.4 new file mode 100644 index 00000000..ee05f38b --- /dev/null +++ b/static/inferno/man4/logfile.4 @@ -0,0 +1,45 @@ +.TH LOGFILE 4 +.SH NAME +logfile \- memory-based append-only circular storage buffer +.SH SYNOPSIS +.B logfile +.RB [ \-\fIsize\fP ] +.I \fIfile\fP +.SH DESCRIPTION +.I Logfile +creates a name at +.I file +(the containing directory must already exist). +Each write to +.I file +appends the written data up to a maximum of +.I size +bytes; subsequent writes erase the existing +data in a circular fashion. A read from +.I file +will return any currently stored data, if any; +if there is none, then it will block until more +data becomes available. +Multiple readers will receive the data independently +of one another. If a writing process is consistently +producing data faster than a reading process, then +the data read will have some bytes elided; a write +is never blocked. +.SH SOURCE +.B /appl/cmd/logfile.b +.SH SEE ALSO +.IR wm-logwindow (1), +.IR sys-file2chan (2) +.SH BUGS +Restrictions on +.IR sys-file2chan (2) +mean that the +.I logfile +process will not terminate automatically +when its file is removed or unmounted. +.PP +There is no indication to a reader of any +missing data. +.PP +It is not possible to do a non-blocking +read of the log file. |
