Commit Graph
1936 Commits
Author SHA1 Message Date
Joel Sherrill 9076e8d14f 2007-07-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/mount.c: Allow null for output parameter.
2007-07-13 19:06:28 +00:00
Joel Sherrill 83ca607775 2007-07-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* shttpd/compat_rtems.c, shttpd/compat_rtems.h: Add port to listen on
	to shttpd initialization.
2007-07-12 20:01:35 +00:00
Joel Sherrill 55d7626db7 2007-07-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc.c: Clean up Malloc debug code.
	* score/include/rtems/score/heap.h: Spacing.
	* score/inline/rtems/score/thread.inl:
	* score/src/heapfree.c. Clean up and add explicit check of the address
	being freed actually being in the heap.
	* score/src/heapwalk.c: Switch to printk and do not call abort.
2007-07-11 20:56:10 +00:00
Joel Sherrill 2b596c6986 2007-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Make checking the integrity of the pattern
	area contingent on the stack checker user extension having been
	initialized.
2007-07-06 21:11:36 +00:00
Joel Sherrill ff089035c7 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* libnetworking/rtems/rtems_syscall.c: Remove RTEMS versions of send()
	and recv(). We already had the BSD versions and these conflict
	sometimes when linking.
2007-06-21 18:31:34 +00:00
Joel Sherrill 4ab3a29bb5 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* libnetworking/rtems/mkrootfs.h, libnetworking/rtems/rtems_bsdnet.h,
	libnetworking/rtems/rtems_bsdnet_internal.h: Add extern __cplusplus.
2007-06-21 15:32:37 +00:00
Joel Sherrill 5a8bc44574 2007-06-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h: Do not instantiate initialization
	thas/thread pointer tables for an API that is not configured.
2007-06-20 22:22:16 +00:00
Joel Sherrill 442e430ddc 2007-06-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am:
	* libcsupport/src/open_dev_console.c: New file.
2007-06-20 22:20:32 +00:00
Joel Sherrill bdba53711d 2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/corerwlock.c: Make sure structure is fully initialized.
	When reused, some fields will not be zero like at initialization.
2007-06-20 19:21:01 +00:00
Joel Sherrill 7c5e3b3ff3 2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h: POSIX threads use twice the minimum stack
	size. Account for this.
2007-06-20 19:20:02 +00:00
Joel Sherrill 16aa296c97 2007-06-13 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac: Add NDEBUG as a command line compilation option.
2007-06-13 20:39:56 +00:00
Joel Sherrill 44a5bb783b 2007-06-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* libmd/.cvsignore: New file.
2007-06-12 19:45:27 +00:00
Ralf Corsepius 79e6ccdde5 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/defs.h: Eliminate my_strncasecmp.
	* shttpd/string.c: Eliminate my_strncasecmp.
2007-06-12 16:45:40 +00:00
Ralf Corsepius df1aa0325c 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* wrapup/Makefile.am: Pickup ../libmd/libmd.a.
2007-06-12 16:26:36 +00:00
Ralf Corsepius b72dc8bafc 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* pppd/Makefile.am: Reflect moving out md*.
2007-06-12 16:03:17 +00:00
Ralf Corsepius 379a1a9421 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* pppd/md4.h, pppd/md4.c, pppd/md5.c, pppd/md5.h: Remove (moved to
	  libmd).
2007-06-12 16:01:34 +00:00
Ralf Corsepius b3f22a53f1 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmd/Makefile.am, libmd/md4.c, libmd/md4.h, libmd/md5.c,
	libmd/md5.h, libmd/preinstall.am: New (moved out from pppd).
2007-06-12 15:59:46 +00:00
Ralf Corsepius a70b07be5c 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac, Makefile.am: Add libmd.
2007-06-12 15:57:35 +00:00
Ralf Corsepius 033793f457 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/defs.h: Eliminate my_strlcpy.
	* shttpd/string.c: Eliminate my_strlcpy.
2007-06-12 07:12:46 +00:00
Ralf Corsepius 61159ed677 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/defs.h: Eliminate my_strdup, my_strndup.
	* shttpd/string.c: Eliminate my_strdup, my_strndup.
2007-06-12 07:06:29 +00:00
Ralf Corsepius e98fc44ea5 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/Makefile.am: Add -DHAVE_MD5 to use md5 routines from
	  libmd.a.
