Commit Graph

16 Commits

Author SHA1 Message Date
Joel Sherrill
725f310e09 Removed blank line. 1998-03-20 16:28:36 +00:00
Joel Sherrill
60b791ada1 updated copyright to 1998 1998-02-17 23:46:28 +00:00
Joel Sherrill
9646d5bea1 Patch from Eric Norum <eric@skatter.usask.ca>:
I've gone through and cleaned up the TFTP driver so that it fits
  into the libio system.  Here's the comment from the new driver:

  /*
   * Usage:
   *
   * To open `/bootfiles/image' on `hostname' for reading:
   *         fd = open ("/TFTP/hostname/bootfiles/image", O_RDONLY);
   *
   * The `hostname' can be a symbolic name or four
   * dot-separated decimal values.
   *
   * To open a file on the host which supplied the BOOTP
   * information just leave the `hostname' part empty:
   *         fd = open ("/TFTP//bootfiles/image", O_RDONLY);
   *
   */

  You can `fopen' TFTP files the same way:

                  fp = fopen (fullname, "r");
                  nread = fread (cbuf, sizeof cbuf[0], sizeof cbuf, fp);

  The diff's are included below.  I've also modified the TFTP demo
  program and the bootstrap PROM example.  They should be on my ftp
  site `soon'.

  The one thing I don't like is the way I had to do an end-run on the
  libio routines to get errno passed back from my driver to the
  application (since there are some errno codes that don't map to RTEMS
  status codes).  My approach was to set errno in the driver and have
  the driver routine return an RTEMS status code that I `know' isn't in
  the errno_assoc[] in libio.c.

  Perhaps there should be an RTEMS_TRANPARENT_ERRNO status code (or
  something similar) which driver routines could return to indicate
  that the driver routine has set errno and that the libio routines
  shouldn't attempt to map the returned status code to errno.

  Actually, I think the entire I/O system needs looking at -- as
  you've already mentioned.  The hacks I've dropped in to syscalls.c to
  make fstat work, for example, are *not* shining examples of good
  code......
1998-02-17 18:46:38 +00:00
Joel Sherrill
866c465f53 more info from Eric 1998-01-19 22:27:56 +00:00
Joel Sherrill
4dc0fd685b Patch from Eric Norum:
With this in place, it is possible to fdopen a TCP stream socket and
  getc/fprintf/etc. on the STDIO stream!
1998-01-19 22:22:25 +00:00
Joel Sherrill
98e4ebf594 Fixed typo in the pointer to the license terms. 1997-10-08 15:45:54 +00:00
Joel Sherrill
03f2154e51 headers updated to reflect new style copyright notice as part
of switching to the modified GNU GPL.
1997-04-22 17:20:27 +00:00
Joel Sherrill
334b01f17e fixed spacing 1997-04-16 17:46:26 +00:00
Joel Sherrill
41c581549b made some of this conditional on unix lib 1997-03-10 19:38:06 +00:00
Joel Sherrill
dcec5a4d60 Merged newlib's libgloss support for rtems into this directory. This
should simplify the build process.
1997-01-29 00:29:25 +00:00
Joel Sherrill
c6126e57fb removed assert() for stat on non-devices. Now it returns -1. This
makes gnat pass about 55 more tests in the acvc.
1997-01-08 16:21:38 +00:00
Joel Sherrill
331d9e3b91 Added asserts for unhandled conditions which need to result in error
statuses being returned to gnat runtime in order for it to raise
use_errors.  This was needed to identify the places in gnat's runtime
which needed to be addressed.
1996-11-08 20:08:52 +00:00
Joel Sherrill
84147e4fe4 Removed comment about a confusion on newlib buffering. 1996-01-17 20:15:41 +00:00
Joel Sherrill
217e398585 Modified fstat and stat to be consistent with isatty in that all three
now pretend that everything is a tty.  This insures that newlib makes
the console output line buffered.
1996-01-17 20:13:01 +00:00
Joel Sherrill
b06e68ef1f Numerous miscellaneous features incorporated from Tony Bennett
(tbennett@divnc.com) including the following major additions:

  + variable length messages
  + named devices
  + debug monitor
  + association tables/variables
1995-08-17 19:51:51 +00:00
Joel Sherrill
ac7d5ef06a Initial revision 1995-05-11 17:39:37 +00:00