Example #1
0
        public KStdFile(Kernel kernel, KSpecialFileHandle specialFileHandle)
            : base(kernel)
        {
            UID = ( uint )specialFileHandle;
            switch (specialFileHandle)
            {
            case KSpecialFileHandle.StdIn:
                _name = "stdin";
                break;

            case KSpecialFileHandle.StdOut:
                _name = "stdout";
                break;

            case KSpecialFileHandle.StdErr:
                _name = "stderr";
                break;
            }

            _sb = new StringBuilder();
        }
Example #2
0
        public KStdFile( Kernel kernel, KSpecialFileHandle specialFileHandle )
            : base(kernel)
        {
            UID = ( uint )specialFileHandle;
            switch( specialFileHandle )
            {
                case KSpecialFileHandle.StdIn:
                    _name = "stdin";
                    break;
                case KSpecialFileHandle.StdOut:
                    _name = "stdout";
                    break;
                case KSpecialFileHandle.StdErr:
                    _name = "stderr";
                    break;
            }

            _sb = new StringBuilder();
        }