Commit Graph

149 Commits

Author SHA1 Message Date
Ralf Corsepius
465b1efc22 2008-02-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/motorola/mc68230.h: Prefix defines with
	  MC68230_ to avoid preprocessor clashes.
2008-02-15 06:19:58 +00:00
Joel Sherrill
e0a66c1574 2008-01-29 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h,
	libcsupport/src/malloc_walk.c, libcsupport/src/posix_memalign.c,
	libcsupport/src/realloc.c, score/src/heapwalk.c: Add rtems_memalign
	as helper and as exposed nmemalign variant with few restrictions.
	Also turn on compilation of _Heap_Walk but make forced calls to it
	conditionally compiled. This should allow more flexibility to the
	user as to run-time checking of the heap.
	* libcsupport/src/rtems_memalign.c: New file.
2008-01-29 17:28:27 +00:00
Joel Sherrill
2f44708ab5 2008-01-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/include/rtems/assoc.h: rtems_assoc_ptr_by_local should be
	in public API.
2008-01-25 02:57:43 +00:00
Joel Sherrill
7fbe680567 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am: Add src/malloc_dirtier.c.
	* libcsupport/include/rtems/malloc.h: Add malloc dirty support.
	* libcsupport/src/malloc_p.h: Correct prototype.
2008-01-09 21:24:30 +00:00
Joel Sherrill
cfcc4e202d 2008-01-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am: Add malloc_sbrk_helpers.c.
	* libcsupport/include/rtems/malloc.h,
	libcsupport/src/malloc.c, libcsupport/src/malloc_initialize.c,
	libcsupport/src/malloc_p.h,
	libcsupport/src/malloc_statistics_helpers.c: Make sbrk()
	support pluggable and optional.  This eliminates the need for
	heap extend and sbrk in the minimum footprint which is ~2.5K on
	the SPARC.
	* sapi/include/confdefs.h: Add the following configuration points:
	  + CONFIGURE_MALLOC_STATISTICS
	  + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
	* libcsupport/src/malloc_sbrk_helpers.c: New file.
2008-01-08 22:59:14 +00:00
Joel Sherrill
cd2255151a 2007-12-21 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1268/cpukit
	* libcsupport/include/rtems/assoc.h: There is no
	rtems_assoc_ptr_by_value method.
2007-12-21 15:22:40 +00:00
Joel Sherrill
8e30a269a2 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h,
	libcsupport/src/free.c, libcsupport/src/malloc.c,
	libcsupport/src/malloc_p.h,
	libcsupport/src/malloc_report_statistics_plugin.c,
	libmisc/shell/shell.c, libmisc/shell/shell.h,
	score/src/objectinitializeinformation.c: Add posix_memalign. Split
	out management of deferred frees to subroutines.
	* libcsupport/src/malloc_deferred.c, libcsupport/src/posix_memalign.c: New files.
2007-12-19 16:03:54 +00:00
Joel Sherrill
543fe82061 2007-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am, libcsupport/preinstall.am,
	libcsupport/src/malloc.c, libcsupport/src/mallocinfo.c,
	libmisc/Makefile.am, libmisc/shell/main_mallocinfo.c,
	libmisc/shell/shellconfig.h: Split malloc.c into multiple files with
	one function per file. Also split out statistics into a separate file
	which can be plugged in dynamically. Right now, it is always in. I
	suspect that splitting the file removed more code than leaving
	statistics in. I tinkered with malloc information command in the
	shell. I resurrected the malloc arena code as malloc boundary. This
	code is now compiled all the time even though it does not appear to
	work.
	* libcsupport/include/rtems/malloc.h, libcsupport/src/_calloc_r.c,
	libcsupport/src/_free_r.c, libcsupport/src/_malloc_r.c,
	libcsupport/src/_realloc_r.c, libcsupport/src/calloc.c,
	libcsupport/src/free.c, libcsupport/src/malloc_boundary.c,
	libcsupport/src/malloc_get_statistics.c,
	libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h,
	libcsupport/src/malloc_report_statistics.c,
	libcsupport/src/malloc_report_statistics_plugin.c,
	libcsupport/src/malloc_statistics_helpers.c,
	libcsupport/src/malloc_walk.c, libcsupport/src/realloc.c,
	libmisc/shell/main_perioduse.c: New files.
