summaryrefslogtreecommitdiffstats
path: root/cpukit (unfollow)
Commit message (Collapse)AuthorFilesLines
1998-02-17Patch from Eric Norum <eric@skatter.usask.ca>:Joel Sherrill1-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......
1998-02-04Patch from Ralf Corsepius to reduce the amount of memory consumed byJoel Sherrill1-2/+6
the workspace by default.
1998-02-04Ralf Corsepius noticed that generally was spelled incorrectly.Joel Sherrill1-1/+1
1998-02-03Added call to libc_wrapup() in _exit. This fixes a problem whereJoel Sherrill1-0/+1
the atexit routines on the global reentrancy structure were not invoked. But it does not seem like a 100% correct solution.
1998-01-30Corrected Linux port for glibc2Joel Sherrill3-2/+5
1998-01-28Change to remove warning on glibc2 systems per Ralf Corsepius'sJoel Sherrill1-1/+6
suggestion.
1998-01-23Solaris port updates from Chris JohnsJoel Sherrill4-22/+14
1998-01-20Removed warning per Chris Johns' suggestion.Joel Sherrill2-2/+2
1998-01-19Added _times_r.Joel Sherrill1-0/+7
1998-01-19Patch from Eric Norum:Joel Sherrill1-0/+1
With this in place, it is possible to fdopen a TCP stream socket and getc/fprintf/etc. on the STDIO stream!
1998-01-16Ralf Corsepius reported a number of missing CVS Id's:Joel Sherrill3-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.
1998-01-16Jennifer found some uninitialized variables:Joel Sherrill1-1/+7
+ major and minor number elements in rtems_termios_open. + arg->ioctl_return in rtems_termios_ioctl routine.
1998-01-15Error reported by Duncan Smith <dds@flavors.com>:Joel Sherrill1-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).
1998-01-06Changed initial settings of first time.Joel Sherrill1-3/+5
1998-01-06Fixed spacing.Joel Sherrill1-2/+2
1997-12-23Added CONFIGURE_GNAT_KEYS to correct the number of keys configuredJoel Sherrill1-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.
1997-12-22Corrected prototypes for all termios console write driver entries toJoel Sherrill2-3/+4
properly reflect the const on the buffer pointer being passed in.
1997-12-07Fixed indexing bug reported by Phil Wilshire.Joel Sherrill1-1/+1
1997-12-06Moved include of rtems/score/cpu.h to make sure TRUE and FALSE were defined.Joel Sherrill1-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.
1997-12-01Inclusion of PC386 BSP submitted by Pedro Miguel Da Cruz Neto RomanoJoel Sherrill1-0/+2
<pmcnr@camoes.rnl.ist.utl.pt> and Jose Rufino <ruf@asterix.ist.utl.pt> of NavIST (http://pandora.ist.utl.pt/).
1997-11-29Removed warnings.Joel Sherrill2-1/+6
1997-11-18Removed warning under linux port.Joel Sherrill1-0/+5
1997-11-18Added CONFIGURE_MEMORY_USER_OVERHEAD constant per Chris Johns request.Joel Sherrill1-1/+6
1997-11-15interrupt driven change from Eric NorumJoel Sherrill2-83/+191
1997-11-10Fixed prototypeJoel Sherrill1-1/+1
1997-11-10Set return code to avoid spurious errors.Joel Sherrill1-0/+1
1997-10-24added katsutoshi ShibuyaJoel Sherrill1-1/+8
1997-10-23Changed prototype of read routine.Joel Sherrill2-14/+7
1997-10-23Added prototype for console_reserve_resources.Joel Sherrill1-0/+4
1997-10-23fixed commentJoel Sherrill1-2/+1
1997-10-23New termios.c from Eric Norum.Joel Sherrill2-601/+646
Added new entry point to add in per physical port resource requirements.
1997-10-21Fixed a number of warnings regarding comparisons between signed andJoel Sherrill4-9/+9
unsigned numbers.
1997-10-21Fixed endian problem in printing object names.Joel Sherrill1-0/+5
1997-10-21Added check that return argument pointer for old_isr_handler was valid.Joel Sherrill1-0/+3
1997-10-21Converted from using a message queue for the raw input queue to using aJoel Sherrill1-49/+35
ring buffer in conjunction with a counting semaphore.
1997-10-21Added termios submission from Eric Norum and Katsutoshi Shibuya.Joel Sherrill1-0/+760
1997-10-21Added termios submission from Eric Norum and Katsutoshi Shibuya.Joel Sherrill1-2/+22
1997-10-21Added casts and fixed line break.Joel Sherrill1-2/+3
1997-10-08Fixed typo in the pointer to the license terms.Joel Sherrill250-500/+500
1997-10-06Fixed comment.Joel Sherrill1-1/+1
1997-10-06Make Post an atomic operation.Joel Sherrill2-2/+12
1997-10-06Added _Thread_Enable_dispatch to already_timedout path on Wait_support.Joel Sherrill1-2/+3
1997-10-05If the specified time period is less than a clock tick, thenJoel Sherrill1-1/+4
it is arbitrarily assumed to be 1 clock tick.
1997-09-30fixed typoJoel Sherrill1-1/+1
1997-09-30Fixed typos.Joel Sherrill1-1/+1
1997-09-21Uncommented gettimeofday_r to resolve missing symbol.Joel Sherrill1-2/+0
1997-09-21Cleaned up as part of adding the Monitor test.Joel Sherrill17-27/+21
1997-09-19Bug fix from Eric Norum:Joel Sherrill1-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!
1997-09-16updatedJoel Sherrill1-4/+11
1997-08-28Fixed IO Manager calls to remove an argument which was used in 3.2.1Joel Sherrill2-64/+9
but not in newer RTEMS.