summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/newlibc.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-07-22Remove, moved to cpukit.Ralf Corsepius1-334/+0
2002-05-152002-05-15 Chris Johns <ccj@acm.org>Joel Sherrill1-35/+6
* libc/newlibc.c: Per PR141, move the C library re-enterrant support directly into the thread dispatch code. RTEMS needs libc and so requiring libc to use a user extension with its overhead is not the best solution. This patch lowers the overhead to 2 pointer moves.
2001-01-082001-01-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill1-1/+5
* configure.in: Add libc/config.h * libc/Makefile.am: Add INCLUDES += -I. to pickup config.h * libc/.cvsignore: Add config.h and stamp-h * libc/*.c: Add config.h support.
2000-11-012000-11-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* include/Makefile.am, include/rtems/libio_.h, libc/Makefile.am, libc/assoc.c, libc/assocnamebad.c, libc/base_fs.c, libc/cfsetispeed.c, libc/cfsetospeed.c, libc/chdir.c, libc/chmod.c, libc/chown.c, libc/close.c, libc/closedir.c, libc/dup2.c, libc/error.c, libc/eval.c, libc/fchdir.c, libc/fchmod.c, libc/fcntl.c, libc/fdatasync.c, libc/fpathconf.c, libc/fstat.c, libc/fsync.c, libc/ftruncate.c, libc/getdents.c, libc/ioctl.c, libc/libio.c, libc/libio_sockets.c, libc/link.c, libc/lseek.c, libc/malloc.c, libc/mallocfreespace.c, libc/mknod.c, libc/mount.c, libc/newlibc.c, libc/no_libc.c, libc/open.c, libc/read.c, libc/readlink.c, libc/rmdir.c, libc/stat.c, libc/symlink.c, libc/tcsetattr.c, libc/telldir.c, libc/ttyname.c, libc/ttyname_r.c, libc/umask.c, libc/unlink.c, libc/unmount.c, libc/utime.c, libc/write.c: assoc.h, error.h, libio_.h, libio.h, and libcsupport.h moved from libc to lib/include/rtems and now must be referenced as <rtems/XXX.h>. * include/rtems/Makefile.am, include/rtems/.cvsignore: New file. * include/rtems/assoc.h, include/rtems/error.h, include/rtems/libcsupport.h, include/rtems/libio.h, include/rtems/libio_.h: New/moved files.
2000-09-222000-09-22 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* libc/newlibc.c: Removed _A29K specific ifdef.
1999-11-05Following comments from Eric Norum <eric@cls.usask.ca>, a fairlyJoel Sherrill1-285/+145
substantial upgrade of newlibc.c occurred. Now the user extension data area is used rather than notepads and as many routines as possible were split into other files further reducing the minimum footprint of an RTEMS executable.
1999-10-05Removed go32 ifdefsJoel Sherrill1-3/+0
1999-05-11Fix based on bug report from Jay Kulpinski <jskulpin@eng01.gdds.com>Joel Sherrill1-1/+11
that the per task reentrancy structure was not being processed properly during exit(). joel@oarcorp.com wrote: > > > This is always an ugly place to poke around. :( > > The code in newlib/libc/stdlib/exit.c walks the atexit chain for the > reentrancy structure for JUST the current task. The code in libc_wrapup() > does it for both the current task and the global reentrancy structure > (which tends to be where driver atexit()'s were registered. > > So I think the _wrapup_reent(0) in libc_wrapup() should be commented out. > > If you concur, then I will make the change and improve the comment on this > line of code to explain things: > > libc_wrapup(); /* Why? XXX */ > > --joel That does the job. cdtest.exe works correctly now.
1999-02-18GLobal reentrancy structure is now dynamically initialized.Joel Sherrill1-1/+2
1999-02-15Patch from Eric Valette <valette@crf.canon.fr> to undo the patchJoel Sherrill1-2/+0
that added ifdef on the pc386.
1999-01-19Per bug report from Jiri Gaisler that RTEMS would no longer buildJoel Sherrill1-1/+13
with the --disable-posix option, stubs for some routines (_getpid_r and _kill_r) that are normally defined with POSIX were added.
1998-11-23Added base version of file system infrastructure. This includes a majorJoel Sherrill1-13/+65
overhaul of the RTEMS system call interface. This base file system is the "In-Memory File System" aka IMFS. The design and implementation was done by the following people: + Joel Sherrill (joel@OARcorp.com) + Jennifer Averett (jennifer@OARcorp.com) + Steve "Mr Mount" Salitasc (salitasc@OARcorp.com) + Kerwin Wade (wade@OARcorp.com) PROBLEMS ======== + It is VERY likely that merging this will break the UNIX port. This can/will be fixed. + There is likely some reentrancy/mutual exclusion needed. + Eventually, there should be a "mini-IMFS" description table to eliminate links, symlinks, etc to save memory. All you need to have "classic RTEMS" functionality is technically directories and device IO. All the rest could be left out to save memory.
1998-08-31Patch from Emmanuel Raguet <raguet@crf.canon.fr>:Joel Sherrill1-3/+0
I have reworked the ethernet driver for the BSP pc386 and here is the patch to apply.
1998-05-19Addition of tcdrain() from Eric Norum.Joel Sherrill1-0/+12
1998-04-06More stuff removed as a result of using newlib's isatty() implementation.Joel Sherrill1-11/+0
These were noticed by Eric Norum.
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.
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-10-08Fixed typo in the pointer to the license terms.Joel Sherrill1-2/+2
1997-08-22Moved reentrant wrappers into their own file.Joel Sherrill1-4/+2
1997-04-22updated with new license information per Tony Bennett.Joel Sherrill1-10/+3
1997-04-09added code to prevent attempts to clean up the library when rtems isJoel Sherrill1-0/+8
down.
1997-01-29Modifications to make go32 build using new i386-go32-rtems toolsetJoel Sherrill1-3/+6
and gcc 2.8.x -specs options.
1997-01-29Merged newlib's libgloss support for rtems into this directory. ThisJoel Sherrill1-1/+4
should simplify the build process.
1996-09-18modified to support non-GNU compilers and to use calloc rather thanJoel Sherrill1-3/+20
malloc for per-thread reentrancy structure allocation.
1996-08-06get_errno: no longer needed by gnat runtimeJoel Sherrill1-0/+4
1996-07-03another attempt at the rtems_posix_api ifdefJoel Sherrill1-4/+3
1996-06-18minor changes to insure the few posix-ish routines needed in non-posixJoel Sherrill1-6/+25
mode have stubs.
1996-06-12use exit() from newlib by default.Joel Sherrill1-8/+8
1996-06-03sleep moved into newlibc.c so the sleep.o object would not be in the library.Joel Sherrill1-1/+26
This implementation of sleep is now only used when the POSIX API is not configured.
1996-05-30added dummy versions of __kill and __getpid which assert(0) so thatJoel Sherrill1-0/+23
applications which use only the rtems api (i.e. not the posix api) will link.
1996-05-23updates from Tony BennettJoel Sherrill1-2/+2
1996-04-22Updates from Tony Bennett.Joel Sherrill1-18/+25
1996-03-06Removed prototyes for static inline routines and moved the comments intoJoel Sherrill1-0/+1
the inline implementation. The impetus for this was twofold. First, it is incorrect to have static inline prototypes when using the macro implementation. Second, this reduced the number of lines in the include files seen by rtems.h by about 2000 lines. Next we restricted visibility for the inline routines to inside the executive itself EXCEPT for a handful of objects. This reduced the number of include files included by rtems.h by 40 files and reduced the lines in the include files seen by rtems.h by about 6000 lines. In total, these reduced the compile time of the entire RTEMS tree by 20%. This results in about 8 minutes savings on the SparcStation 10 morgana.
1996-02-21Dispersal of internal thread handler resulted in the SYSI task beingJoel Sherrill1-2/+2
only required in a multiprocessor system. It was replace by the MPCI Receive Server. As a result, the CPU Table field for extra stack for the SYSI task was changed to be extra stack for the MPCI Receive Server.
1996-01-19added a task begin extension for unix simulator configurations. This extensionJoel Sherrill1-0/+25
insures that stdout is line buffered (see setvbuf).
1995-09-12Initial attempt at building HP PA-RISC using Solaris hosted tools.Joel Sherrill1-3/+13
Changed back to Newlib for Solaris UNIX simulator.
1995-09-11The word "RTEMS" almost completely removed from the core.Joel Sherrill1-5/+6
Configuration Table Template file added and all tests modified to use this. All gvar.h and conftbl.h files removed from test directories. Configuration parameter maximum_devices added. Core semaphore and mutex handlers added and RTEMS API Semaphore Manager updated to reflect this. Initialization sequence changed to invoke API specific initialization routines. Initialization tasks table now owned by RTEMS Tasks Manager. Added user extension for post-switch. Utilized user extensions to implement API specific functionality like signal dispatching. Added extensions to the System Initialization Thread so that an API can register a function to be invoked while the system is being initialized. These are largely equivalent to the pre-driver and post-driver hooks. Added the Modules file oar-go32_p5, modified oar-go32, and modified the file make/custom/go32.cfg to look at an environment varable which determines what CPU model is being used. All BSPs updated to reflect named devices and clock driver's IOCTL used by the Shared Memory Driver. Also merged clock isr into main file and removed ckisr.c where possible. Updated spsize to reflect new and moved variables. Makefiles for the executive source and include files updated to show break down of files into Core, RTEMS API, and Neither. Header and inline files installed into subdirectory based on whether logically in the Core or a part of the RTEMS API.
1995-08-23Support for variable length names added to Object Handler. This supportsJoel Sherrill1-1/+1
both fixed length "raw" names and strings from the API's point of view. Both inline and macro implementations were tested.
1995-07-12Ada95, gnat, go32Joel Sherrill1-1/+1
1995-05-24Fully tested on all in-house targetsJoel Sherrill1-5/+5