Commit Graph
5440 Commits
Author SHA1 Message Date
Joel Sherrill 6be8a839ce 2008-04-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/key.c: Include <limits.h>
	* posix/src/psignal.c, rtems/src/tasks.c: Do not attempt to process
	a NULL extension block.
2008-04-18 15:01:36 +00:00
Joel Sherrill 547af382bd 2008-04-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c: Add comment.
2008-04-18 13:47:59 +00:00
Joel Sherrill df0bfdf068 2008-04-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/dummy/dummy.c, sapi/include/confdefs.h: Add checks for
	application configuration errors. If any POSIX objects or a POSIX
	init thread is configured without POSIX being configure, then error
	out. Similarly for ITRON. Add
	CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER configuration
	parameter so the application has to explicitly configure the Clock
	driver in or out if the Timer driver is not configured. Also verify
	RTEMS was built for multiprocessing, if the user tries to configure a
	multiprocessing application.
2008-04-17 22:42:10 +00:00
Joel Sherrill 4f2cd78838 2008-04-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Add arm_cpu_mode so ARM BSP can overrid default value for
	cpsr.
2008-04-17 22:42:03 +00:00
Chris Johns 55c64fc9cd 2008-04-12 Chris Johns <chrisj@rtems.org>
* libmisc/shell/shell.c, libmisc/shell/shell.h,
	libmisc/shell/shell_script.c: Add support to echo the commands to
	stdout. This is useful with the -v script option to show commands
	as the run. Also added support to chdir to the directory the task
	invoking the script is in.
	* libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c,
	libmisc/shell/utils-cp.c: Update tro the latest FreeBSD version.
	* libcsupport/Makefile.am, libcsupport/src/fchown.c: Add fchown
	support.
2008-04-11 22:57:54 +00:00
Joel Sherrill 377cf106dd 2008-04-09 Madhusudan.C.S <madhusudancs@gmail.com>
* score/include/rtems/score/tod.h: Fix typo.
2008-04-09 18:27:02 +00:00
Chris Johns 8c422e2346 2008-04-08 Chris Johns <chrisj@rtems.org>
* libmisc/shell/shell.c: Copy the cmd line to a buffer to split
	into argv parts. Was using the command line history buffer so the
	history was being corrupted.
2008-04-08 04:53:26 +00:00
Chris Johns ea90df234a 2008-04-03 Chris Johns <chrisj@rtems.org>
* libfs/src/nfsclient/src/librtemsNfs.h,
	libfs/src/nfsclient/src/nfs.c: Remove CEXP references. CEXP is
	external to RTEMS and even if in the cpukit it should not cross
	reference in this way.
	* libmisc/shell/shell_getchar.c: New. Taken from the monitor.
	* libmisc/Makefile.am: Add shell_getchar.c and clean up a little
	in the shell area.
	* libmisc/shell/shell.c, libmisc/shell/shell.h: Add line editting
	support.
2008-04-03 03:13:24 +00:00
Chris Johns 5fd92cccfd 2008-03-29 Chris Johns <chrisj@rtems.org>
* librpc/include/rpc/clnt.h: Added the missing __BEGIN_DECLS as
	reported to the mailing list by Pierre Kestener
	(pierre.kestener@cea.fr).
2008-03-29 05:08:24 +00:00
Till Straumann 03c6b7748e 2008-03-25 Till Straumann <strauman@slac.stanford.edu>
* shttpd/log.c: Activate SPLIT_SNPRINTF for gcc <= 4.2.3 and
	  coldfire.
2008-03-25 19:24:24 +00:00
Joel Sherrill 9d7739369f 2008-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/cmds.c: Directly register the command structure to
	avoid unnecessary duplication of static strings. We know best this
	time.
2008-03-12 16:20:07 +00:00
Joel Sherrill 2f99eeb035 2008-03-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h: Do not reserve 2 * minimum stack size
	for the ITRON initialization tasks ALL the time.
	Do not reserve memory for the object name table since it does not
	exist any longer.
	* sapi/include/rtems/sptables.h: Fix typo.
