[Libsysio-commit] HEAD: libsysio/misc init-env.sh
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-06-24 19:58:36
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32257/misc Modified Files: init-env.sh Log Message: Mods to namespace boot. Added the "open" command in order to pre-open a file on a given file descriptor. Usage: open, nm=<path>,fd=<#>,m=<#> Where: nm is the path to the file -- it should already exist fd is the desired fildes m mode flags to open -- only one of O_RDONLY, O_WRONLY, O_RDWR supported Index: init-env.sh =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/init-env.sh,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -b -B -p -r1.4 -r1.5 --- init-env.sh 5 Mar 2004 13:07:18 -0000 1.4 +++ init-env.sh 24 Jun 2004 19:58:28 -0000 1.5 @@ -29,8 +29,11 @@ export SYSIO_NAMESPACE="\ {creat, ft=chr,nm=\"/dev/stderr\",pm=0200,mm=0+2} \ {creat, ft=dir,nm=\"/dev/fd\",pm=0755,ow=0,gr=0} \ {creat, ft=chr,nm=\"/dev/fd/0\",pm=0400,mm=0+0} \ + {open, nm=\"/dev/fd/0\",fd=0,m=0} \ {creat, ft=chr,nm=\"/dev/fd/1\",pm=0200,mm=0+1} \ + {open, nm=\"/dev/fd/1\",fd=1,m=1} \ {creat, ft=chr,nm=\"/dev/fd/2\",pm=0200,mm=0+2} \ + {open, nm=\"/dev/fd/2\",fd=2,m=1} \ {cd, dir=\"$HOME\"} \ ${_extras} \ " |