2007-12-18 20:36:40 +00:00
Ralf Corsepius
1e872b3299 Remove. 2007-05-10 07:40:10 +00:00
Ralf Corsepius
cd9564e1cd Include <rtems/bsd/sys/cdefs.h> instead of <sys/cdefs.h>. 2007-05-10 07:29:14 +00:00
Joel Sherrill
c3db01d0f3 2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/include/rtems/libcsupport.h, libcsupport/src/newlibc.c,
	sapi/Makefile.am, sapi/include/confdefs.h, sapi/src/exinit.c,
	score/Makefile.am, score/preinstall.am,
	score/include/rtems/score/userext.h, score/src/chain.c,
	score/src/userext.c: Switch to newlib reentrancy extension being
	installed in the initial set instead of using rtems_extension_create.
	While implementing this, noticed that user extensions and chain code
	had multiple functions in a single file which is not desirable in the
	SuperCore and API portions of RTEMS, so split these into multiple
	files with one function per file. Also noticed that some of user
	extension code was inlined for no particular reason so moved that to
	C bodies.  Split executive shutdown from initialization since not
	every application shuts down.  Moved __fini call to executive shutdown
	to be more symmetrical with where it is called at startup.
	* sapi/src/exshutdown.c, score/src/chainappend.c,
	score/src/chainextract.c, score/src/chainget.c,
	score/src/chaininsert.c, score/src/userextaddapiset.c,
	score/src/userextaddset.c, score/src/userextremoveset.c,
	score/src/userextthreadbegin.c, score/src/userextthreadcreate.c,
	score/src/userextthreaddelete.c, score/src/userextthreadrestart.c,
	score/src/userextthreadstart.c, score/src/userextthreadswitch.c: New
	files.
	* score/inline/rtems/score/userext.inl: Removed.
2007-05-09 18:27:26 +00:00
Ralf Corsepius
a67c316ac8 2007-03-28 Ralf Corsépius <ralf.corsepius@rtems.org>
*  libcsupport/include/sys/sockio.h: Partial update from
	  FreeBSD.
2007-03-28 15:31:39 +00:00
Joel Sherrill
9d52e6923f 2007-03-26 Joel Sherrill <joel@OARcorp.com>
* libcsupport/include/rtems/assoc.h: Pick up the include file
	changes associated with the file splitting.
2007-03-26 22:53:45 +00:00
Ralf Corsepius
30ceeaa30c 2007-03-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/rtems/termiostypes.h,
	libcsupport/src/termios.c: Prefix linesw, struct linesw, nwlinesw
	with rtems_termios_*.
2007-03-17 06:46:45 +00:00
Ralf Corsepius
7192476f7a Use size_t instead of uint32_t for read/write count-args. 2006-12-08 07:18:27 +00:00
Ralf Corsepius
43912af4a4 2006-11-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/stdint.h, libcsupport/include/inttypes.h:
	Remove.
2006-11-12 11:12:53 +00:00
Joel Sherrill
a009d94459 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* ftpd/ftpd.c, libcsupport/include/sys/ioccom.h,
	libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c,
	libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h,
	libnetworking/net/if.c, libnetworking/net/if_ethersubr.c,
	libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h,
	libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c,
	libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c,
	libnetworking/rtems/rtems_bsdnet_internal.h,
	libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings
	due to improper use of int which shows up on 16 bit targets. Added
	ioctl_command_t since IOCTL command argument does not reliably fit
	into 16 bits.
2006-08-31 01:10:02 +00:00
Joel Sherrill
ae5a79c349 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libcsupport/include/sys/ioccom.h, libnetworking/kern/uipc_socket2.c,
	libnetworking/net/ethernet.h, libnetworking/net/if.h,
	libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c,
	libnetworking/net/if_pppvar.h, libnetworking/net/ppp_tty.c,
	libnetworking/net/pppcompress.c, libnetworking/net/slcompress.c,
	libnetworking/netinet/in.h, libnetworking/netinet/ip_icmp.c,
	libnetworking/netinet/tcp.h, libnetworking/netinet/tcp_seq.h,
	libnetworking/sys/protosw.h, libnetworking/sys/socketvar.h: Remove
	warnings. Most of the warnings were 16/32 bit integer sizing issues.
	Some constants had L appended, some had casts add, some types were
	changed to reflect a bit width requirement.
2006-08-30 17:20:33 +00:00
Thomas Doerfler
c9b005a9d2 applied patches for PR1117/1118/1119/1120 2006-07-09 10:05:27 +00:00
Ralf Corsepius
b7176bd70c 2006-06-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/rtems/cdefs.h: Partial update from freebsd.
2006-06-23 15:33:19 +00:00
Ralf Corsepius
80c2966f4b 2006-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/rtems/libio.h: Add extern "C" {}.
2006-06-18 06:28:22 +00:00
Ralf Corsepius
9e7678d2af Partial update from FreeBSD. 2005-05-09 13:12:45 +00:00
Joel Sherrill
72ba6689b8 2005-05-03 Joel Sherrill <joel@OARcorp.com>
* libcsupport/include/ringbuf.h: Use uint8_t instead of char for raw
	data buffer.
