Commit Graph
1623 Commits
Author SHA1 Message Date
Ralf Corsepius 9376664581 2008-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/cpu/unix/cpu.c: Add prototypes, eliminate nested externs.
2008-12-09 08:35:43 +00:00
Joel Sherrill c16bcc009b 2008-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/__times.c, libmisc/cpuuse/cpuusagereport.c,
	libmisc/cpuuse/cpuusagereset.c, posix/src/clockgettime.c,
	posix/src/pthread.c, posix/src/timersettime.c,
	rtems/include/rtems/rtems/ratemon.h,
	rtems/src/clockgetsecondssinceepoch.c, rtems/src/clockgetuptime.c,
	rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c,
	rtems/src/ratemonreportstatistics.c, rtems/src/taskwakewhen.c,
	rtems/src/timerfirewhen.c, rtems/src/timerserver.c,
	rtems/src/timerserverfirewhen.c, score/Makefile.am,
	score/preinstall.am, score/include/rtems/score/thread.h,
	score/include/rtems/score/tod.h, score/src/coretod.c,
	score/src/coretodget.c, score/src/coretodgetuptime.c,
	score/src/coretodset.c, score/src/coretodtickle.c,
	score/src/threaddispatch.c, score/src/threadinitialize.c: Add
	SuperCore handler Timestamp to provide an opaque class for the
	representation and manipulation of uptime, time of day, and the
	difference between two timestamps. By using SuperCore Timestamp, it
	is clear which methods and APIs really have to be struct timespec and
	which can be in an optimized native format.
	* score/include/rtems/score/timestamp.h,
	score/src/coretodgetuptimetimespec.c: New files.
2008-12-08 19:41:31 +00:00
Joel Sherrill 6d10c295ee 2008-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/nfsclient/src/nfs.c: Use
	rtems_clock_get_seconds_since_epoch() from public API.
2008-12-08 18:12:18 +00:00
Ralf Corsepius 21f0aacba1 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/nfsclient/Makefile.am: Remove RTEMS_RELLDFLAGS.
	* aclocal/prog-cc.m4: Add RTEMS_RELLDFLAGS hack.
2008-12-08 13:14:32 +00:00
Ralf Corsepius bbe9596cec 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/nfsclient/src/dirutils.c: #include <limits.h>.
2008-12-08 13:11:10 +00:00
Ralf Corsepius 19561560f8 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/include/rtems/rtems/clock.h: #include <sys/time.h>
2008-12-08 11:16:29 +00:00
Ralf Corsepius 266889191b 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* librpc/include/rpc/rpcent.h: #include <rpc/types.h>.
	* librpc/include/rpc/xdr.h: #include <rtems/bsd/sys/cdefs.h>.
2008-12-08 04:41:38 +00:00
Ralf Corsepius 6f7d5bc4f7 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/devfs/devfs.h: Add missing "extern"s.
	* libfs/src/imfs/imfs.h: Add missing "extern"s
	* libfs/src/pipe/pipe.h: Add missing "extern"s.
	Add extern "C" {}.
2008-12-08 04:38:44 +00:00
Ralf Corsepius 95c9861ce0 2008-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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/lm32/cpu.c, score/cpu/m32c/cpu.c, score/cpu/m32r/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, score/cpu/unix/cpu.c:
	Fix typo.
2008-12-07 11:26:10 +00:00
Joel Sherrill 6a6141606b 2008-12-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/timespec.h: Remove unnecessary includes.
	Fix typo.
	* posix/include/rtems/posix/time.h, score/src/coretodget.c,
	score/src/coretodgetuptime.c: Add required include files which
	were formerly included from timespec.h
2008-12-05 22:27:47 +00:00
Joel Sherrill 3b3d005657 2008-12-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/pipe/fifo.c: Do not include .inl files directly. Use .h
	files with kernel visibility violated until functionality exposed.
2008-12-05 21:54:06 +00:00
Ralf Corsepius e83a477132 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Check for functions in newlib.
2008-12-05 13:33:20 +00:00
Ralf Corsepius 8e518846a1 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/Makefile.am: Unconditionally compile files which now
          are in newlib.
2008-12-05 13:32:09 +00:00
Ralf Corsepius dd954461c3 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/Makefile.am: Unconditionally compile files which now
	  are in newlib.
2008-12-05 13:31:05 +00:00
Ralf Corsepius 08027bf11a 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/src/execl.c, posix/src/execle.c,
	posix/src/execlp.c, posix/src/execv.c,
	posix/src/execve.c, posix/src/execvp.c,
	posix/src/sleep.c, posix/src/usleep.c:
	Compile contents conditionally.