2007-06-12 05:16:16 +00:00
Ralf Corsepius bbf1103aad 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* wrapup/Makefile.am: Add libmd.a.
2007-06-12 05:14:35 +00:00
Ralf Corsepius a021dd8d29 2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* pppd/Makefile.am: Remove md5 and md4 from libpppd.a.
	  Add pppd/libmd.a.
	* pppd/md4.c: Don't include pppd.h.
2007-06-12 05:13:32 +00:00
Ralf Corsepius 8bddaa65da 2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/shttpd.ico, shttpd/resources.rc: Remove (Unused).
2007-06-11 15:43:50 +00:00
Ralf Corsepius 637f572b50 2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/Makefile.am: Conditionally build on LIBNETWORKING.
2007-06-11 15:11:15 +00:00
Ralf Corsepius aece6b7100 2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/compat_rtems.h: Include <arpa/inet.h>.
	Add config.h support.
2007-06-11 14:09:53 +00:00
Ralf Corsepius 5e262885b6 2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/compat_rtems.h: Define closesocket.
2007-06-11 14:05:21 +00:00
Ralf Corsepius 6b42f5a327 2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/compat_rtems.h: Add IS_DIRSEP_CHAR.
2007-06-11 13:56:36 +00:00
Ralf Corsepius 51fe860d25 2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac, Makefile.am: Add shttpd.
	* shttpd/Makefile.am: New.
2007-06-11 13:34:24 +00:00
Ralf Corsepius 4ec72e8a52 2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/auth.c, shttpd/cgi.c, shttpd/compat_rtems.c,
	shttpd/compat_rtems.h, shttpd/compat_unix.c, shttpd/compat_unix.h,
	shttpd/compat_win32.c, shttpd/compat_win32.h, shttpd/compat_wince.c,
	shttpd/compat_wince.h, shttpd/config.c, shttpd/defs.h,
	shttpd/io_cgi.c, shttpd/io_dir.c, shttpd/io_emb.c, shttpd/io_file.c,
	shttpd/io.h, shttpd/io_socket.c, shttpd/io_ssl.c, shttpd/llist.h,
	shttpd/log.c, shttpd/Makefile, shttpd/md5.c, shttpd/md5.h,
	shttpd/mime_type.c, shttpd/resources.rc, shttpd/shttpd.1,
	shttpd/shttpd.c, shttpd/shttpd.h, shttpd/shttpd.ico, shttpd/ssl.h,
	shttpd/standalone.c, shttpd/std_includes.h, shttpd/string.c:
	Import from shttpd-1.37.tar.gz.
2007-06-11 13:28:11 +00:00
Ralf Corsepius 83e628a07a 2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Remove "pad" from CPU_CONTEXT.
2007-06-11 08:00:07 +00:00
Joel Sherrill c1a886be7b 2007-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/coremsg.c: Formatting.
2007-06-05 13:02:48 +00:00
Joel Sherrill a607c87225 2007-05-29 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/copyrt.h: Update copyright notice.
2007-05-29 20:02:24 +00:00
Joel Sherrill 9c556023f0 2007-05-29 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/Makefile.am, sapi/include/rtems/io.h, sapi/src/io.c: Split into
	one function per file execpt io.c which contains required
	initialization methods.
	* sapi/src/ioclose.c, sapi/src/iocontrol.c, sapi/src/iodata.c,
	sapi/src/ioinitialize.c, sapi/src/ioopen.c, sapi/src/ioread.c,
	sapi/src/ioregisterdriver.c, sapi/src/iounregisterdriver.c,
	sapi/src/iowrite.c: New files.
2007-05-29 19:56:35 +00:00
Joel Sherrill 7a03c09b43 2007-05-29 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h, sapi/src/io.c: Readded code to copy driver
	table into Workspace but now it is only done if the application needs
	extra slots for dynamic driver registration. Cleaned up
	rtems_io_register_driver and rtems_io_unregister_driver code and
	added numerous error cases to register.
