summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc (unfollow)
Commit message (Collapse)AuthorFilesLines
1998-07-28Closed window thanks to patch from Eric Norum.Joel Sherrill1-5/+3
1998-07-17Initialized tty->refcount to 0. When (for whatever reason) malloc()Joel Sherrill1-0/+3
returned a buffer which was not zero-filled, the reference count was not correct. When the application exitted, the "lastClose" handler was not being called to flush the output. This problem had manifested itself on a variety of platforms. The function rtems_termios_dequeue_characters() incorrectly incremented the buffer pointers when it was invoked and there were no characters in the ring buffer. This problem had also manifested itself on a variety of platforms. The symptom was a strange repeating of the data in the transmitter buffer when the transmitter serial device was supposed to go idle.
1998-07-17Patch from Dario Alcocer <alcocer@connectnet.com>. His comments:Joel Sherrill1-0/+2
Haven't had a chance to do an extensive shake-out of 980710, but it builds just fine on FreeBSD 2.2.5 (after termios is fixed using the attached patch), and the tests run fine. FYI: FreeBSD doesn't support System V IPC out of the box, but one only needs to add three options to the kernel build configuration file, recompile the kernel, and you're ready.
1998-07-06New file to satisfy readdir() family.Joel Sherrill2-1/+15
1998-07-01Added _stat_r and changed spacing.Joel Sherrill1-33/+47
1998-06-18Added freebsd support from Dario Alcocer <alcocer@connectnet.com>.Joel Sherrill1-0/+14
1998-06-18Corrected so it returns the correct date. Previously was getting the numberJoel Sherrill1-11/+28
of seconds since 1988 from RTEMS and not adding in the 1970-1988 correction factor. Plus removed checks for data/time set since POSIX does not permit this call to fail. GNAT 3.12 depends on this.
1998-06-02Added some missing files per Eric Norum.Joel Sherrill1-1/+1
1998-05-22Added tcdrain(), cfgetospeed(0, cfsetospeed(), cfgetispeed(), andJoel Sherrill4-6/+110
cfsetispeed().
1998-05-20Patch to add return status to rtems_termios_enqueue_raw_characters fromJoel Sherrill2-2/+4
Eric Norum per request from Geoffroy Montel: > The rtems_termios_enqueue_raw_characters function type is void. > The problem is that I can't return an error message if the input > buffer is full. > Could we add a return value? Sure, but what would you do with the overflow indication? POSIX says, ``when the input limit is reached, the saved characters are thrown away without notice''. Anyhow, the change is so small I've done it and enclosed the patch.
1998-05-20Added tcdrain() from Eric NorumJoel Sherrill1-0/+1
1998-05-19Addition of tcdrain() from Eric Norum.Joel Sherrill2-0/+18
1998-05-19Removed prototype of rtems_libio_config() per Chris Johns' eagle eye.Joel Sherrill1-1/+0
1998-05-11new file to support execv family support in newlibJoel Sherrill2-1/+32
1998-05-11execv*() now comes from newlib.Joel Sherrill1-0/+2
1998-05-04Patch from Eric Norum to switch to termios callback structure, addJoel Sherrill2-38/+41
support for device driver support on tcsetattr(), and hardware flow control callbacks.
1998-04-27Removed redundant implementation of tcgetattr and tcsetattr.Joel Sherrill1-20/+0
1998-04-18rtems_libio_number_iops is now defined in confdefs.h so the maximumJoel Sherrill1-1/+1
file descriptors is user configurable.
1998-04-15Numerous changes which in total greatly reduced the amount of sourceJoel Sherrill1-18/+0
code in each BSP's bspstart.c. These changes were: + confdefs.h now knows libio's semaphore requirements + shared/main.c now copies Configuration to BSP_Configuration + shared/main.c fills in the Cpu_table with default values This removed the need for rtems_libio_config() and the constant BSP_LIBIO_MAX_FDS in every BSP. Plus now the maximum number of open files can now be set on the gcc command line.
1998-04-06More stuff removed as a result of using newlib's isatty() implementation.Joel Sherrill2-15/+0
These were noticed by Eric Norum.
1998-04-03Removed isatty() since we are now using newlib's implementation asJoel Sherrill3-20/+0
a result of enabling the newlib POSIX directory.
1998-03-27GO32 does not have sockets.Joel Sherrill1-0/+2
1998-03-27Should have included <rtems.h> before checking for ifdef RTEMS_UNIX.Joel Sherrill1-2/+2
Bug report from Olivier Hainque <hainque@inf.enst.fr> on SPARC Solaris 2.6.
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