[Top] [Prev] [Next] [Bottom]


[Contents] [Index]

bind - configure namespace

bind: fn (source, target: string, flag: int): int;
## returns 0 if successful, -1 if unsuccessful.
For bind, source is the name of an existing file or directory in the current namespace. After a successful bind call, the file name target is an alias for the object originally named by source. If the modification doesn't hide the original, source will still refer to the original file. The evaluation of source happens at the time of the bind, not when the binding is used.

Example

This example binds the Limbo file channel server device (#s) to the target file (/chan) before a file2chan call. The #s device is bound before any files currently in the /chan directory (see Options for bind and mount ).

sys->bind("#s","/chan",sys->MBEFORE);
f2chanio := sys->file2chan("/chan", filename);



[Top] [Prev] [Next] [Bottom]

infernosupport@lucent.com
Copyright © 1997, Lucent Technologies, Inc.. All rights reserved.