2008-03-11 20:59:58 +00:00
Joel Sherrill d7d7859166 2008-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/Makefile.am, rtems/include/rtems/rtems/clock.h,
	rtems/src/clockget.c:
	* rtems/src/clockgetsecondssinceepoch.c,
	rtems/src/clockgettickspersecond.c,
	rtems/src/clockgettickssinceboot.c, rtems/src/clockgettod.c,
	rtems/src/clockgettodtimeval.c: New files.
	Refactored rtems_clock_get into 5 methods which are single purpose
	and more strongly typed.  They are:
	    rtems_clock_get_tod - Get TOD in Classic API structure
	    rtems_clock_get_tod_timeval - Get TOD in struct timeval
	    rtems_clock_get_seconds_since_epoch - Get TOD as seconds since 1988
	    rtems_clock_get_ticks_since_boot - Get ticks since boot
	    rtems_clock_get_ticks_per_second - Get ticks per second
2008-03-11 20:07:49 +00:00
Joel Sherrill 85659eeeb6 2008-03-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_cp.c, libmisc/shell/main_netstats.c,
	libmisc/shell/shell_script.c: Add memset() of getopt_data to
	ensure it is zeroed out each time we use getopt_r().
	* libmisc/shell/shell.c: Do not echo commands if input is not a tty.
	This makes the scripts behave more like UNIX scripts.
2008-03-07 20:09:36 +00:00
Joel Sherrill df96913ae7 2008-03-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/Makefile.am: Make clock_settime() available always just like
	clock_gettime().
2008-03-07 17:41:53 +00:00
Joel Sherrill 797df41c3d 2008-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/copyrt.h: Update year.
2008-03-05 03:08:49 +00:00
Joel Sherrill 8ac8cb22a9 2008-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/gxx_wrappers.c: Add rtems_gxx_mutex_destroy as needed
	by gcc newer than the 4.3 release series.
2008-03-05 03:07:36 +00:00
Joel Sherrill a3ddb08bec 2008-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am, libmisc/shell/main_cp.c,
	libmisc/shell/main_cpuuse.c, libmisc/shell/main_date.c,
	libmisc/shell/main_mallocinfo.c, libmisc/shell/main_netstats.c,
	libmisc/shell/main_perioduse.c, libmisc/shell/main_stackuse.c,
	libmisc/shell/main_wkspaceinfo.c, libmisc/shell/print_heapinfo.c,
	libmisc/shell/shell.c, libmisc/shell/shell.h,
	libmisc/shell/shell_makeargs.c, libmisc/shell/shellconfig.c,
	libmisc/shell/shellconfig.h, libmisc/shell/write_file.c: Add initial
	capability to automatically execute a script from the filesystem. Add
	echo command from NetBSD and sleep command.
	* libmisc/shell/main_echo.c, libmisc/shell/main_sleep.c,
	libmisc/shell/shell_script.c: New files.
2008-03-05 02:49:35 +00:00
Joel Sherrill 5088d97838 2008-02-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/rtems/itron/task.h, itron/src/cre_tsk.c,
	posix/src/pthreadcreate.c, rtems/src/taskcreate.c,
	rtems/src/taskdelete.c, rtems/src/timerserver.c,
	score/src/threadclose.c, score/src/threadcreateidle.c,
	score/src/threadinitialize.c: Switch task create and delete
	operations to using API Allocator Mutex. This moves almost all uses
	of the RTEMS Workspace from dispatching disabled to mutex protected
	which should improve deterministic behavior. The implementation was
	carefully done to allow task create and delete extensions to invoke
	more services. In particular, a task delete extension should be able
	to do mutex and file operations.
2008-02-28 16:15:35 +00:00
Joel Sherrill 45443d125c 2008-02-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am: Turn on NFS mount support when networking is
	enabled.
2008-02-28 16:10:29 +00:00
Joel Sherrill 46dfa1c7ba 2008-02-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/chroot.c: Formatting.
2008-02-28 16:07:57 +00:00
Joel Sherrill dfe0e5833a 2008-02-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/cat_file.c, libmisc/shell/main_alias.c,
	libmisc/shell/main_blksync.c, libmisc/shell/main_cat.c,
	libmisc/shell/main_chdir.c, libmisc/shell/main_chmod.c,
	libmisc/shell/main_chroot.c, libmisc/shell/main_cpuuse.c,
	libmisc/shell/main_date.c, libmisc/shell/main_help.c,
	libmisc/shell/main_id.c, libmisc/shell/main_logoff.c,
	libmisc/shell/main_ls.c, libmisc/shell/main_mallocinfo.c,
	libmisc/shell/main_mdump.c, libmisc/shell/main_medit.c,
	libmisc/shell/main_mfill.c, libmisc/shell/main_mkdir.c,
	libmisc/shell/main_mmove.c, libmisc/shell/main_mount.c,
	libmisc/shell/main_mount_nfs.c, libmisc/shell/main_msdosfmt.c,
	libmisc/shell/main_mwdump.c, libmisc/shell/main_perioduse.c,
	libmisc/shell/main_pwd.c, libmisc/shell/main_rm.c,
	libmisc/shell/main_rmdir.c, libmisc/shell/main_stackuse.c,
	libmisc/shell/main_tty.c, libmisc/shell/main_umask.c,
	libmisc/shell/main_unmount.c, libmisc/shell/main_whoami.c,
	libmisc/shell/shell.h: Clean up done while writing documentation.
	Some command improvements such as date now allows setting of the
	current TOD. Often commands did not use stdout/stderr per
	expectations and did not return -1 on an error.
