Commit Graph

55 Commits

Author SHA1 Message Date
Zenon
99d6172f06 Correct minor spelling and grammar errors
This work was performed as a GCI 2018 task.
2018-11-06 18:51:32 -06:00
Sebastian Huber
51b3cbca11 tests: Use rtems_task_exit()
Update #3533.
2018-10-05 13:41:07 +02:00
Sebastian Huber
b152d33ba5 fileio: Avoid deprecated rtems_disk_obtain()
Update #3358.
2018-08-07 07:17:19 +02:00
Sebastian Huber
16f3f107bc nvdisk: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:16 +02:00
Sebastian Huber
24b94c4771 ramdisk: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:16 +02:00
Sebastian Huber
af4355459e tests: Remove TEST_INIT
The TEST_EXTERN is a used only by the system.h style tests and they use
CONFIGURE_INIT appropriately.

Update #3170.
Update #3199.
2017-10-28 13:33:56 +02:00
Chris Johns
98c6d50145 testsuite: Use printk for all test output where possible.
- Remove the printf support leaving the direct printk support configured
  with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf
  call to printk.
- Control the test's single init for functions and global data with
  TEST_INIT and not CONFIGURE_INIT. They are now separate.

Updates #3170.
2017-10-23 16:25:45 +11:00
Sebastian Huber
80a13ec48d samples/fileio: Give command availability hint
Close #3088.
2017-08-24 08:44:22 +02:00
Sebastian Huber
11925eef78 Delete or rename MIN/MAX macros and defines
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
2014-11-21 08:52:29 +01:00
Sebastian Huber
fa028bb2ef shell: Do chroot() after successful login 2014-11-20 10:30:24 +01:00
Sebastian Huber
ab085c92eb samples/fileio: Fix warning 2014-11-20 10:30:23 +01:00
Sebastian Huber
acf9a8dd54 shell: Use crypt_r() in rtems_shell_login_check()
Use '*" to disable shell login instead of '!' according to the Linux man
page.  Use getpwnam_r() instead of getpwnam().  Do not access the user
environment directly.  Update the user environment only after a
successful login check.
2014-11-20 10:30:22 +01:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Christian Mauderer
6cd4a5ca2e cpukit/shell: Replace task variables with posix keys.
Use posix keys for current shell environment instead of task variables. With
this patch the shell needs one posix-key and one posix-key-value-pair
configured.

Update documentation for the shell.

Adapt samples/fileio:
- Add necessary objects.
- Add login function and custom device name for better testing of the shell.
2014-03-20 09:10:26 +01:00
Sebastian Huber
9391f6d663 tests/samples: Use <rtems/test.h> 2014-03-17 09:17:36 +01:00
Joel Sherrill
5f0cd3499c samples - Eliminate missing prototype warnings 2012-05-31 10:06:16 -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
Sebastian Huber
796967c3df libblock: Change bdbuf API
The functions
 o rtems_bdbuf_get(),
 o rtems_bdbuf_read(),
 o rtems_bdbuf_syncdev(), and
 o rtems_bdbuf_purge_dev(),
use now the disk device instead of the device identifier.  This makes
bdbuf independent of rtems_disk_obtain() and rtems_disk_release().  It
is the responsiblity of the file system to obtain the disk device.  This
also reduces the overhead to get a buffer.

The key for the AVL tree uses now the disk device instead of the device
identifier.  The pointer is interpreted as an unsigned integer.  This
reduces the memory overhead and makes the comparison operation a bit
faster.

Removed function rtems_bdbuf_purge_major().  This function was too
destructive and could have unpredictable side effects.
2012-03-13 12:24:18 +01:00
Ralf Corsepius
4534ba300e 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* fileio/init.c: Comment out setup_nvdisk (Unused).
	Make shell_nvdisk_trace, shell_nvdisk_erase, shell_bdbuf_trace,
	disk_test_set_block_size, disk_test_write_blocks, disk_test_block_sizes,
	parse_size_arg, create_ramdisk, create_nvdisk static.
	* nsecs/init.c: Make my_ctime, subtract_em static.
2011-12-13 09:36:01 +00:00
Ralf Corsepius
96bb783aa0 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* fileio/init.c: Explictly consts in size_t initializers
	(avoid overflows on 16bit-int targets).
2011-10-18 13:36:37 +00:00
Sebastian Huber
7c9d27e831 2011-09-16 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* fileio/fileio.scn: New file.
	* capture/init.c, fileio/init.c: Use rtems_shell_wait_for_input().
2011-09-16 09:23:19 +00:00
Chris Johns
7032a45830 2011-07-04 Chris Johns <chrisj@rtems.org>
* fileio/init.c, fileio/system.h: Add commands to
        create ram disks from the shell prompt. Helps testing.
2011-07-04 00:34:00 +00:00
Joel Sherrill
91c805472d 2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: Avoid use of deprecated rtems_clock_get() except in
	spclockget().
