summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/cmds.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add __attribute__((unused)) to unused function args.Ralf Corsepius2009-01-021-1/+1
|
* 2008-12-19 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-12-191-23/+24
| | | | | | | | * libblock/src/ide_part_table.c: Fixed NULL pointer access. * libmisc/monitor/mon-command.c, libmisc/monitor/mon-editor.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h, libmisc/shell/cmds.c: The list of registered monitor commands is now private and only accessible via a lookup and iterate function.
* 2008-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-12-181-1/+1
| | | | | * libmisc/shell/cmds.c: Revert back to public. Used to execute monitor commands in test code.
* 2008-12-18 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-12-181-27/+35
| | | | | | | | | | | | | | | | | | | | | | * libmisc/serdbg/termios_printk.c, libmisc/serdbg/termios_printk.h: Fixed incompatible return value. * libmisc/cpuuse/cpuusagereport.c: Changed output format. * libmisc/Makefile.am, libmisc/monitor/mon-editor.c: New file. * libmisc/capture/capture-cli.c, libmisc/monitor/mon-command.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c, libmisc/monitor/mon-prmisc.c, libmisc/monitor/mon-symbols.c, libmisc/monitor/monitor.h, libmisc/shell/cat_file.c, libmisc/shell/cmds.c, libmisc/shell/internal.h, libmisc/shell/main_help.c, libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/shell/shell_cmdset.c, libmisc/shell/shell_getchar.c, libmisc/shell/str2int.c: Various global data is now read only. Added 'const' qualifier to many pointer parameters. It is no longer possible to remove monitor commands. Moved monitor line editor into a separate file to avoid unnecessary dependencies.
* 2008-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-03-121-3/+20
| | | | | | * libmisc/shell/cmds.c: Directly register the command structure to avoid unnecessary duplication of static strings. We know best this time.
* 2007-12-17 Chris Johns <chrisj@rtems.org>Chris Johns2007-12-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libnetworking/rtems/tftp.h: Provide a decl to the TFTP file system opts table. * libnetworking/rtems/ftpfs.h: Provide a decl to the FTP file system opts table. * libmisc/Makefile.am: Add the mount command and supporting files. * libmisc/preinstall.am: Rebuilt. * libmisc/shell/cat_file.c, libmisc/shell/cmds.c, libmisc/shell/main_alias.c, libmisc/shell/main_cat.c, libmisc/shell/main_cd.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_dir.c, libmisc/shell/main_exit.c, libmisc/shell/main_help.c, libmisc/shell/main_id.c, libmisc/shell/main_logoff.c, libmisc/shell/main_ls.c, libmisc/shell/main_mallocdump.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_mwdump.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_whoami.c, libmisc/shell/shell.c, libmisc/shell/shell_cmdset.c, libmisc/shell/shell_makeargs.c, libmisc/shell/str2int.c, libmisc/shell/write_file.c: Move all shell_* types, variables and functions to rtems_shell_* to avoid namespace clashes with applications. The is an RTEMS shell after all. * libmisc/shell/shell.h, libmisc/shell/internal.h, libmisc/shell/shellconfig.h: Move all shell_* types, variables and functions to rtems_shell_* to avoid namespace clashes with applications. Add the mount command supporting types. * libmisc/shell/main_mount.c, libmisc/shell/main_mount_ftp.c, libmisc/shell/main_mount_msdos.c, libmisc/shell/main_mount_nfs.c, libmisc/shell/main_mount_tftp.c: New.
* 2007-12-11 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-12-111-14/+6
| | | | | | | | | | * libmisc/Makefile.am, libmisc/shell/cmd_help.c, libmisc/shell/cmds.c, libmisc/shell/internal.h, libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/shell/shellconfig.h: Command set processing now separated from main command loop. Addition of user commands and aliases tested. Monitor registration now explicit. * libmisc/shell/shell_cmdset.c, libmisc/shell/shell_makeargs.c, libmisc/shell/write_file.c: New files.
* 2007-12-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-12-101-490/+23
| | | | | | | | | | | | | | | | | | | | | | | | | * ChangeLog, preinstall.am, libmisc/Makefile.am, libmisc/shell/cmds.c, libmisc/shell/shell.c, libmisc/shell/shell.h: Split shell commands into multiple files and add initial stages of command configuration. This seems to work but the monitor commands need to be integrated this way and the ability to configure user commands needs to be tested. * libmisc/shell/cat_file.c, libmisc/shell/cmd_alias.c, libmisc/shell/cmd_cat.c, libmisc/shell/cmd_cd.c, libmisc/shell/cmd_chdir.c, libmisc/shell/cmd_chmod.c, libmisc/shell/cmd_chroot.c, libmisc/shell/cmd_date.c, libmisc/shell/cmd_dir.c, libmisc/shell/cmd_exit.c, libmisc/shell/cmd_help.c, libmisc/shell/cmd_id.c, libmisc/shell/cmd_logoff.c, libmisc/shell/cmd_ls.c, libmisc/shell/cmd_mallocdump.c, libmisc/shell/cmd_mdump.c, libmisc/shell/cmd_medit.c, libmisc/shell/cmd_mfill.c, libmisc/shell/cmd_mkdir.c, libmisc/shell/cmd_mmove.c, libmisc/shell/cmd_mwdump.c, libmisc/shell/cmd_pwd.c, libmisc/shell/cmd_rm.c, libmisc/shell/cmd_rmdir.c, libmisc/shell/cmd_tty.c, libmisc/shell/cmd_umask.c, libmisc/shell/cmd_whoami.c, libmisc/shell/internal.h, libmisc/shell/shellconfig.c, libmisc/shell/shellconfig.h, libmisc/shell/str2int.c: New files.
* 2004-04-17 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-171-31/+31
| | | | | | | | | | | | | | | * libmisc/capture/capture-cli.c, libmisc/cpuuse/cpuuse.c, libmisc/dumpbuf/dumpbuf.c, libmisc/fsmount/fsmount.c, libmisc/monitor/mon-command.c, libmisc/monitor/mon-config.c, libmisc/monitor/mon-dname.c, libmisc/monitor/mon-driver.c, libmisc/monitor/mon-extension.c, libmisc/monitor/mon-itask.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-mpci.c, libmisc/monitor/mon-object.c, libmisc/monitor/mon-prmisc.c, libmisc/monitor/mon-queue.c, libmisc/monitor/mon-symbols.c, libmisc/monitor/mon-task.c, libmisc/rtmonuse/rtmonuse.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/stackchk/check.c, libmisc/untar/untar.c: Use fprintf(stdout,...) instead of printf.
* Remove stray white spaces.Ralf Corsepius2004-04-161-52/+52
|
* Remove stray white spaces.Ralf Corsepius2004-04-151-1/+1
|
* 2004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libblock/include/rtems/bdbuf.h: Include <rtems/chain.h> instead of <chain.h>. * libblock/include/rtems/ide_part_table.h: Include <rtems/chain.h> instead of <chain.h>. * libcsupport/src/malloc.c: Include <rtems/chain.h> instead of <chain.h>. * libcsupport/src/mount.c: Include <rtems/chain.h> instead of <chain.h>. * libcsupport/src/unmount.c: Include <rtems/chain.h> instead of <chain.h>. * libfs/src/imfs/imfs.h: Include <rtems/chain.h> instead of <chain.h>. * libfs/src/imfs/imfs_directory.c: Include <rtems/chain.h> instead of <chain.h>. * libfs/src/imfs/imfs_load_tar.c: Include <rtems/chain.h> instead of <chain.h>. * sapi/include/confdefs.h: Include <rtems/clockdrv.h> instead of <clockdrv.h>. * sapi/include/confdefs.h: Include <rtems/console.h> instead of <console.h>. * libfs/src/imfs/imfs_load_tar.c: Include <rtems/imfs.h> instead of <imfs.h>. * libmisc/shell/cmds.c: Include <rtems/imfs.h> instead of <imfs.h>. * libmisc/fsmount/fsmount.c: Include <rtems/imfs.h> instead of <imfs.h>. * sapi/include/confdefs.h: Include <rtems/imfs.h> instead of <imfs.h>. * itron/src/can_wup.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/chg_pri.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/cre_mbf.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/cre_mbx.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/cre_sem.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/cre_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/del_mbf.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/del_mbx.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/del_sem.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/del_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/dis_dsp.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/ena_dsp.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/eventflags.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/exd_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/ext_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/fmempool.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/frsm_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/get_tid.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/itronintr.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/itronsem.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/itrontime.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/mbox.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/mboxtranslatereturncode.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/msgbuffer.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/msgbuffertranslatereturncode.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/network.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/port.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/prcv_mbf.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/prcv_mbx.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/preq_sem.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/psnd_mbf.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/rcv_mbf.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/rcv_mbx.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/ref_mbf.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/ref_mbx.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/ref_sem.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/ref_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/rel_wai.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/rot_rdq.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/rsm_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/sig_sem.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/slp_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/snd_mbf.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/snd_mbx.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/sta_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/sus_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/sysmgmt.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/task.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/ter_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/trcv_mbf.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/trcv_mbx.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/tslp_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/tsnd_mbf.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/twai_sem.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/vmempool.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/wai_sem.c: Include <rtems/itron.h> instead of <itron.h>. * itron/src/wup_tsk.c: Include <rtems/itron.h> instead of <itron.h>. * sapi/include/rtems/config.h: Include <rtems/itron.h> instead of <itron.h>. * sapi/include/confdefs.h: Include <rtems/itron.h> instead of <itron.h>. * sapi/src/itronapi.c: Include <rtems/itron.h> instead of <itron.h>. * sapi/include/confdefs.h: Include <rtems/rtc.h> instead of <rtc.h>. * sapi/include/confdefs.h: Include <rtems/timerdrv.h> instead of <timerdrv.h>.
* 2004-03-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-03-051-1/+1
| | | | * libmisc/shell/cmds.c: Remove warning.
* 2004-03-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-03-051-6/+1
| | | | | | | | | | | | | | | | | | | | | * libblock/src/bdbuf.c, libblock/src/ramdisk.c, libcsupport/src/newlibc.c, libcsupport/src/sync.c, libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c, libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c, libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c, libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c, libnetworking/libc/res_send.c, libnetworking/libc/res_update.c, libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c, librpc/src/rpc/clnt_perror.c, librpc/src/rpc/svc.c, score/macros/rtems/score/chain.inl, score/src/objectidtoname.c: Too much was accidentally committed -- revert.
* 2004-03-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-03-051-1/+6
| | | | | | | | | | | | | | | | | | | | | * libblock/src/bdbuf.c, libblock/src/ramdisk.c, libcsupport/src/newlibc.c, libcsupport/src/sync.c, libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c, libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c, libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c, libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c, libnetworking/libc/res_send.c, libnetworking/libc/res_update.c, libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c, librpc/src/rpc/clnt_perror.c, librpc/src/rpc/rtems_rpc.c, librpc/src/rpc/svc.c, sapi/include/confdefs.h, score/macros/rtems/score/chain.inl, score/src/objectidtoname.c:
* 2003-09-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2003-09-261-1/+1
| | | | | | | | PR 495/rtems_misc * capture/capture-cli.c, monitor/mon-command.c, monitor/mon-config.c, monitor/mon-monitor.c, monitor/mon-object.c, monitor/mon-symbols.c, monitor/monitor.h, shell/cmds.c: Move to making libmisc 16/32 bit clean.
* *** empty log message ***Ralf Corsepius2003-09-221-1/+1
|
* 2003-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2003-09-221-3/+1
| | | | | | | | | | | * monitor/monitor.h: Add rtems_monitor_commands[] (Illegally applied by shell/). Remove ifdef(__mips64) (Make broken code visible again). * monitor/mon-command.c: Add several ifndef RTEMS_UNIX to avoid warnings. * monitor/mon-monitor.c: Remove RTEMS_CPU_HAS_16_BIT_ADDRESSES (Make broken code visible again). * shell/cmds.c: Remove local decls of rtems_monitor_commands[].
* 2003-08-06 Thomas Doerfler<Thomas.Doerfler@imd-systems.de>Jennifer Averett2003-08-061-1/+1
| | | | | | | | PR 369/filesystem * Makefile.am, shell/cmds.c, wrapup/Makefile.am: sample application to show the use of the DOSFS functions * fsmount/Makefile.am, fsmount/README, fsmount/fsmount.c, fsmount/fsmount.h: New files.
* 2003-07-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2003-07-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * capture/capture-cli.c: Add config-header support. * capture/capture.c: Add config-header support. * cpuuse/cpuuse.c: Add config-header support. * devnull/devnull.c: Add config-header support. * dummy/dummy.c: Add config-header support. * dumpbuf/dumpbuf.c: Add config-header support. * monitor/mon-command.c: Add config-header support. * monitor/mon-config.c: Add config-header support. * monitor/mon-dname.c: Add config-header support. * monitor/mon-driver.c: Add config-header support. * monitor/mon-extension.c: Add config-header support. * monitor/mon-itask.c: Add config-header support. * monitor/mon-manager.c: Add config-header support. * monitor/mon-monitor.c: Add config-header support. * monitor/mon-mpci.c: Add config-header support. * monitor/mon-object.c: Add config-header support. * monitor/mon-prmisc.c: Add config-header support. * monitor/mon-queue.c: Add config-header support. * monitor/mon-server.c: Add config-header support. * monitor/mon-symbols.c: Add config-header support. * monitor/mon-task.c: Add config-header support. * mw-fb/mw_fb.c: Add config-header support. * mw-fb/mw_uid.c: Add config-header support. * rtmonuse/rtmonuse.c: Add config-header support. * serdbg/serdbg.c: Add config-header support. * serdbg/serdbgio.c: Add config-header support. * serdbg/termios_printk.c: Add config-header support. * shell/cmds.c: Add config-header support. * stackchk/check.c: Add config-header support. * untar/untar.c: Add config-header support.
* 2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>Joel Sherrill2001-08-091-41/+15
| | | | | * shell/Makefile.am, shell/README, shell/cmds.c, shell/shell.c, shell/shell.h: Updates.
* 2001-05-25 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-05-251-47/+14
| | | | * shell/cmds.c: Removed code from inappropriate source.
* 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>Joel Sherrill2001-05-241-9/+114
| | | | | | | | | | | | | | | | | | | | | * monitor/mon-prmisc.c: Correct print line. * shell/Makefile.am: Added new file telnetd.c. * shell/telnetd.c, shell/telnetd.h, shell/pty.c: New files. * shell/shell.c, shell/cmds.c, shell/shell.h: Numerous improvments: - The shell_init has a new parameter 'forever' because in /dev/console you need that this process runs forever but in tcp/ip not. (respawn?) - A new task for every session opened trought tcp/ip telnet client. (the chargen,daytime and more are possible of implementation but I ask me if they are necesary) - Exit from the session delete the task and when the client fails too. - More cmds have been implemented. (very reduced version of these) umask, chmod, id, whoami, rm, cat, ... - A reduced line edit has been implemented. Ctrl-C abort the input, Ctrl-d in the first position gives EOF (logout). '\b' and DEL makes the rubout operation. I think that readline() for every session spents a lot of resources.
* 2001-04-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2001-05-071-1/+0
| | | | | * shell/cmds.c, shell/shell.c: Remove fileno-hacks. * monitor/mon-symbols.c: Remove #undef __STRICT_ANSI__.
* 2001-04-20 Correo Fernando-ruiz <correo@fernando-ruiz.com>Joel Sherrill2001-04-201-0/+479
* Added initial shell functionality. * Makefile.am, configure.in, wrapup/Makefile.am: * shell/.cvsignore, shell/Makefile.am, shell/README, shell/cmds.c, shell/shell.c, shell/shell.h: New files.