2007-05-29 18:45:16 +00:00
Joel Sherrill ff3f8c85c3 2007-05-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* libmisc/Makefile.am, libmisc/monitor/mon-object.c,
	libmisc/monitor/monitor.h, sapi/include/confdefs.h,
	sapi/include/rtems/config.h, sapi/include/rtems/io.h,
	sapi/src/exinit.c, sapi/src/io.c: Eliminate maximum_drivers
	configuration parameter since it was used to configure a no longer
	used feature. Device names are now part of the filesystem not in a
	table. This also eliminated the variables _IO_Number_of_devices and
	_IO_Driver_name_table from RTEMS as well as the memory allocation
	used to populate _IO_Driver_name_table.
	* libmisc/monitor/mon-dname.c: Removed.
2007-05-28 15:51:01 +00:00
Joel Sherrill 7042065c29 2007-05-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h: Add CONFIGURE_MESSAGE_BUFFER_MEMORY so there
	is less dependence on CONFIGURE_MEMORY_OVERHEAD. Do not arbitrarily
	add 1 to CONFIGURE_MEMORY_OVERHEAD so we do not waste a kilobyte for
	unused Workspace. Round the workspace required size to an 8 byte
	boundary instead of a 0x400 byte one. We may end up needing to add 8
	bytes again to account for the alignment rounding.
2007-05-23 22:09:28 +00:00
Joel Sherrill c5b5725a51 2007-05-23 Joel Sherrill <joel.sherrill@OARcorp.com>
Yu Chen <chyyuu@gmail.com>
	* score/src/corespinlockwait.c: Per question posted as
	http://www.rtems.org/ml/rtems-users/2007/may/msg00180.html, changed
	logical operator to <=.
2007-05-23 18:47:46 +00:00
Joel Sherrill 60f016f59d 2007-05-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/cpu/arm/cpu.c, score/cpu/avr/cpu.c, score/cpu/bfin/cpu.c,
	score/cpu/c4x/cpu.c, score/cpu/h8300/cpu.c, score/cpu/i386/cpu.c,
	score/cpu/m68k/cpu.c, score/cpu/mips/cpu.c, score/cpu/nios2/cpu.c,
	score/cpu/no_cpu/cpu.c, score/cpu/sh/cpu.c, score/cpu/sparc/cpu.c,
	cpukit/sapi/src/exinit.c: Move copying of CPU Table to shared
	executive initialization.
2007-05-22 20:57:34 +00:00
Joel Sherrill e5200d5afe 2007-05-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/corerwlockrelease.c: Do not dereference NULL.
2007-05-22 15:02:02 +00:00
Joel Sherrill 401e6e37d7 2007-05-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/Makefile.am, rtems/include/rtems/rtems/barrier.h,
	rtems/include/rtems/rtems/dpmem.h, rtems/include/rtems/rtems/event.h,
	rtems/include/rtems/rtems/message.h, rtems/include/rtems/rtems/part.h,
	rtems/include/rtems/rtems/ratemon.h, rtems/include/rtems/rtems/region.h,
	rtems/include/rtems/rtems/sem.h, rtems/include/rtems/rtems/tasks.h,
	rtems/include/rtems/rtems/timer.h, sapi/Makefile.am,
	sapi/include/rtems/extension.h: Split Classic API data instantiation
	into individual files. This reduces the size of the BSS section when
	an optional manager stub is used. Some tests showed about a 600 byte
	reduction in BSS size.
	* rtems/src/taskinitusers.c, sapi/src/rtemsapi.c, rtems/src/tasks.c:
	Eliminated the variables _RTEMS_tasks_User_initialization_tasks and
	_RTEMS_tasks_Number_of_initialization_tasks because they were only
	used in one place after initialized. It was a waste of space.
 	* rtems/src/barrierdata.c, rtems/src/dpmem.c, rtems/src/dpmemdata.c,
	rtems/src/eventdata.c, rtems/src/msgdata.c, rtems/src/partdata.c,
	rtems/src/ratemondata.c, rtems/src/regiondata.c,
	rtems/src/rtemstimerdata.c, rtems/src/semdata.c, rtems/src/taskdata.c,
	sapi/src/extensiondata.c: New files.
2007-05-21 23:24:31 +00:00
Joel Sherrill e49e84c9ab 2007-05-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am, libmisc/cpuuse/README: Split remaining CPU Usage
	functionality into multiple files to eliminate unnecessary cohesion.
	Update README.
	* libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c:
	New files.
	* libmisc/cpuuse/cpuuse.c: Removed.
