summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Eric Norum <eric@skatter.usask.ca>:Joel Sherrill1998-02-171-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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......
* Patch from Ralf Corsepius to reduce the amount of memory consumed byJoel Sherrill1998-02-041-2/+6
| | | | the workspace by default.
* Ralf Corsepius noticed that generally was spelled incorrectly.Joel Sherrill1998-02-041-1/+1
|
* Added call to libc_wrapup() in _exit. This fixes a problem whereJoel Sherrill1998-02-031-0/+1
| | | | | the atexit routines on the global reentrancy structure were not invoked. But it does not seem like a 100% correct solution.
* Corrected Linux port for glibc2Joel Sherrill1998-01-303-2/+5
|
* Change to remove warning on glibc2 systems per Ralf Corsepius'sJoel Sherrill1998-01-281-1/+6
| | | | suggestion.
* Solaris port updates from Chris JohnsJoel Sherrill1998-01-234-22/+14
|
* Removed warning per Chris Johns' suggestion.Joel Sherrill1998-01-202-2/+2
|
* Added _times_r.Joel Sherrill1998-01-191-0/+7
|
* Patch from Eric Norum:Joel Sherrill1998-01-191-0/+1
| | | | | With this in place, it is possible to fdopen a TCP stream socket and getc/fprintf/etc. on the STDIO stream!
* Ralf Corsepius reported a number of missing CVS Id's:Joel Sherrill1998-01-163-3/+3
| | | | | | | | | | > RTEMS is under CVS control and has been since rtems 3.1.16 which was > around May 1995. So I just to add the $Id$. If you notice other files > with missing $Id$'s let me know. I try to keep w\up with it. Now that you have asked -- I'll attach a list of files lacking an RCS-Id to this mail. This list has been generated by a little sh-script I'll also enclose.
* Jennifer found some uninitialized variables:Joel Sherrill1998-01-161-1/+7
| | | | | | + major and minor number elements in rtems_termios_open. + arg->ioctl_return in rtems_termios_ioctl routine.
* Error reported by Duncan Smith <dds@flavors.com>:Joel Sherrill1998-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | >> >>There is a 30 day error in _TOD_Days_since_last_leap_year[2..3] >> > >> >Thanks. >> >What's the condition to hit this error? >> >Every year 4n+2 and 4n+3 ? >> >(i.e. 1998, 1999, 2002, 2003, ...) >> > >> OK: 96 97 00 01 04 05 ... >> Bad: 98 99 02 03 06 07 ... There is also a problem in newlib 1.7.x reported at the same time: >> I found another, that would strike only on 2/29/2000, or other leapyears. >> Only a problem on 1 day. >> >> Joel: FYI, there is a bug in Newlib localtime.c, localtime or (_tm_time). >> Ours is modified for dst and timezones, but the bug was in original source. >> I have not looked at the latest public source (nor do I know where to find >> it).
* Changed initial settings of first time.Joel Sherrill1998-01-061-3/+5
|
* Fixed spacing.Joel Sherrill1998-01-061-2/+2
|
* Added CONFIGURE_GNAT_KEYS to correct the number of keys configuredJoel Sherrill1997-12-231-12/+11
| | | | | | | | | for GNAT. It was the number of Ada tasks when in fact the run-time only required a single key. Also added the CONFIGURE_MAXIMUM_FAKE_ADA_TASKS constant to account for resources allocated for each non-Ada task/thread which invokes the Ada run-time implicitly through an Ada call.
* Corrected prototypes for all termios console write driver entries toJoel Sherrill1997-12-222-3/+4
| | | | properly reflect the const on the buffer pointer being passed in.
* Fixed indexing bug reported by Phil Wilshire.Joel Sherrill1997-12-071-1/+1
|
* Moved include of rtems/score/cpu.h to make sure TRUE and FALSE were defined.Joel Sherrill1997-12-061-2/+2
| | | | | This simple error resulted in the wrong FP context structure being used for hardware contexts on the m68k. This was a difficult problem to find.
* Inclusion of PC386 BSP submitted by Pedro Miguel Da Cruz Neto RomanoJoel Sherrill1997-12-011-0/+2
| | | | | <pmcnr@camoes.rnl.ist.utl.pt> and Jose Rufino <ruf@asterix.ist.utl.pt> of NavIST (http://pandora.ist.utl.pt/).
* Removed warnings.Joel Sherrill1997-11-292-1/+6
|
* Removed warning under linux port.Joel Sherrill1997-11-181-0/+5
|
* Added CONFIGURE_MEMORY_USER_OVERHEAD constant per Chris Johns request.Joel Sherrill1997-11-181-1/+6
|
* interrupt driven change from Eric NorumJoel Sherrill1997-11-152-83/+191
|
* Fixed prototypeJoel Sherrill1997-11-101-1/+1
|
* Set return code to avoid spurious errors.Joel Sherrill1997-11-101-0/+1
|
* added katsutoshi ShibuyaJoel Sherrill1997-10-241-1/+8
|
* Changed prototype of read routine.Joel Sherrill1997-10-232-14/+7
|
* Added prototype for console_reserve_resources.Joel Sherrill1997-10-231-0/+4
|
* fixed commentJoel Sherrill1997-10-231-2/+1
|
* New termios.c from Eric Norum.Joel Sherrill1997-10-232-601/+646
| | | | Added new entry point to add in per physical port resource requirements.
* Fixed a number of warnings regarding comparisons between signed andJoel Sherrill1997-10-214-9/+9
| | | | unsigned numbers.
* Fixed endian problem in printing object names.Joel Sherrill1997-10-211-0/+5
|
* Added check that return argument pointer for old_isr_handler was valid.Joel Sherrill1997-10-211-0/+3
|
* Converted from using a message queue for the raw input queue to using aJoel Sherrill1997-10-211-49/+35
| | | | ring buffer in conjunction with a counting semaphore.
* Added termios submission from Eric Norum and Katsutoshi Shibuya.Joel Sherrill1997-10-211-0/+760
|
* Added termios submission from Eric Norum and Katsutoshi Shibuya.Joel Sherrill1997-10-211-2/+22
|
* Added casts and fixed line break.Joel Sherrill1997-10-211-2/+3
|
* Fixed typo in the pointer to the license terms.Joel Sherrill1997-10-08250-500/+500
|
* Fixed comment.Joel Sherrill1997-10-061-1/+1
|
* Make Post an atomic operation.Joel Sherrill1997-10-062-2/+12
|
* Added _Thread_Enable_dispatch to already_timedout path on Wait_support.Joel Sherrill1997-10-061-2/+3
|
* If the specified time period is less than a clock tick, thenJoel Sherrill1997-10-051-1/+4
| | | | it is arbitrarily assumed to be 1 clock tick.
* fixed typoJoel Sherrill1997-09-301-1/+1
|
* Fixed typos.Joel Sherrill1997-09-301-1/+1
|
* Uncommented gettimeofday_r to resolve missing symbol.Joel Sherrill1997-09-211-2/+0
|
* Cleaned up as part of adding the Monitor test.Joel Sherrill1997-09-2117-27/+21
|
* Bug fix from Eric Norum:Joel Sherrill1997-09-191-1/+0
| | | | | | | | | | | After weeks of trying to figure why my RTEMS/KASQ server crashes now and then I found a nasty bug I introduced in adding multiple-driver support to libio. The bug only affects `add-on' driver classes (like the networking code). Old-style file descriptors were not affected. The bug cleared 32 bytes of memory (unspecified location) whenever a `close' of a socket was performed! I was clearing an IOP I hadn't allocated -- and the pointer wasn't initiallized, either!
* updatedJoel Sherrill1997-09-161-4/+11
|
* Fixed IO Manager calls to remove an argument which was used in 3.2.1Joel Sherrill1997-08-282-64/+9
| | | | but not in newer RTEMS.