2008-02-27 21:52:16 +00:00
Joel Sherrill 58d38a0c76 2008-02-26 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, libfs/Makefile.am: Add nfsclient to cpukit. Although
	the use of RPC/XDR could be an issue, the code does build multilib
	across all targets. There are a few remaining warnings to deal with.
	* libfs/src/nfsclient/.cvsignore, libfs/src/nfsclient/ChangeLog.slac,
	libfs/src/nfsclient/LICENSE, libfs/src/nfsclient/Makefile.am,
	libfs/src/nfsclient/README, libfs/src/nfsclient/preinstall.am,
	libfs/src/nfsclient/rfc1094.txt,
	libfs/src/nfsclient/proto/mount_prot.h,
	libfs/src/nfsclient/proto/mount_prot.x,
	libfs/src/nfsclient/proto/mount_prot_xdr.c,
	libfs/src/nfsclient/proto/nfs_prot.h,
	libfs/src/nfsclient/proto/nfs_prot.x,
	libfs/src/nfsclient/proto/nfs_prot_xdr.c,
	libfs/src/nfsclient/src/cexphelp.c,
	libfs/src/nfsclient/src/dirutils.c,
	libfs/src/nfsclient/src/librtemsNfs.h, libfs/src/nfsclient/src/nfs.c,
	libfs/src/nfsclient/src/nfs.modini.c,
	libfs/src/nfsclient/src/nfsTest.c, libfs/src/nfsclient/src/rpcio.c,
	libfs/src/nfsclient/src/rpcio.h,
	libfs/src/nfsclient/src/rpcio.modini.c,
	libfs/src/nfsclient/src/sock_mbuf.c,
	libfs/src/nfsclient/src/xdr_mbuf.c: New files.
2008-02-26 19:23:53 +00:00
Joel Sherrill c2564b6c4a 2008-02-26 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/rtems/config.h, sapi/include/rtems/sptables.h: Add
	missing field to default multiprocessing configuration table. Also
	document fields in Doxygen format.
2008-02-26 19:21:44 +00:00
Joel Sherrill a409c80ec4 2008-02-26 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/src/regionmp.c, score/src/objectnametoidstring.c: Fix some
	warnings.
2008-02-26 19:20:36 +00:00
Joel Sherrill 253e4cf38f Update copyright date. 2008-02-26 16:35:47 +00:00
Joel Sherrill 6cf00455c4 2008-02-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add netstats
	command to access statistics reporting functions in TCP/IP stack.
	* libmisc/shell/main_netstats.c: New file.
2008-02-20 22:51:14 +00:00
Joel Sherrill 49cff0fc27 2008-02-20 Alexandru Bugnar <a-bugnar@criticalsoftware.com>
PR 1278/cpukit
	* cpu.c: Fix incorrect bit manipulation on returning old address of raw
	trap handler.
2008-02-20 21:54:28 +00:00
Ralf Corsepius 3556e40610 2008-02-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/old-exceptions/cpu.h: Remove (Abandoned).
	* rtems/score/cpu.h: Remove ref to rtems/old-exceptions/cpu.h.
	* Makefile.am: Remove ref to rtems/old-exceptions/cpu.h.
