Commit Graph

596 Commits

Author SHA1 Message Date
Sebastian Huber
5e86086f1e sapi: Use rtems_config*_get_microseconds_per_tick 2012-11-07 15:08:43 +01:00
Sebastian Huber
7a1e92a17a monitor: Support for system events 2012-11-02 16:06:40 +01:00
Sebastian Huber
990575c57f rtems: Reusable event implementation
Change event implementation to enable reuse for system events.
2012-10-30 18:00:33 +01:00
Sebastian Huber
47a3cd8f73 score: Work area initialization API change
The work areas (RTEMS work space and C program heap) will be initialized
now in a separate step and are no longer part of
rtems_initialize_data_structures().  Initialization is performed with
tables of Heap_Area entries.  This allows usage of scattered memory
areas present on various small scale micro-controllers.

The sbrk() support API changes also.  The bsp_sbrk_init() must now deal
with a minimum size for the first memory chunk to take the configured
work space size into account.
2012-10-25 14:54:06 +02:00
Ralf Corsépius
b1c4e92cee Make uid_buttons static.
Reorder include-files.
Remove stray blanks.
2012-10-19 14:15:48 +02:00
Joel Sherrill
d3c8602342 shell/dd-misc.c: Rename __unused to avoid conflict with new <sys/cdefs.h> 2012-09-05 12:25:38 -05:00
Ralf Corsépius
1c554014af Remove CVS-Ids. 2012-07-19 16:55:18 +02:00
Sebastian Huber
9f527308d7 libblock: Add block device statistics 2012-06-12 10:12:40 +02:00
Joel Sherrill
721fe34aae Fix C files which had two semi-colons at EOL 2012-05-31 15:34:36 -05:00
Sebastian Huber
4acbff6c8e shell/lsof: Use fprintf() instead of printk() 2012-05-24 17:39:03 +02:00
Joel Sherrill
65c6425de9 Remove CVS Id Strings (manual edits after script)
These modifications were required by hand after running the script.
In some cases, the file names did not match patterns. In others,
the format of the file did not match any common patterns.
2012-05-11 08:44:14 -05:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Ric Claus
4648adea97 PR 2021 - mdump address problem with volatile 2012-03-30 10:19:18 -05:00
Sebastian Huber
c649976859 libblock: New block IO control support functions 2012-03-13 12:24:17 +01:00
Sebastian Huber
3b7c123c8d Filesystem: Reference counting for locations
o A new data structure rtems_filesystem_global_location_t was
   introduced to be used for
    o the mount point location in the mount table entry,
    o the file system root location in the mount table entry,
    o the root directory location in the user environment, and
    o the current directory location in the user environment.
   During the path evaluation global start locations are obtained to
   ensure that the current file system instance will be not unmounted in
   the meantime.
 o The user environment uses now reference counting and is protected
   from concurrent access.
 o The path evaluation process was completely rewritten and simplified.
   The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation
   method.  Recursive calls in the path evaluation have been replaced
   with iteration to avoid stack overflows.  Only the evaluation of
   symbolic links is recursive.  No dynamic memory allocations and
   intermediate buffers are used in the high level path evaluation.  No
   global locks are held during the file system instance specific path
   evaluation process.
 o Recursive symbolic link evaluation is now limited by
   RTEMS_FILESYSTEM_SYMLOOP_MAX.  Applications can retrieve this value
   via sysconf().
 o The device file system (devFS) uses now no global variables and
   allocation from the workspace.  Node names are allocated from the
   heap.
 o The upper layer lseek() performs now some parameter checks.
 o The upper layer ftruncate() performs now some parameter checks.
 o unmask() is now restricted to the RWX flags and protected from
   concurrent access.
 o The fchmod_h and rmnod_h file system node handlers are now a file
   system operation.
 o The unlink_h operation has been removed.  All nodes are now destroyed
   with the rmnod_h operation.
 o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system
   operations.
 o The path evaluation and file system operations are now protected by
   per file system instance lock and unlock operations.
 o Fix and test file descriptor duplicate in fcntl().
 o New test fstests/fsnofs01.
2012-03-13 12:23:37 +01:00
Sebastian Huber
002affcfbe Avoid NULL pointer access 2012-02-13 16:42:08 +01:00
Joel Sherrill
fdcf6c11b1 PR 2001/shell - medit command argument parsing correction
"medit" overran the argument list, choking on the NULL pointer
following the last argument.

Note that "medit" still only does byte-sized accesses, which limits
its usefulness on most systems.

