summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* updated copyright to 1998Joel Sherrill1998-02-1717-17/+17
|
* 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......
* 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-302-1/+3
|
* Solaris port updates from Chris JohnsJoel Sherrill1998-01-232-6/+8
|
* 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!
* 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.
* Changed initial settings of first time.Joel Sherrill1998-01-061-3/+5
|
* 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.
* 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 warning under linux port.Joel Sherrill1997-11-181-0/+5
|
* 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.
* 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-0819-38/+38
|
* Uncommented gettimeofday_r to resolve missing symbol.Joel Sherrill1997-09-211-2/+0
|
* 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!
* Added RTEMS_IO_ERROR status code.Joel Sherrill1997-08-281-0/+1
|
* Added error numbers and changed default error code from 0 to -1 forJoel Sherrill1997-08-271-7/+9
| | | | error number mapping.
* Moved reentrant wrappers into their own file.Joel Sherrill1997-08-221-4/+2
|
* Fixed iop/memory leak bug reported by Dan Dickey.Joel Sherrill1997-08-221-1/+6
|
* new implementation of mc68681.hJoel Sherrill1997-08-041-72/+291
|
* moved from main include directoryJoel Sherrill1997-08-045-0/+478
|
* Katsutoshi Shibuya (shibuya@mxb.meshnet.or.jp)of BU-Denken Co., Ltd.Joel Sherrill1997-08-012-0/+191
| | | | | | | (Sapporo, Japan) submitted the extended console driver for the MVME162LX BSP and the POSIX tcsetattr() and tcgetattr() routines. This device driver supports four serial ports, cooked IO, and provides a portable base for Zilog 8530 based console drivers.
* updated with new license information per Tony Bennett.Joel Sherrill1997-04-221-10/+3
|
* headers updated to reflect new style copyright notice as partJoel Sherrill1997-04-2213-63/+63
| | | | of switching to the modified GNU GPL.
* added code to prevent attempts to clean up the library when rtems isJoel Sherrill1997-04-091-0/+8
| | | | down.
* Added ka9q tcpip stack and network driver for the gen68360. This effortJoel Sherrill1997-04-092-14/+114
| | | | | | | | | | | | | was done based on the 3.6.0 release and had to be autoconf'ed locally. It is turned on is the bsp enables it and it is not explicitly disabled via the configure option --disable-tcpip. As many warnings as possible were removed locally after the code was merged. Only the gen68360 and mvme136 bsps were compiled this way. The ka9q port and network driver were submitted by Eric Norum (eric@skatter.USask.Ca). The network demo programs are not included in the tree at this point.
* removed noreturn attribute to eliminate warnings.Joel Sherrill1997-04-071-2/+7
|
* added include of rtems.h so the proper macro definitions would be present.Joel Sherrill1997-03-101-0/+2
|
* Modifications to make go32 build using new i386-go32-rtems toolsetJoel Sherrill1997-01-292-4/+7
| | | | and gcc 2.8.x -specs options.
* Merged newlib's libgloss support for rtems into this directory. ThisJoel Sherrill1997-01-294-32/+41
| | | | should simplify the build process.
* Added asserts for unhandled conditions which need to result in errorJoel Sherrill1996-11-081-1/+8
| | | | | | 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.
* added ENOSYS supportJoel Sherrill1996-10-151-0/+1
|
* dummy function added to satisfy ANSIJoel Sherrill1996-09-182-0/+20
|
* modified to support non-GNU compilers and to use calloc rather thanJoel Sherrill1996-09-181-3/+20
| | | | malloc for per-thread reentrancy structure allocation.
* added malloc_walkJoel Sherrill1996-09-181-4/+35
| | | | miscellaneous corrections in casting.
* added prototype for malloc_walkJoel Sherrill1996-09-181-0/+1
|
* get_errno: no longer needed by gnat runtimeJoel Sherrill1996-08-061-0/+4
|
* another attempt at the rtems_posix_api ifdefJoel Sherrill1996-07-031-4/+3
|