2008-02-20 03:03:16 +00:00
Ralf Corsepius d11ee737f8 Regenerate. 2008-02-20 03:03:04 +00:00
Ralf Corsepius a320b269b1 Remove ref to rtems/old-exceptions/cpu.h. 2008-02-20 03:02:36 +00:00
Ralf Corsepius 70f326cf3f Remove (Abandoned). 2008-02-20 02:59:59 +00:00
Joel Sherrill 54b2e4b926 2008-02-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am, libmisc/shell/main_wkspaceinfo.c,
	libmisc/shell/shell.c, libmisc/shell/shellconfig.h: Add route and
	ifconfig commands. The code for these was previously in the
	networking guide. Disable NFS filesystem mount until that code is in
	cpukit.
	* libmisc/shell/main_ifconfig.c, libmisc/shell/main_route.c: New files.
2008-02-19 19:44:21 +00:00
Ralf Corsepius a5edbb6d5b 2008-02-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/preinstall.am,  libcsupport/preinstall.am:
	Revert Joel's  2008-01-31 screw up.
2008-02-18 17:46:52 +00:00
Ralf Corsepius 7597fbf00c Revert Joel's 2008-01-31 screw up. 2008-02-18 17:45:41 +00:00
Ralf Corsepius b6d64cd3da This commit was generated by cvs2svn to compensate for changes in r16912,
which included commits to RCS files with non-trunk default branches.
2008-02-18 02:50:09 +00:00
Ralf Corsepius 13d404a4eb Import from zlib-1.2.4 2008-02-18 02:50:09 +00:00
Ralf Corsepius d0d8706088 Import from zlib-1.2.4 2008-02-17 18:53:34 +00:00
Ralf Corsepius c40fe67e60 2008-02-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/include/rtems/posix/timer.h: Add c++ guards.
2008-02-15 07:42:13 +00:00
Ralf Corsepius c49b7ce289 Add c++ guards. 2008-02-15 07:42:03 +00:00
Ralf Corsepius 023a3830f8 2008-02-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/src/cond.c, posix/src/mutex.c, posix/src/pbarrier.c,
	posix/src/prwlock.c, posix/src/pspin.c: Include <limits.h>.
2008-02-15 07:40:55 +00:00
Ralf Corsepius 00760e7ef3 include <limits.h> 2008-02-15 07:39:27 +00:00
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 9184270ac4 2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/mqueueunlink.c, score/Makefile.am,
	score/include/rtems/score/object.h,
	score/inline/rtems/score/object.inl: Enhance
	_Objects_Namespace_remove() to handle freeing object names which are
	strings. All changed _Objects_Close() to call
	_Objects_Namespace_remove(). The resulting code was then moved from
	inline routines to function calls.
	* score/src/objectclose.c, score/src/objectnamespaceremove.c: New files.
2008-02-06 23:54:55 +00:00
Joel Sherrill 6728035e8b 2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/printk.c: Added width and padding for %s.
	* libmisc/cpuuse/cpuusagereport.c: Support object names that are
	strings longer than 4 chanracters.
2008-02-06 23:15:57 +00:00
Joel Sherrill 4273e70b1c 2008-02-06 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1277/networking
	* libnetworking/netinet/in_cksum_i386.h: Use q instead of r in
	constraint for assembly language. This restricts the register choice
	to the a-d registers.
2008-02-06 16:59:31 +00:00
Joel Sherrill 5c62b53a64 2008-02-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/kern/uipc_socket2.c,
	libnetworking/netinet/tcp_usrreq.c,
	libnetworking/netinet/udp_usrreq.c,
	libnetworking/rtems/rtems_bsdnet.h, libnetworking/rtems/rtems_glue.c:
	Add configuration parameters for network stack efficiency multiplier
	and default socket buffer sizes. Change default multiplier from 8 to
	2 to match GNU/Linux. This has no impact on performance on the BSPs
	tested.
2008-02-05 22:29:19 +00:00
Jennifer Averett 6d4940d508 2008-02-04 Jennifer Averett <jennifer.averett@OARcorp.com>
* rtems/Makefile.am, rtems/include/rtems/rtems/support.h: Added
	workspace manipulation routines for testing.
	* rtems/src/workspace.c: New file.
2008-02-04 19:37:46 +00:00
Joel Sherrill 8932955e9a 2008-02-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/rtemsobjectsetname.c, score/src/objectgetinfoid.c,
	score/src/objectgetnameasstring.c, score/src/objectidtoname.c: Handle
	Object Id of SELF.
2008-02-04 17:16:37 +00:00
Joel Sherrill e889a857cd 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/clockgettime.c, posix/src/clocksettime.c,
	Minor modifications to improve testability.
	* posix/src/pthreadcreate.c: Add NULL check for thread entry.
2008-02-01 00:44:15 +00:00