[fa.info-vax] DEC C system

info-vax@ucbvax.ARPA (02/16/85)

From: Rudy.Nedved@CMU-CS-A.ARPA

Hi. Forgive me if someone has already sent information about this
in the past. I am relatively new user of the DEC C compiler and
run-time system.

I am trying to get a handle on the following pieces of information:

   a) Is there a "quick way" to translate a "unix" file descriptor
      (returned by open/creat or by fileno(<FILE *>)) into an
      active QIO channnel? My definition of quick is avoiding "system
      calls"....I am hoping there is some known table hidden but
      accessible in the run-time library. I am trying to write some
      "companion" routines to the provided "unix" primitives.

   b) Does anyone know the parameters to c$$doprint? Is this similiar to
      _doprnt in Unix land or are the names similiar to the confuse
      the hackers like me?

   c) Is there a way to tell the "unix" primitives to not play with input
      and output to the terminal. I put the terminal into passall mode and
      noecho but discovered the input routines (fgetc(stdin)) waits until
      carriage return is hit (the stdin->_cnt goes up) and then returns the
      input but with the carriage return translated to a linefeed. The same
      "line oriented" action happens on output. I agree with the behaviour
      system it makes perfect sense in an RMS enviroment but I am dealing
      with an interactive terminal talking to a human and humans are not
      files.....

Thanks,
-Rudy