2008-12-05 06:44:50 +00:00
Ralf Corsepius 73c56eea4f 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/closedir.c, libcsupport/src/getcwd.c,
	libcsupport/src/isatty.c, libcsupport/src/opendir.c,
	libcsupport/src/readdir.c, libcsupport/src/readdir_r.c,
	libcsupport/src/rewinddir.c, libcsupport/src/seekdir.c,
	libcsupport/src/telldir.c, libcsupport/src/ttyname.c:
	Compile contents conditionally.
2008-12-05 06:42:51 +00:00
Joel Sherrill 15e44fd15b 2008-12-04 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
* configure.ac, librpc/src/xdr/xdr_float.c, score/cpu/Makefile.am: Add
	Lattice Mico32 support.
2008-12-04 22:53:33 +00:00
Joel Sherrill b0aefa4ab2 2008-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1348/cpukit
	* rtems/src/ratemonperiod.c: Properly handle period statistics after
	cpu usage information is reset while a period is running.
2008-12-04 15:58:26 +00:00
Joel Sherrill 109ace3a1f 2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1347/cpukit
	* rtems/include/rtems/rtems/timer.h, rtems/src/rtemstimer.c,
	rtems/src/timerreset.c, rtems/src/timerserver.c,
	rtems/src/timerserverfireafter.c, rtems/src/timerserverfirewhen.c,
	score/Makefile.am, score/include/rtems/score/watchdog.h: Rework Timer
	Server to ensure that the context allows for blocking, allocating
	memory, and acquiring semaphores and mutexes.
	* score/src/watchdogadjusttochain.c: New file.
2008-12-03 20:58:29 +00:00
Joel Sherrill 3a8335b671 2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1346/cpukit
	* rtems/include/rtems/rtems/ratemon.h: Sense of rate monotonic
	statistics nanoseconds or ticks granularity conditional is backwards.
2008-12-03 19:03:40 +00:00
Joel Sherrill 9efa012d9b 2008-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/pipe/fifo.c: Actually disable initializing pipes as
	requested in confdefs.h.
2008-12-03 17:38:21 +00:00
Joel Sherrill 4c0d483b02 2008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h: Add disable of pipes by default since they
	use resources which are otherwise not accounted for. Eventually the
	resources will have to be properly configured.
2008-12-01 23:28:53 +00:00
Joel Sherrill d120078564 2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* libfs/Makefile.am: Add stub for devide filesystem for unix port.
	* libfs/src/devfs/devfs_unixstub.c: New file.
2008-12-01 17:37:01 +00:00
Joel Sherrill e65f596dfd 2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/include/rtems/rtems/region.h,
	rtems/include/rtems/rtems/support.h,
	rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c,
	rtems/src/workspace.c: Revert ssize_t patch.
2008-12-01 17:31:11 +00:00
Joel Sherrill c8f7b4e6ca 2008-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/Makefile.am, score/include/rtems/score/watchdog.h: Add
	_Watchdog_Report and _Watchdog_Report_chain as debug assist routines.
	They are NOT to be used in directives.
	* score/src/watchdogreport.c, score/src/watchdogreportchain.c:
	New files.
2008-11-26 16:38:06 +00:00
Joel Sherrill b2d67fdc44 2008-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/watchdogadjust.c, score/src/watchdogtickle.c: Spacing.
2008-11-25 22:29:58 +00:00
Joel Sherrill 94a88c1c95 2008-11-24 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1341/cpukit
	* sapi/include/confdefs.h: The following macros were missing
	the _Configure_From_workspace() wrapper on their size estimate:
	  + CONFIGURE_INTERRUPT_STACK_MEMORY
	  + CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API
	  + CONFIGURE_INTERRUPT_VECTOR_TABLE
	  + CONFIGURE_MEMORY_FOR_STATIC_EXTENSIONS
	In addition, there was a duplicate definition of
	CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API.
2008-11-24 19:50:06 +00:00
Ralf Corsepius ea5c9c660f 2008-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add AC_CHECK_FUNC's to check functions migrating
	into newlib.
2008-11-24 16:41:02 +00:00
Joel Sherrill 8d0fdc3ca0 2008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/psignal.h: Fix typo in converting method
	from macro to static inline.
2008-11-24 16:35:36 +00:00
Joel Sherrill d05ab3519a 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am, posix/include/rtems/posix/psignal.h: Add stubs for
	gettimer() and setitimer().
	* posix/src/getitimer.c, posix/src/setitimer.c: New files.
2008-11-20 21:52:19 +00:00
Joel Sherrill ceadb90a71 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am, posix/Makefile.am: Comment out including
	files which contain routines which are now provided by the newlib
	posix subdirectory.  Document a few which come from the unix directory.
2008-11-20 21:50:11 +00:00
Joel Sherrill db03bcc17c 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1340/cpukit
	* sapi/inline/rtems/chain.inl: Add rtems_chain_initialize to public
	chain API.