Author: Werner Almesberger <werner@almesberger.net>
Signed-off-by: Sebastien Bourdeauducq <sebastien@milkymist.org>
2012-02-03 16:05:50 -06:00
Joel Sherrill
6d1a1d3ebb PR 2012 - mdump/wdump shell cmds handle length arg incorrectly; add ldump cmd
* libmisc/shell/main_mdump.c: Reworked to fix bugs in handling of the
	length argument and to provide an "ldump" command.  This file now also
	supports the "wdump" command.  In addition, an RTEMS API function called
	rtems_mdump() is provided to allow easy dumping from application code.
	* libmisc/shell/main_mwdump.c: Obsolete file.
	* libmisc/Makefile.am: Removed main_mwdump.c
	* libmisc/shell/shellconfig.h: Added "ldump" command.
	* shell/memory.t: Added documentation for the "ldump" command

Signed-off-by: Ric Claus <claus@SLAC.Stanford.edu>
2012-02-02 15:02:16 -06:00
Joel Sherrill
61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Ralf Corsepius
13a69b9b23 2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/stackchk/check.c: Make Stack_check_Initialize,
	Stack_check_Dump_threads_usage static.
2011-12-06 15:22:13 +00:00
Ralf Corsepius
01d79edf78 2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/serdbg/serdbg.h: Add serdbg_init_dbg.
	* libmisc/serdbg/serdbgcnf.h:
	Remove conditional serdbg_init_dbg prototype.
2011-12-06 08:02:31 +00:00
Ralf Corsepius
3ab21dce11 2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/mouse/serial_mouse.c: Make serial_mouse_l_rint static.
2011-12-06 08:00:24 +00:00
Ralf Corsepius
6425dc5033 2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/monitor/mon-network.c: Include <rtems/monitor.h>.
	* libmisc/monitor/mon-object.c:
	Make rtems_monitor_object_canonical_next_remote,
	rtems_monitor_object_dump_1, rtems_monitor_object_dump_all static.
	* libmisc/monitor/mon-prmisc.c:
	Make rtems_monitor_dump_assoc_bitfield static.
	* libmisc/monitor/mon-symbols.c:
	Make rtems_monitor_symbol_dump_all static.
2011-12-06 07:34:48 +00:00
Ralf Corsepius
e8f0541c34 2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/capture/capture.c:
	Make RTEMS_CAPTURE_* defines unsigned (Avoid implicit
	sign-conversions).
	Make rtems_capture_trigger static (Missing prototypes).
	Make rtems_capture_trigger static (Missing prototypes).
	* libmisc/capture/capture.h:
	Make RTEMS_CAPTURE_WATCH, RTEMS_CAPTURE_TRACED unsigned (Avoid
	implicit sign conversions).
2011-12-05 17:31:19 +00:00
Ralf Corsepius
060092c0ef 2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/mouse/mouse_parser.c: Make MOU_Data static.
2011-12-05 16:53:55 +00:00
Ralf Corsepius
32f5014b51 2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/shell.h: Add rtems_shell_main_monitor.
	* libmisc/shell/cmds.c: Make rtems_shell_main_monitor non-static.
2011-12-05 09:46:57 +00:00
Ralf Corsepius
3237e88fa7 2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/main_mv.c: Add prototype for main_mv.
2011-12-05 05:04:49 +00:00
Ralf Corsepius
a8ed055437 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/main_cp.c: Include "internal.h".
	Make rtems_shell_main_cp non-static.
2011-12-04 18:27:40 +00:00
Ralf Corsepius
4326cdeed6 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/main_ls.c: Include "internal.h".
2011-12-04 18:25:45 +00:00
Ralf Corsepius
cb2464b256 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/main_rm.c: Remove decl of user_from_uid.
	Comment out decl of fflagstostr.
2011-12-04 18:22:14 +00:00
Ralf Corsepius
d7417a517f 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/pwcache.c: Include "internal.h".
	Make user_from_uid non-static.
2011-12-04 18:20:23 +00:00
Ralf Corsepius
5383441cf7 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/internal.h: Add user_from_uid, group_from_gid.
2011-12-04 18:18:52 +00:00
Ralf Corsepius
94547d1d8b 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/print-ls.c: Include "internal.h".
	* libmisc/shell/pwcache.c: Make user_from_uid static.
	* libmisc/shell/shell.c: Make rtems_shell_init_env,
	rtems_shell_env_free, rtems_shell_line_editor,
	rtems_shell_init_issue, rtems_shell_task static.
	* libmisc/shell/shell_cmdset.c: Make rtems_shell_add_topic static.
	* libmisc/shell/shell_makeargs.c: Include <rtems/shell.h>.
	* libmisc/shell/write_file.c: Include <rtems/shell.h>.
