Who hard-codes a file handle?

FD 3 would be the first FD opened after stdin, stdout, and stderr.



On 4/26/2017 6:45 PM, Tim Newsham wrote:
Do you know who wrote the /sys/src/games/blit emulator?
There's a piece of code in it that I had to comment out that
I dont understand and I want to ask about it:

        }
-       write(3, rom, sizeof(rom));
+    /* I dont know what this was for, but it spews garbage
+     * out telnet to the vax, causing it to hang.
+     */
+       //write(3, rom, sizeof(rom));
 }

I'm not sure what fd 3 is intended to be, but its the telnet socket in p9p.


On Thu, Mar 30, 2017 at 8:30 AM, David du Colombier <0intro@gmail.com> wrote:
This image is ready to be used with aiju's Blit emulator,
which is available as part of 9front.

http://code.9front.org/hg/plan9front/file/tip/sys/src/games/blit

This emulator works on most Plan 9 distributions. You just
have to copy the /sys/lib/blit and /sys/src/games/blit
directories to your system.

With the v8.ini startup file provided, the console will be
listening on port 8888/tcp once SIMH has been started.

You have to run the emulator and connect to the console:

% cd /sys/src/games/blit
% mk install
% games/blit -t tcp!hostname!8888

Once connected, enter your login and password.

login: root

Then, you can launch the mux window system:

$ /usr/blit/bin/mux

Once started, you can run any graphical program.
Binaries are located in the /usr/blit/bin directory.

For example, here is jim text editor:

http://9legacy.org/img/v8/jim_01.png

--
David du Colombier



--