2008-11-20 21:12:59 +00:00
Joel Sherrill 7ff6115b8b 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/heap.h,
	score/include/rtems/score/protectedheap.h,
	score/include/rtems/score/wkspace.h, score/src/heap.c,
	score/src/heapallocate.c, score/src/heapallocatealigned.c,
	score/src/heapextend.c, score/src/heapresizeblock.c,
	score/src/heapsizeofuserarea.c, score/src/pheapgetblocksize.c,
	score/src/wkspace.c: Revert use of ssize_t. This type is not
	guaranteed to be able to represent a positive number greater than the
	size of a single allocatable object. We needed a type that is able to
	represent the size of a pool of multiple allocatable objects or
	potentially nearly all memory.
2008-11-20 20:01:13 +00:00
Joel Sherrill bd59b348c6 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Do not
	think about running init/fini on AVR. We do not know what mechanism
	it uses but this is not it.
2008-11-20 19:42:41 +00:00
Joel Sherrill c4c540124a 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1306/cpukit
	* posix/inline/rtems/posix/priority.inl: Eliminate hard coded numbers
	in favor of existing macros.
2008-11-20 19:19:16 +00:00
Joel Sherrill d2ccb32686 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am: Add dummy vfork() implementation.
	* posix/src/vfork.c: New file.
2008-11-20 16:56:53 +00:00
Joel Sherrill 00151313e7 2008-11-13 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1336/cpukit
	* sapi/inline/rtems/chain.inl: Add rtems_chain_prepend_unprotected and
	rtems_chain_append_unprotected.
2008-11-13 15:10:43 +00:00
Joel Sherrill f06e5a86b1 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am: Add getrusage().
	* libcsupport/src/getrusage.c: New file.
2008-11-12 15:36:49 +00:00
Joel Sherrill f10fe61bf0 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/timespecaddto.c: Fix typo.
2008-11-12 15:11:51 +00:00
Joel Sherrill 2e500def76 2008-11-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/ttyname.c: Change third parameter of ttyname to be
	size_t instead of int.
2008-11-07 16:56:40 +00:00
Joel Sherrill a2ddf1ca8b 2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* librpc/src/xdr/xdr_float.c: Add M32C, M32R, and Blackfin.
2008-11-05 21:51:45 +00:00
Joel Sherrill d10477877d 2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/threadhandler.c: M32R uses different name for init.
2008-11-05 21:50:11 +00:00
Joel Sherrill c41f9d6f23 2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am: Add _execve() so we can use newlib posix support
	directory and eliminate code in RTEMS.
	* posix/src/_execve.c: New file.
2008-11-05 21:48:48 +00:00
Joel Sherrill bc5d8704c9 2008-11-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1333/cpukit
	* libcsupport/include/rtems/termiostypes.h: Typo on type name -- should
	be rtems_device_minor_number.
2008-11-03 15:35:12 +00:00
Joel Sherrill 1fae7b43d7 2008-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1331/networking
	* libmisc/shell/shell.c, telnetd/check_passwd.c, telnetd/telnetd.c,
	telnetd/telnetd.h: Improve comments and explanation of options to
	rtems_telnetd_initialize. Add extra newline to login sequence from
	shell.
2008-10-15 17:37:16 +00:00
Joel Sherrill 05dbc0e0e3 Add PR. 2008-10-14 16:09:25 +00:00
Joel Sherrill 8e37731cd0 2008-10-14 Tim Cussins <timcussins@eml.cc>
* libcsupport/src/free.c: Should print begin field not start field.
2008-10-14 16:08:58 +00:00
Joel Sherrill e2324c081a 2008-10-14 Wei Shen <cquark@gmail.com>
* Makefile.am, preinstall.am, libcsupport/src/mknod.c,
	libcsupport/src/open.c, libcsupport/src/pipe.c, libfs/Makefile.am,
	libfs/preinstall.am, libfs/src/imfs/imfs.h,
	libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_debug.c,
	libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_initsupp.c,
	libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/imfs_stat.c,
	libfs/src/imfs/memfile.c: Initial commit of POSIX pipe support.
	* libfs/src/imfs/imfs_fifo.c, libfs/src/pipe/fifo.c,
	libfs/src/pipe/pipe.c, libfs/src/pipe/pipe.h: New files.
2008-10-14 15:06:25 +00:00
Joel Sherrill c1fe2a115a Fix formatting. 2008-10-14 14:49:00 +00:00
Thomas Doerfler 06c3530efc libnetworking/rtems/rtems_glue.c: Copy nothing if rtems_bsdnet_parse_driver_name() if namep is NULL.
include/rtems/status-checks.h: Added prefix "RTEMS" for all macros. Doxygen style comments.  Cleanup.
2008-10-10 15:56:32 +00:00