2011-06-11 16:41:56 +00:00
Joel Sherrill
7c1e69429a 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* base_sp/apptask.c, base_sp/init.c, fileio/init.c, fileio/system.h,
	nsecs/init.c, ticker/init.c, ticker/system.h, ticker/tasks.c: Remove
	warnings.
2011-05-05 16:45:40 +00:00
Ralf Corsepius
e3135514a8 Add HAVE_CONFIG_H. 2011-02-22 10:58:44 +00:00
Chris Johns
558a5f48fc 2010-06-02 Chris Johns <chrisj@rtems.org>
* fileio/init.c: Update to new mount API.
        * iostream/init.cc: Hack to work around confdefs.h in C++.
        * iostream/system.h: Add comment about base miniIMFS.
2010-06-02 00:47:15 +00:00
Joel Sherrill
3c02c9dd47 2010-03-12 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* fileio/init.c: Remove deprecation warnings.
2010-03-12 16:00:58 +00:00
Joel Sherrill
8c8e3e0977 2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: Fix warnings for ctype methods.
2010-03-11 19:13:13 +00:00
Ralf Corsepius
b1274bd94c Whitespace removal. 2009-11-30 03:33:25 +00:00
Ralf Corsepius
edfc0f9260 2009-10-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* fileio/init.c: Use %zd to print ssize_t.
2009-10-29 03:21:40 +00:00
Ralf Corsepius
a3b2830e0f Fix broken prints. 2009-10-24 05:51:06 +00:00
Thomas Doerfler
60e5832e23 interrupt handler type change 2009-10-21 13:24:35 +00:00
Joel Sherrill
99f0971146 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* cdtest/main.cc, fileio/init.c, fileio/system.h, pppd/pppdapp.c,
	ticker/system.h, ticker/tasks.c: Eliminate test routines
	TICKS_PER_SECOND and get_ticks_per_second() in favor of new
	rtems_clock_get_ticks_per_second().
2009-08-12 20:50:38 +00:00
Chris Johns
c0ec0d82d3 2009-04-28 Chris Johns <chrisj@rtems.org>
* fileio/init.c, fileio/system.h, iostream/init.cc,
        loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if
        BSP_SMALL_MEMORY is defined. Remove this code once a better way is
        supported by the build system.
2009-04-28 05:04:11 +00:00
Thomas Doerfler
e4bd96ec40 removed obsolete references to login.h 2009-04-14 10:22:53 +00:00
Joel Sherrill
6dcb3b0eb7 Fix Id string typo. 2009-03-29 23:14:58 +00:00
Joel Sherrill
06ac2e6f97 2009-03-29 Joel Sherrill <joel.sherrill@gmail.com>
* fileio/init.c: Change arguments to rtems_shell_init() to match
	new expectations.
2009-03-29 23:04:19 +00:00
Thomas Doerfler
7a18a320e4 Adapt to modified shell configuration 2009-02-27 11:13:52 +00:00
Joel Sherrill
527ecc7acf 2008-12-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: Add explicit creation of /etc/passwd and /etc/group so
	we have a test case for real password checking.
2008-12-09 19:34:04 +00:00
Joel Sherrill
339fd66572 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: When USE_SHELL not defined, do not attempt to
	configure shell.
2008-10-02 21:49:39 +00:00
Ralf Corsepius
f0157b8fd8 Convert to "bool". 2008-09-06 03:39:58 +00:00
Joel Sherrill
72cb077f39 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: New argument sequence for rtems_shell_init(). Also
	split on multiple lines and document each parameter.
2008-07-16 17:08:41 +00:00
Joel Sherrill
a645637b72 2008-04-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c, hello/system.h, minimum/init.c, unlimited/system.h:
	Use CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER where needed.
2008-04-17 22:46:15 +00:00
Joel Sherrill
aec29f178c 2008-01-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c, fileio/system.h, hello/init.c: Enable malloc
	statistics so shell output can be interesting.
2008-01-11 21:43:58 +00:00
Chris Johns
d2a488f7dd 2007-12-17 Chris Johns <chrisj@rtems.org>
* testsuites/samples/fileio/init.c: Change shell_* to
	rtems_shell_*. Add the mount file-system type of msdos.
2007-12-17 00:40:20 +00:00
Joel Sherrill
0e263c91e9 2007-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c, fileio/system.h: Increase stack requested for shell
	task. Turn on stack checking so the report is interesting.
2007-12-14 21:50:55 +00:00
Joel Sherrill
4c081a041f 2007-12-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: Add RTEMS Shell configuration and static configuration
	of user commands.
2007-12-11 21:33:31 +00:00
Thomas Doerfler
3d14a451e9 mproved gen5200 MSCAN driver
fixed synchronization bug between ata.c and bdbuf.c
2007-01-21 18:25:31 +00:00
Ralf Corsepius
d66557fac4 Switch back to include compile.am instead of amcompile.am 2005-11-07 09:09:26 +00:00
Ralf Corsepius
8f71a36f71 Remove stray white spaces. 2004-04-20 07:09:31 +00:00