fsproto man page on Inferno

Man page or keyword search:  
man Server   579 pages
apropos Keyword Search (all sections)
Output format
Inferno logo
[printable version]

FSPROTO(2)							    FSPROTO(2)

NAME
       FSproto:	 readprotofile,	 readprotostring  - read file system prototype
       file

SYNOPSIS
       include "fsproto.m";
       fsproto := load FSproto FSproto->PATH;

       Direntry: type (string, string, ref Sys->Dir);

       init:   fn(): string;

       readprotofile: fn(proto: string, root: string,
	       entries: chan of Direntry,
	       warnings: chan of (string, string)): string;

       readprotostring: fn(proto: string, root: string,
	       entries: chan of Direntry,
	       warnings: chan of (string, string));

DESCRIPTION
       FSproto provides an interface to read a file system prototype file,  as
       defined by proto(6).

       Init must be called before any other function in the module.

       Readprotofile  reads  a	file system prototype from the file proto.  It
       traverses the file system, starting at the given root, and each file or
       directory  encountered  that is mentioned in the prototype causes read‐
       protofile to send a Direntry tuple on the channel entries.   The	 tuple
       has the form (old,new,dir) where old is the name of the current file or
       directory, rooted at root, new is the  same  file's  name  relative  to
       root,  and dir is a reference to the Sys->Dir directory information for
       old, as produced by sys-stat(2).	 When all  files  in  root  have  been
       examined, readprotofile sends a single tuple with all nil components on
       entries.	 For each error that occurs during processing (eg,  unable  to
       open a directory) readprotofile sends a tuple (old,diag) on the channel
       warnings, naming the file and giving a diagnostic string, but  process‐
       ing continues.

       Readprotostring	reads  a  file	system prototype from the string proto
       itself.	Otherwise, its operation is the same as readprotofile.

SOURCE
       /appl/lib/fsproto.b

SEE ALSO
       fs(1), proto(6), mkfs(8)

								    FSPROTO(2)
[top]

List of man pages available for Inferno

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net