bind — Inferno 1.1ed
bind
Synopsis
bind [option... ] new old mount [option... ] addr old unmount [new ] old
Description
The bind and mount commands modify the file name space of the current process and other processes in the same name space group (see pctl ). For both calls, old is the name of an existing file or directory in the current name space where the modification is to be made.For bind, new is the name of an existing file or directory in the current name space. After a successful bind, the file name old is an alias for the object originally named by new; if the modification doesn't hide it, new will also still refer to its original file. The evaluation of new (see File Name Expansion in Limbo System Modules) happens at the time of the bind, not when the binding is later used.
Both old and new must be of the same type: either both directories or both files.
bind '#c' /devFor mount, addr is a network address for the server machine. This argument should conform to the conventions described in dial .
The effects of bind and mount can be undone with the unmount command. If two arguments are given to unmount, the effect is to undo a bind or mount with the same arguments. If only one argument is given, everything bound to or mounted upon old is unmounted.
Options
Caveat
The single quotes are required around the two character sequence representing a kernel device driver since # is a special character (start-of-comment) to the Inferno shell. The single quotes are needed only when using the shell, not when programming in the Limbo language.
sys->bind("#c", "/dev/", flags);
See Also
sh , auth , Limbo System Modules , bind , dial , and Limbo Modules - Miscellaneous
infernosupport@lucent.com Copyright © 1996,Lucent Technologies, Inc. All rights reserved.