summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc (unfollow)
Commit message (Collapse)AuthorFilesLines
1998-03-20Removed blank line.Joel Sherrill1-1/+1
1998-02-17updated copyright to 1998Joel Sherrill10-10/+10
1998-02-17Patch from Eric Norum <eric@skatter.usask.ca>:Joel Sherrill2-3/+10
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-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-30Big patch form Ralf Corsepius described in this email:Joel Sherrill1-4/+2
Here is the result of my nightly work to get RTEMS_ROOT=$srcdir working with different shells and relative/absolute paths. What I did is relatively simple in principle: Instead of setting RTEMS_ROOT in configure.in and then let configure substitute @RTEMS_ROOT@ inside the Makefiles, I now let each Makefile set RTEMS_ROOT from each Makefile's @top_srcdir@ value. The difference is subtile, but with enormous side effects: - If RTEMS_ROOT is set in configure, then the same single value will be propagated to all Makefiles. This breaks using relative paths, as the relative path to the root of the source tree is used inside of all subdirectory Makefiles. - Now each Makefile.in sets RTEMS_ROOT = @top_srcdir@. top_srcdir is computed individually by configure for each single Makefile.in, hereby receiving the correct value, no matter if relative or absolute paths are used. To get this working, I needed to remove setting RTEMS_ROOT from target.cfg.in, because this overrides the value of RTEMS_ROOT from each individual Makefile. Furthermore, I removed RTEMS_CUSTOM from the Makefiles and replaced all "include $(RTEMS_CUSTOM)" directives with"include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP)". Perhaps you don't like this, but I think, to have one variable less is clearer and easier to understand than having several variables refering to the next one. I enclose a small patch to this mail, which - fixes the config.h problem (to finally clearify misunderstands) - removes assignment/subsitution of RTEMS_ROOT from configure.in - contains a workaround for the application Makefile's RTEMS_ROOT problem (reported by Eric) - removes some unused lines from the toplevel Makefile.in - removes assignment of RTEMS_ROOT from make/target.cfg.in
1998-01-30Corrected Linux port for glibc2Joel Sherrill2-1/+3
1998-01-23Solaris port updates from Chris JohnsJoel Sherrill2-6/+8
1998-01-19Added _times_r.Joel Sherrill1-0/+7
1998-01-19more info from EricJoel Sherrill1-0/+6
1998-01-19Patch from Eric Norum:Joel Sherrill3-7/+25
With this in place, it is possible to fdopen a TCP stream socket and getc/fprintf/etc. on the STDIO stream!
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-06Changed initial settings of first time.Joel Sherrill1-3/+5
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-10Modified a lot of files to take a first cut at supporting building fromJoel Sherrill1-1/+4
any directory in the build tree. The only variable which must be set before the command "gmake" is invoked is RTEMS_BSP (e.g. RTEMS_BSP=erc32).
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-18Removed warning under linux port.Joel Sherrill1-0/+5
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-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-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 Sherrill2-1/+761
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 Sherrill11-22/+22
1997-10-08Removed include directory at "build" point and the link of this directoryJoel Sherrill1-3/+3
to lib/include. Went to using a PROJECT_INCLUDE variable.
1997-09-21Uncommented gettimeofday_r to resolve missing symbol.Joel Sherrill1-2/+0
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-08-28Added RTEMS_IO_ERROR status code.Joel Sherrill1-0/+1
1997-08-27Added error numbers and changed default error code from 0 to -1 forJoel Sherrill1-7/+9
error number mapping.
1997-08-22Moved reentrant wrappers into their own file.Joel Sherrill4-5/+94
1997-08-22Fixed iop/memory leak bug reported by Dan Dickey.Joel Sherrill1-1/+6
1997-08-01Added include of termios.h which was accidentally left out.Joel Sherrill1-0/+2
1997-08-01Katsutoshi Shibuya (shibuya@mxb.meshnet.or.jp)of BU-Denken Co., Ltd.Joel Sherrill4-1/+78
(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.
1997-04-22updated with new license information per Tony Bennett.Joel Sherrill1-10/+3
1997-04-22headers updated to reflect new style copyright notice as partJoel Sherrill10-50/+50
of switching to the modified GNU GPL.
1997-04-16fixed spacingJoel Sherrill1-1/+3
1997-04-09added code to prevent attempts to clean up the library when rtems isJoel Sherrill1-0/+8
down.
1997-04-09Added ka9q tcpip stack and network driver for the gen68360. This effortJoel Sherrill2-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.
1997-04-07removed noreturn attribute to eliminate warnings.Joel Sherrill1-2/+7
1997-04-01This set of changes is the build of what was required to convert toJoel Sherrill1-0/+62
GNU autoconf. This is the first large step in allowing an RTEMS user to perform a one-tree build (per crossgcc FAQ) including RTEMS in the build process. With this change RTEMS is configured in built in the same style as the GNU tools, yet retains the basic structure of its traditional Makefiles (ala Tony Bennett). Jiri Gaisler (jgais@wd.estec.esa.nl) deserves (and received) a big thank you for doing this. There are still issues to be resolved but as of this commit, all target which can be built on a linux host have been using a modified version of the source Jiri submitted. This source was merged and most targets built in the tree before this commit. There are some issues which remain to be resolved but they are primarily related to host OS dependencies, script issues, the use of gawk for hack_specs, and the dependence on gcc snapshots. These will be resolved.
1997-03-10added include of rtems.h so the proper macro definitions would be present.Joel Sherrill1-0/+2
1997-03-10made some of this conditional on unix libJoel Sherrill1-2/+5
1997-01-29Modifications to make go32 build using new i386-go32-rtems toolsetJoel Sherrill2-4/+7
and gcc 2.8.x -specs options.
1997-01-29Merged newlib's libgloss support for rtems into this directory. ThisJoel Sherrill6-36/+162
should simplify the build process.
1997-01-08removed assert() for stat on non-devices. Now it returns -1. ThisJoel Sherrill1-2/+1
makes gnat pass about 55 more tests in the acvc.
1996-11-08Added asserts for unhandled conditions which need to result in errorJoel Sherrill2-1/+17
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.