man(1) Manual page archive


     JX(9.1)                                                   JX(9.1)

     NAME
          jx - 5620 execution and stdio interpreter

     SYNOPSIS
          jx file [ argument ... ]

     DESCRIPTION
          Jx downloads the program in file to the terminal or layer on
          its controlling tty and runs it there, simulating standard
          I/O functions of stdio(3). Jx works either stand-alone or in
          a layer.

          The stdout and stderr streams, if directed to the control-
          ling terminal, will be squirreled away during execution and
          copied to the terminal after the down-loaded program exits.

          Programs to be run by jx should include <jerqio.h> and call
          exit() upon termination in order to restart the default ter-
          minal program.  Programs to be run stand-alone should be
          compiled with the -J option of 3cc(9.1). No special options
          are required for running in a layer.

          Stdio(3) functions available under jx are

               getc     putc     fopen    popen    printf   fread
               getchar  putchar  freopen  pclose   sprintf  fwrite
               fgets    puts     fclose            fprintf
                        fputs    access
                        fflush

          Unlike in stdio(3), getc and putc are functions, not macros.
          Printf has only %d, %s, %c, %o, and %x.  %u prints an
          unsigned decimal number.  %D prints an unsigned long decimal
          number.

          Since jx uses sendchar, sendnchars, and rcvchar, jx programs
          should avoid these, and use only the standard I/O routines.

     FILES
          Stand-alone programs do not receive arguments.