summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rtems: Create message queue implementation headerSebastian Huber2013-07-221-0/+1
| | | | | | Move implementation specific parts of message.h and message.inl into new header file messageimpl.h. The message.h contains now only the application visible API.
* shell: Include missing header fileSebastian Huber2013-07-221-0/+1
|
* shell: Add df commandAndrei Mozzhuhin2013-05-162-0/+164
|
* shell: Fix NULL pointer accessAndreas Heinig2013-05-161-1/+1
|
* Header File Doxygen Enhancement Task #11Mathew Kallada2012-12-281-1/+1
|
* shell: Remove interface down warning in ifconfigSebastian Huber2012-12-181-4/+0
| | | | | Whether an interface down is supported or not depends on the interface driver.
* dosfs: Delete fattype parameter for msdos_format()Ralf Kirchner2012-12-051-24/+1
| | | | | | | | Delete fattype parameter of msdos_format_request_param_t because the FAT type is determined by cluster and disk size. Estimate FAT type and re-evaluate FAT type after exact parameter determination.
* dosfs: Add skip_alignment for msdos_format()Ralf Kirchner2012-12-051-2/+2
| | | | | | | | | | Add skip_alignment parameter of msdos_format_request_param_t. Delete cluster_align parameter of msdos_format_request_param_t. By default the FAT, data cluster, and root directory for FAT12 and FAT16 is aligned on a cluster boundary to optimize performance. Format changes throughout.
* Support additional shell keystrokes.Ric Claus2012-12-011-70/+150
| | | | | | | Emacs style keystrokes Ctrl-B, F, G, P, N, T and U are now supported as they are in bash. Also, commands invoked from the history are moved up in the history buffer when they are executed. Thus, the most recently executed command is always just one up-arrow (or Ctrl-P) keystroke away.
* Updated mount usage line.Ric Claus2012-12-011-8/+8
| | | | | The mount usage line didn't mention the '-o options' handled by the code, so I updated it.
* Updated mkdos options string.Ric Claus2012-12-011-1/+1
| | | | | The usage statement for the mkdos command was out of date with respect to the code, so I have updated it.
* shell/dd-misc.c: Rename __unused to avoid conflict with new <sys/cdefs.h>Joel Sherrill2012-09-051-1/+1
|
* libblock: Add block device statisticsSebastian Huber2012-06-122-0/+62
|
* shell/lsof: Use fprintf() instead of printk()Sebastian Huber2012-05-241-2/+6
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-1154-111/+0
| | | | | | | | | | | | 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.
* PR 2021 - mdump address problem with volatileRic Claus2012-03-301-9/+16
|
* libblock: New block IO control support functionsSebastian Huber2012-03-131-1/+1
|
* Filesystem: Reference counting for locationsSebastian Huber2012-03-132-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Avoid NULL pointer accessSebastian Huber2012-02-131-3/+5
|
* PR 2001/shell - medit command argument parsing correctionJoel Sherrill2012-02-031-3/+1
| | | | | | | | | | | "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>
* PR 2012 - mdump/wdump shell cmds handle length arg incorrectly; add ldump cmdJoel Sherrill2012-02-023-132/+167
| | | | | | | | | | | | | * 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>
* 2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-052-1/+4
| | | | | * libmisc/shell/shell.h: Add rtems_shell_main_monitor. * libmisc/shell/cmds.c: Make rtems_shell_main_monitor non-static.
* 2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-051-0/+4
| | | | * libmisc/shell/main_mv.c: Add prototype for main_mv.
* 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-041-1/+3
| | | | | * libmisc/shell/main_cp.c: Include "internal.h". Make rtems_shell_main_cp non-static.
* 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-041-0/+1
| | | | * libmisc/shell/main_ls.c: Include "internal.h".
* 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-041-1/+2
| | | | | * libmisc/shell/main_rm.c: Remove decl of user_from_uid. Comment out decl of fflagstostr.
* 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-041-2/+3
| | | | | * libmisc/shell/pwcache.c: Include "internal.h". Make user_from_uid non-static.
* 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-041-0/+2
| | | | * libmisc/shell/internal.h: Add user_from_uid, group_from_gid.
* 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-046-7/+11
| | | | | | | | | | | * 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>.
* * libmisc/shell/main_help.c: Make rtems_shell_help_cmd,Ralf Corsepius2011-12-0433-51/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-0414-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-041-3/+17
| | | | | * libmisc/shell/internal.h: #include "shell.h". Add various missing decls.
* 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-043-17/+20
| | | | | | * 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 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-041-4/+4
| | | | * libmisc/shell/shell_cmdset.c: Remove superflous casts.
* 2011-11-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-11-101-3/+1
| | | | | | | | | | | | | 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-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-181-1/+11
| | | | * libmisc/shell/fts.c: Conditionally use var "nostat".
* 2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-171-0/+4
| | | | * libmisc/shell/main_ls.c: Comment out unused var kflag.
* 2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-021-1/+11
| | | | * libmisc/shell/main_time.c: Introduce PRIdtime_t.
* 2011-09-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-09-162-0/+107
| | | | | | * 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-07-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-07-071-10/+10
| | | | | | * libblock/src/nvdisk-sram.c, libi2c/libi2c.c, libmisc/shell/main_msdosfmt.c: Eliminate use of GNU old-style field designator extension as recommended by clang.
* 2011-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-06-241-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/rtems/bspIo.h, include/rtems/concat.h, include/rtems/endian.h, include/rtems/fs.h, include/rtems/irq.h, include/rtems/pci.h, include/rtems/userenv.h, libblock/include/rtems/flashdisk.h, libblock/include/rtems/nvdisk-sram.h, libblock/include/rtems/nvdisk.h, libcsupport/include/clockdrv.h, libcsupport/include/console.h, libcsupport/include/iosupp.h, libcsupport/include/spurious.h, libcsupport/include/motorola/mc68230.h, libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/error.h, libcsupport/include/rtems/framebuffer.h, libcsupport/include/rtems/gxx_wrappers.h, libcsupport/include/rtems/libcsupport.h, libcsupport/include/rtems/libio_.h, libcsupport/include/rtems/malloc.h, libcsupport/include/rtems/termiostypes.h, libcsupport/include/sys/statvfs.h, libcsupport/include/sys/termios.h, libcsupport/include/sys/utsname.h, libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h, libcsupport/include/zilog/z8536.h, libfs/src/imfs/imfs.h, libfs/src/pipe/pipe.h, libmisc/capture/capture-cli.h, libmisc/capture/capture.h, libmisc/cpuuse/cpuuse.h, libmisc/devnull/devnull.h, libmisc/devnull/devzero.h, libmisc/dumpbuf/dumpbuf.h, libmisc/fb/fb.h, libmisc/fb/mw_uid.h, libmisc/mouse/mouse_parser.h, libmisc/shell/shellconfig.h, libmisc/stringto/stringto.h, libmisc/untar/untar.h, libnetworking/memory.h, posix/include/aio.h, posix/include/mqueue.h, posix/include/semaphore.h, posix/include/rtems/posix/aio_misc.h, posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/config.h, posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/posixapi.h, posix/include/rtems/posix/priority.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/ptimer.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/semaphore.h, posix/include/rtems/posix/sigset.h, posix/include/rtems/posix/spinlock.h, posix/include/rtems/posix/threadsup.h, posix/include/rtems/posix/time.h, posix/include/rtems/posix/timer.h, posix/inline/rtems/posix/barrier.inl, posix/inline/rtems/posix/cond.inl, posix/inline/rtems/posix/mqueue.inl, posix/inline/rtems/posix/mutex.inl, posix/inline/rtems/posix/priority.inl, posix/inline/rtems/posix/pthread.inl, posix/inline/rtems/posix/rwlock.inl, posix/inline/rtems/posix/semaphore.inl, posix/inline/rtems/posix/spinlock.inl, posix/inline/rtems/posix/timer.inl, rtems/mainpage.h, rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/object.h, rtems/include/rtems/rtems/timer.h, rtems/inline/rtems/rtems/barrier.inl, rtems/inline/rtems/rtems/timer.inl, rtems/src/semtranslatereturncode.c, sapi/include/rtems/config.h, sapi/include/rtems/fatal.h, sapi/include/rtems/mptables.h, score/include/rtems/score/object.h, score/include/rtems/score/priority.h, score/inline/rtems/score/object.inl, score/inline/rtems/score/priority.inl: Add @file Doxygen directives and descriptions to files which originated with RTEMS. This improves the file list page generated by Doxygen.
* 2011-05-11 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-05-111-1/+1
| | | | * libmisc/shell/main_msdosfmt.c: Fixed NULL pointer access.
* Add local version of __unused macro.Ralf Corsepius2011-03-242-1/+8
|
* 2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-03-151-10/+3
| | | | | * libmisc/shell/main_setenv.c: Revert after discussion. Mark as intentional in Coverity.
* 2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-03-151-3/+10
| | | | | * libmisc/shell/main_setenv.c: Address Coverity issue 134 which recommends using strnXXX methods.
* 2011-03-15 Chris Johns <chrisj@rtems.org>Chris Johns2011-03-151-2/+0
| | | | | | | | | | | | | | | | | | PR 1763/shell * libmisc/shell/hexdump-conv.c: Remove debug hacks. PR 1757/filesystem * libfs/src/rfs/rtems-rfs-block-pos.h, libfs/src/rfs/rtems-rfs-block.h, libfs/src/rfs/rtems-rfs-file.c, libfs/src/rfs/rtems-rfs-rtems-file.c: Set the file size in iop-size when a file is open. Fix lseek to end of file then write for sizes less than half the file system block size. * libfs/src/rfs/rtems-rfs-rtems-dev.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h: Fix the fstat and fchmod calls due to the change in the iop struct where pathinfo went away. The node_access field in pathinfo was overloaded.
* 2011-02-17 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-02-171-4/+4
| | | | | | | | * libblock/include/rtems/bdpart.h (rtems_bdpart_format): Preserve previous API. * libblock/src/bdpart-create.c, libblock/src/bdpart-read.c, libblock/src/bdpart-write.c: Reflect changes above. * libmisc/shell/fdisk.c: Reflect changes above.
* 2011-02-10 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-111-4/+4
| | | | * libmisc/shell/fdisk.c: Reflect changes above.
* 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-025-15/+14
| | | | | | | | | * libmisc/shell/hexdump-display.c: Eliminate bcopy, bzero, bcmp, index (Obsolete). * libmisc/shell/hexdump-parse.c: Eliminate index (Obsolete). * libmisc/shell/hexsyntax.c: Eliminate rindex (Obsolete). * libmisc/shell/main_hexdump.c: Eliminate rindex (Obsolete). * libmisc/shell/main_rm.c: Eliminate rindex (Obsolete).
* 2011-01-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-01-171-3/+3
| | | | | * libmisc/shell/main_dd.c: Make symbol unique to avoid conflict with same name in <sys/stat.h>.