2005-05-03 22:19:04 +00:00
Ralf Corsepius
a29d2e7e3d 2005-02-04 Ralf Corsepius <ralf.corsepius@rtems.org>
* libcsupport/include/rtems/libio.h: Use rtems_id for semaphores.
	Use char* for buffer.
	* backward/ftpd.h: New.
	* Makefile.am: Reflect having added backward/ftpd.h.
2005-02-04 14:58:01 +00:00
Joel Sherrill
ce92867bea 2005-02-01 Joel Sherrill <joel@OARcorp.com>
* libblock/include/rtems/bdbuf.h,
	libblock/include/rtems/ide_part_table.h, libblock/src/blkdev.c,
	libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c,
	posix/macros/rtems/posix/cond.inl,
	posix/macros/rtems/posix/mutex.inl : Remove warnings.
2005-02-02 00:06:18 +00:00
Ralf Corsepius
eb891eb331 2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org>
* libcsupport/include/inttypes.h: New header guard.
	Fix doxygen preamble.
2005-01-28 08:07:03 +00:00
Ralf Corsepius
7945944459 New header guards. 2005-01-28 08:04:27 +00:00
Ralf Corsepius
e18080ab06 2005-01-27 Ralf Corsepius <ralf.corsepius@rtems.org>
* libcsupport/include/tar.h: New (SUSv3).
	* Makefile.am: Integrate newlib-specific headers.
	Add libcsupport/include/tar.h.
	* libcsupport/Makefile.am: Remove newlib-specific headers.
2005-01-27 06:42:37 +00:00
Ralf Corsepius
a1ec1b9551 2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* libcsupport/include/stdint.h: Use __PTRDIFF_TYPE for intptr_t.
2005-01-24 15:02:00 +00:00
Ralf Corsepius
4d3017ab2d Add doxygen preamble. 2004-12-02 18:04:55 +00:00
Ralf Corsepius
f10a9991c8 2004-11-20 Ralf Corsepius <ralf.corsepiu@rtems.org>
* libcsupport/include/stdint.h: Move mal-placed comment.
2004-11-20 02:57:19 +00:00
Joel Sherrill
760ccad71b 2004-11-09 Joel Sherrill <joel@OARcorp.com>
* libcsupport/include/stdint.h: Fixed name in @file.
2004-11-09 15:41:04 +00:00
Ralf Corsepius
a0596b415f 2004-11-08 Ralf Corsepius <ralf.corsepiu@rtems.org>
* libcsupport/include/sys/_stdint.h: Remove.
	* libcsupport/include/sys/_inttypes.h: Remove.
	* libcsupport/include/stdint.h: Replace with former sys/_stdint.h.
	Add INT<N>_C, various additions.
	* libcsupport/include/inttypes.h: Replace with former
	sys/_inttypes.h.
	* libcsupport/Makefile.am: Reflect changes above.
2004-11-08 16:11:58 +00:00
Ralf Corsepius
ad58194eb4 Remove. 2004-11-08 16:11:20 +00:00
Ralf Corsepius
47148e4f85 2004-11-07 Ralf Corsepius <ralf.corsepiu@rtems.org>
* libcsupport/include/sys/_stdint.h: Special-case int64_t (GCC has
	__LONG_LONG_MAX__, while POSIX mandates LLONG_MAX. This break
	__EXP(LONG_LONG_MAX)).
2004-11-07 06:49:39 +00:00
Ralf Corsepius
bffdb8281b 2004-11-05 Ralf Corsepius <ralf_corsepiu@rtems.org>
* configure.ac: Remove RTEMS_USES_INTTYPES_H. Require inttypes.h.
	* include/rtems/stdint.h: Remove "wild guesses", require inttypes.h.
	* libcsupport/include/inttypes.h: Cleanup.
	* libcsupport/include/stdint.h: Cleanup.
2004-11-05 11:34:49 +00:00
Ralf Corsepius
07a984b1ad 2004-11-04 Ralf Corsepius <ralf_corsepiu@rtems.org>
* include/sys/_stdint.h: Various changes.
	Add *leastN_t types. Add INTN_{MIN|MAX} macros.
	Add doxygen preamble.
	* include/sys/_inttypes.h: Add doxygen preamble.
	Reflect changes above.
	* libcsupport/include/stdint.h: Add doxygen preamble.
	* libcsupport/include/inttypes.h: Add doxygen preamble.
	* configure.ac: Add doxygen preamble to cpuopts.h.