2011-12-04 11:57:51 +00:00
Ralf Corsepius
3421e5201f * libmisc/shell/main_help.c: Make rtems_shell_help_cmd,
rtems_shell_help static.
	* libmisc/shell/main_hexdump.c: Make main_hexdump static.
	* libmisc/shell/main_id.c: Make rtems_shell_main_id static.
	* libmisc/shell/main_ifconfig.c: Make rtems_shell_main_ifconfig static.
	* libmisc/shell/main_ln.c: Make rtems_shell_main_ln static.
	* libmisc/shell/main_logoff.c: Make rtems_shell_main_logoff static.
	* libmisc/shell/main_ls.c: Make rtems_shell_main_ls static.
	* libmisc/shell/main_mallocinfo.c: Include <rtems/libcsupport.h>.
	Remove private decls of malloc_info,
	rtems_shell_print_unified_work_area_message.
	Make rtems_shell_main_malloc_info static.
	* libmisc/shell/main_medit.c: Remove private decl of
	rtems_shell_main_mdump.
	Make rtems_shell_main_medit static.
	* libmisc/shell/main_mfill.c: Make rtems_shell_main_mfill static.
	* libmisc/shell/main_mkdir.c: Make rtems_shell_main_mkdir static.
	* libmisc/shell/main_mknod.c: Make rtems_shell_main_mknod static.
	* libmisc/shell/main_mmove.c: Remove private decl of
	rtems_shell_main_mdump.
	Make rtems_shell_main_mmove static.
	* libmisc/shell/main_mount.c: Make rtems_shell_main_mount static.
	* libmisc/shell/main_msdosfmt.c: Make rtems_shell_main_msdos_format
	static.
	* libmisc/shell/main_mv.c: Include "internal.h".
	Make rtems_shell_mv_exit, rtems_shell_main_mv static.
	Remove private decls of strmode rtems_shell_main_cp,
	rtems_shell_main_rm.
	* libmisc/shell/main_mwdump.c: Make rtems_shell_main_mwdump static.
	* libmisc/shell/main_netstats.c: Make rtems_shell_main_netstats
	static.
	* libmisc/shell/main_perioduse.c: Make rtems_shell_main_perioduse
	static.
	* libmisc/shell/main_pwd.c: Make rtems_shell_main_pwd static.
	* libmisc/shell/main_rm.c: Include "internal.h".
	Make rtems_shell_rm_exit static.
	Remove private decl of strmode.
	* libmisc/shell/main_rmdir.c: Make rtems_shell_main_rmdir static.
	libmisc/shell/main_route.c: Make rtems_shell_main_route static.
	* libmisc/shell/main_setenv.c: Make rtems_shell_main_setenv static.
	* libmisc/shell/main_sleep.c: Make rtems_shell_main_sleep static.
	* libmisc/shell/main_stackuse.c: Make rtems_shell_main_stackuse static.
	* libmisc/shell/main_time.c: Make rtems_shell_main_time static.
	* libmisc/shell/main_tty.c: Make rtems_shell_main_tty static.
	* libmisc/shell/main_umask.c: Make rtems_shell_main_umask static.
	* libmisc/shell/main_unmount.c: Make rtems_shell_main_unmount
	static.
	* libmisc/shell/main_unsetenv.c: Make rtems_shell_main_unsetenv
	static.
	* libmisc/shell/main_whoami.c: Make rtems_shell_main_whoami static.
	* libmisc/shell/main_wkspaceinfo.c: Make
	rtems_shell_main_wkspace_info static.