2007-05-21 20:28:02 +00:00
Joel Sherrill ec2078d670 2007-05-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/ratemonperiod.c: Fix math ordering bug which resulted in a
	negative value in some circumstances. Also cleaned up to share uptime
	declaration.
2007-05-21 19:28:55 +00:00
Joel Sherrill c3330a88ee 2007-05-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, configure.ac, libcsupport/src/__times.c,
	libmisc/cpuuse/cpuuse.c, libmisc/stackchk/check.c,
	rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c,
	rtems/src/ratemonperiod.c, rtems/src/ratemonreportstatistics.c,
	rtems/src/ratemonresetall.c, rtems/src/ratemontimeout.c,
	score/Makefile.am, score/include/rtems/score/thread.h,
	score/include/rtems/score/timespec.h, score/src/threaddispatch.c,
	score/src/threadinitialize.c, score/src/threadtickletimeslice.c,
	score/src/timespecdivide.c: Add nanoseconds granularity to the rate
	monotonic period statistics and CPU usage statistics. This capability
	is enabled by default although may be conditionally disabled by the
	user. It could be too much overhead on small targets but it does not
	appear to be bad in early testing. Its impact on code size has not
	been evaluated either. It is possible that both forms of statistics
	gathering could be disabled with further tweaking of the conditional
	compilation.
	* score/src/timespecdividebyinteger.c: New file.
2007-05-17 22:46:45 +00:00
Joel Sherrill eb64f2c6ff 2007-05-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/cpuuse/cpuuse.c: Use rtems_object_get_name and eliminate
	functionally similar code here. Also cleanup print formats.
2007-05-16 16:25:05 +00:00
Joel Sherrill b9f0782367 2007-05-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/objectgetnameasstring.c: Internal threads use string names
	so in the current RTEMS source string object name can NOT be
	disabled. It is probably worth considering converting the internal
	threads to uint32_t style names so all the support for string names
	can be conditionally disabled.
2007-05-16 16:14:44 +00:00
Joel Sherrill f919582d8f 2007-05-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/Makefile.am, score/include/rtems/score/timespec.h: Add division
	and greater than operations for timespecs.
	* score/src/timespecdivide.c, score/src/timespecgreaterthan.c:
	New files.
2007-05-16 15:04:25 +00:00
Ralf Corsepius 717adfb3e8 2007-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/src/objectgetnameasstring.c: Remove bogus ifdef
	RTEMS_POSIX_API.
2007-05-16 06:51:53 +00:00
Joel Sherrill e1bce866cf 2007-05-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, preinstall.am, libmisc/Makefile.am, rtems/Makefile.am,
	rtems/include/rtems.h, rtems/include/rtems/rtems/ratemon.h,
	rtems/inline/rtems/rtems/ratemon.inl, rtems/src/ratemoncancel.c,
	rtems/src/ratemoncreate.c, rtems/src/ratemondelete.c,
	rtems/src/ratemongetstatus.c, rtems/src/ratemonident.c,
	rtems/src/ratemonperiod.c, rtems/src/ratemontimeout.c,
	score/Makefile.am, score/include/rtems/score/object.h,
	score/src/threadhandler.c, wrapup/Makefile.am: Integrate Rate
	Monotonic Statistics and Period Usage into Rate Monotonic Manager.
	Added the following directives: rtems_rate_monotonic_get_statistics,
	rtems_rate_monotonic_reset_statistics,
	rtems_rate_montonic_reset_all_statistics,
	rtems_rate_montonic_report_statistics, and rtems_object_get_name.
	Obsoleted the rtems/rtmonuse.h file as a public interface.
	* rtems/src/ratemongetstatistics.c,
	rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c,
	rtems/src/ratemonresetstatistics.c, rtems/src/rtemsobjectgetname.c,
	score/src/objectgetnameasstring.c: New files.
	* libmisc/rtmonuse/rtmonuse.c, libmisc/rtmonuse/rtmonuse.h: Removed.
2007-05-15 20:16:16 +00:00
Joel Sherrill 8a5186d531 2007-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/src/unixlibc.c: Split off dummry
	rtems_io_register_name for use on unix.
	* libcsupport/src/unixlibc_io.c: New file.
2007-05-14 17:56:54 +00:00