2004-11-04 21:48:12 +00:00
Ralf Corsepius
e7ab8899cd 2004-11-01 Ralf Corsepius <ralf_corsepius@rtems.org>
* configure.ac: Remove -ansi (Cygwin breaks with it).
	* libcsupport/include/stdint.h: Use sys/_stdint.h to setup fixed
	size types.
	* libcsupport/include/sys/_inttypes.h: Add SCN*N macros.
2004-11-01 11:38:18 +00:00
Ralf Corsepius
0f9ff45957 2004-10-28 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/inttypes.h: #include <sys/_inttypes.h>
	* libcsupport/src/utsname.c: Don't include sptables.h.
	Include <inttypes.h>. Use PRId32 instead of "%d".
2004-10-29 10:34:38 +00:00
Ralf Corsepius
b24b4eb06b 2004-10-28 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/rtems/_inttypes.h: Remove.
	* libcsupport/include/rtems/_stdint.h: Remove.
	* libcsupport/include/sys/_inttypes.h: New.
	* libcsupport/include/sys/_stdint.h: New.
	* libcsupport/Makefile.am: Reflect changes above.
2004-10-29 10:13:02 +00:00
Ralf Corsepius
eafc34b58b 2004-10-26 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/rtems/_inttypes.h: Undefine __PRIN defines.
	* libcsupport/include/rtems/_stdint.h: Apply GNUC-limits to GCC >= 3.3, only.
	Add _rtems_*_t_defined defines. Add extern "C".
2004-10-26 17:11:03 +00:00
Ralf Corsepius
e9d4e8d70a New. 2004-10-26 11:02:39 +00:00
Ralf Corsepius
795399e2f5 2004-10-26 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/sys/ioctl.h: Cosmetical update from FreeBSD.
	Remove sys/compat_ioctl.h section (Meaningless with RTEMS).
2004-10-26 10:45:02 +00:00
Ralf Corsepius
3822913741 2004-10-26 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/sys/ioccom.h: Cosmetical update from FreeBSD.
2004-10-26 07:40:45 +00:00
Ralf Corsepius
134191bc99 2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/stdint.h: Add intptr_t uintptr_t.
2004-10-22 14:06:33 +00:00
Ralf Corsepius
50f32b1165 Remove stray white spaces. 2004-04-18 06:05:35 +00:00
Ralf Corsepius
3239698d1f Remove stray white spaces. 2004-04-15 13:26:21 +00:00
Ralf Corsepius
a5777f043d 2004-04-13 Ralf Corsepius <ralf_corsepius@rtems.org>
* configure.ac: Rework stdint.h/inttypes.h support.
	Add RTEMS_USES_STDINT_H. Add RTEMS_USES_INTTYPES_H.
	Remove NEED_STDINT_H. Remove NEED_INTTYPES_H.
	Remove termios-flag detection.
	* libcsupport/Makefile.am: Install include/stdint.h and
	include/inttypes.h for NEWLIB only.
	* libcsupport/include/stdint.h: Rework; Now newlib specific.
	* libcsupport/src/termios.c: Make newlib specific.
	* include/rtems/stdint.h: Rework; Now wrapper to <stdint.h>.
2004-04-13 15:15:28 +00:00
Ralf Corsepius
83c5fc1bb9 2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/chain.h, libcsupport/include/clockdrv.h,
	libcsupport/include/ringbuf.h, libcsupport/include/spurious.h,
	libcsupport/include/timerdrv.h, libcsupport/include/vmeintr.h,
	libcsupport/include/motorola/mc68230.h,
	libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/libio.h,
	libcsupport/include/rtems/libio_.h,
	libcsupport/include/rtems/termiostypes.h,
	libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h,
	libcsupport/include/zilog/z8536.h, libcsupport/src/__gettod.c,
	libcsupport/src/assoc.c, libcsupport/src/assocnamebad.c,
	libcsupport/src/error.c,  libcsupport/src/libio.c,
	libcsupport/src/libio_sockets.c, libcsupport/src/malloc.c,
	libcsupport/src/no_libc.c, libcsupport/src/termios.c,
	libcsupport/src/termiosreserveresources.c: Convert to using c99
	fixed-size types.
2004-03-23 06:07:53 +00:00
Ralf Corsepius
2609e83f77 Unused. 2004-03-08 16:26:41 +00:00