env man page on Plan9

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

ENV(3)									ENV(3)

       env - environment variables

       bind #e /env


       The env device serves a one-level directory containing files with arbi‐
       trary names and contents.  The intention is that the file name  is  the
       name  of	 an  environment  variable (see rc(1)), and the content is the
       variable's current value.

       When a fork(2) system call creates a new process, both the  parent  and
       the  child  continue  to	 see exactly the same files in the env device:
       changes made in either process can be noticed by the  other.   In  con‐
       trast,  an  rfork  system  call	with  the RFENVG bit set (see fork(2))
       causes a split: initially both process groups see the same  environment
       files,  but  any changes made in one process group cannot be noticed by
       the other.  An rfork with RFCENVG splits and then clears	 the  environ‐

       The  special global environment #ec contains kernel configuration vari‐
       ables, such as those set in plan9.ini(8).  All processes see  the  same
       #ec;  its  contents are writable only by the host owner.	 [XXX actually
       everything is world writable; that's a mistake.]

       rc(1), fork(2), #c/reboot in cons(3), plan9.ini(8)


       A write starting at an offset after the current extent of a file yields
       an error instead of zero filling.

                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

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]
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