2011-12-04 10:22:51 +00:00
Ralf Corsepius
f1d9293ec8 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/cmds.c:
	Make rtems_shell_main_monitor static.
	* libmisc/shell/main_alias.c:
	Make rtems_shell_rtems_main_alias static.
	* libmisc/shell/main_blksync.c:
	Make rtems_shell_main_blksync static.
	* libmisc/shell/main_cat.c:
	Make rtems_shell_main_cat static.
	* libmisc/shell/main_chdir.c:
	Make rtems_shell_main_chdir static.
	* libmisc/shell/main_chmod.c:
	Make rtems_shell_main_chmod static.
	* libmisc/shell/main_chroot.c:
	Make rtems_shell_main_chroot static.
	* libmisc/shell/main_cp.c:
	Make rtems_shell_cp_exit, rtems_shell_main_cp static.
	* libmisc/shell/main_cpuuse.c:
	Make rtems_shell_main_cpuuse static.
	* libmisc/shell/main_date.c:
	Make rtems_shell_main_date static.
	* libmisc/shell/main_dd.c:
	Make rtems_shell_main_dd static.
	* libmisc/shell/main_echo.c:
	Make rtems_shell_main_echo static.
	* libmisc/shell/main_getenv.c:
	Make rtems_shell_main_getenv static.
	* libmisc/shell/main_halt.c:
	Make rtems_shell_main_halt static.
2011-12-04 09:51:48 +00:00
Ralf Corsepius
9cfd22236c 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/internal.h: #include "shell.h".
	Add various missing decls.
2011-12-04 09:42:29 +00:00
Ralf Corsepius
26597fc19b 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/cat_file.c: #include <rtems/shell.h>.
	* libmisc/shell/filemode.c: #include "internal.h".
	* libmisc/shell/shell.h: Declare functions "extern".
2011-12-04 09:39:44 +00:00
Ralf Corsepius
3cada05bfe 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/shell_cmdset.c: Remove superflous casts.
2011-12-04 08:53:25 +00:00
Joel Sherrill
ece175945c 2011-11-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1941/cpukit
	* libmisc/monitor/mon-server.c, score/include/rtems/system.h: Remove
	use of RTEMS_offset() in favor of standard offsetof(). This was
	undocumented and there was only one internal use. Change noted in
	4.11 release notes.
2011-11-28 17:51:47 +00:00
Sebastian Huber
b4f635e9d0 2011-11-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1924/cpukit
	* sapi/include/rtems/config.h: New fields stack_space_size,
	unified_work_area, and stack_allocator_avoids_work_space in
	rtems_configuration_table.
	* sapi/include/confdefs.h: Removed rtems_unified_work_area (this is
	now part of the Configuration).  Separate work space and stack space
	estimate.  Added CONFIGURE_TASK_STACK_ALLOCATOR_AVOIDS_WORK_SPACE
	configuration option.
	* libmisc/shell/main_wkspaceinfo.c, score/src/wkspace.c,
	libcsupport/src/malloc_initialize.c: Update due to API changes.
2011-11-10 14:40:13 +00:00
Joel Sherrill
d9bc968d5b 2011-11-07 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 1952/cpukit
	* libmisc/untar/untar.c: Add return code for failure when unable to
	write file.
2011-11-07 21:42:22 +00:00
Ralf Corsepius
243b1ccb5c 2011-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/monitor/mon-monitor.c (rtems_monitor_wakeup):
	Remove unused var "status" (Avoid warning).
2011-10-26 14:05:32 +00:00
Ralf Corsepius
76d04a0284 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/fts.c: Conditionally use var "nostat".
2011-10-18 09:21:32 +00:00
Ralf Corsepius
b0f6b6c7fb 2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
*  libmisc/monitor/mon-editor.c (rtems_monitor_task):
	Comment out unused vars "debugee", "rp", "fp".
2011-10-17 13:50:05 +00:00
Ralf Corsepius
e6db5073f9 2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/main_ls.c: Comment out unused var kflag.
2011-10-17 12:57:11 +00:00
Ralf Corsepius
2dc33993dd 2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/mouse/serial_mouse.c (serial_mouse_initialize):
	Remove unused var "status" (Avoid warnings).
2011-10-12 04:50:34 +00:00
Ralf Corsepius
764e0a752d 2011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/serdbg/serdbg.h (putDebugChar, getDebugChar):
	Remove duplicate decls.
2011-10-09 03:59:21 +00:00
Ralf Corsepius
f922d1d873 2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/uuid/gen_uuid.c: Introduce PRIutime_t, SCNutime_t and
	"utime_t" for 64bit-time_t support.
2011-10-02 10:37:28 +00:00
Ralf Corsepius
94107fa84a 2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/main_time.c: Introduce PRIdtime_t.
2011-10-02 08:15:02 +00:00
Sebastian Huber
6c5ee7f009 2011-09-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/shell/shell-wait-for-input.c: New file.
	* libmisc/Makefile.am: Reflect change above.
	* libmisc/shell/shell.h: Declare rtems_shell_wait_for_input().
2011-09-16 09:16:32 +00:00