summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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>.
* 2011-01-17 Alin Rus <alin.codejunkie@gmail.com>Joel Sherrill2011-01-172-8/+10
| | | | | | | | | * posix/src/aio_cancel.c: Fixed ending of if braces. 2011-01-17 Alin Rus <alin.codejunkie@gmail.com> * posix/src/aio_misc.c: Add debug information. Fixed idle_threads/ active_threads issues. Fixed infinite loop in rtems_aio_handle().
* 2010-08-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-08-281-17/+14
| | | | | | PR 1694/shell * libmisc/shell/main_setenv.c: Address memory leak identified by Coverity.
* 2010-08-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-08-271-1/+1
| | | | * libmisc/shell/main_date.c: Use snprintf() not sprintf().
* 2010-07-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-07-041-1/+0
| | | | | | | | | | | | | | | | * libblock/include/rtems/ide_part_table.h, libblock/src/bdbuf.c, libcsupport/src/__times.c, libcsupport/src/libio_init.c, libcsupport/src/mallocfreespace.c, libcsupport/src/mount-mgr.c, libcsupport/src/mount.c, libcsupport/src/rewinddir.c, libcsupport/src/seekdir.c, libcsupport/src/telldir.c, libcsupport/src/unmount.c, libfs/src/dosfs/fat.c, libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c, libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c, libfs/src/dosfs/msdos_fsunmount.c, libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_rename.c, libmisc/cpuuse/cpuusagereport.c, libmisc/shell/vis.c, libmisc/stackchk/check.c, sapi/src/posixapi.c, telnetd/telnetd.c: Remove include of assert.h when it is not needed.
* 2010-07-01 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-07-011-1/+1
| | | | | | | | | | | | * libcsupport/include/rtems/libio_.h: Removed rtems_filesystem_mount_table_control. * libcsupport/include/rtems/libio.h, libcsupport/src/mount-mgr.c, libcsupport/src/mount.c libcsupport/src/statvfs.c, libcsupport/src/unmount.c, libmisc/shell/main_mount.c: Documentation. Removed rtems_filesystem_mounts_first() and rtems_filesystem_mounts_next(). Added rtems_filesystem_mount_iterate(). Changed return type of rtems_filesystem_iterate(). Removed rtems_filesystem_nodes_equal().
* 2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-152-5/+8
| | | | | | * libmisc/shell/print-ls.c, libmisc/shell/main_msdosfmt.c: Include <inttypes.h>. Misc. 64bit-compatibility fixes.
* 2010-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-06-071-6/+8
| | | | | | | | | | | | | | | | | | | | * libcsupport/include/rtems/libio_.h: Declare rtems_filesystem_mount_table_control. * libcsupport/include/rtems/libio.h: Removed rtems_filesystem_table_first(), rtems_filesystem_table_next() and rtems_filesystem_table_node_t declarations. Declare rtems_per_filesystem_routine, rtems_filesystem_iterate() and rtems_filesystem_get_mount_handler(). * libcsupport/src/mount.c: Added rtems_filesystem_mounts_first() and rtems_filesystem_mounts_next(). Simplify mount(). Removed rtems_filesystem_mount_table_control_init. Use rtems_filesystem_get_mount_handler(). * libcsupport/src/mount-mgr.c: Removed rtems_filesystem_mounts_first() and rtems_filesystem_mounts_next(). Added rtems_filesystem_iterate() and rtems_filesystem_get_mount_handler(). Use rtems_libio_lock() and rtems_libio_unlock(); * sapi/include/confdefs.h, libmisc/shell/main_mount.c: Update for mount API changes.
* 2010-06-01 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-011-3/+2
| | | | * libmisc/shell/print-ls.c: Remove (long) cast of st_ino.
* 2010-05-31 Chris Johns <chrisj@rtems.org>Chris Johns2010-05-316-289/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libcsupport/Makefile.am: Add mount-mgr.c. * libcsupport/src/mount-mgr.c: New. * include/rtems/fs.h: Added rtems_filesystem_location_mount. * libcsupport/include/rtems/libio.h, libcsupport/src/mount.c: New mount interface. It is similar to Linux. * libcsupport/include/rtems/libio_.h: Remove the init_fs_mount_table call. * libcsupport/src/base_fs.c: Remove init_fs_mount_table_call. Use the new mount call. Remove setting the root node in the global pathloc. Mount does this now. * libcsupport/src/privateenv.c: Remove the hack to set the root mount table entry in the environment. * libcsupport/src/unmount.cL Free the target string. * libblock/src/bdpart-mount.c: New mount API. * libfs/src/devfs/devfs.h, libfs/src/devfs/devfs_init.c, libfs/src/dosfs/dosfs.h, libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_init.c, libfs/src/imfs/miniimfs_init.c, libfs/src/nfsclient/src/librtemsNfs.h, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs.h, libnetworking/lib/ftpfs.c, libnetworking/rtems/ftpfs.h, libnetworking/rtems/tftp.h: New mount_h API. * libfs/src/devfs/devfs_eval.c: Local include of extern ops. * libfs/src/nfsclient/src/nfs.c: New mount API. Removed the mount me call and fixed the initialisation to happen when mounting. * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Remove mount filesystem files. * libmisc/fsmount/fsmount.c, libmisc/fsmount/fsmount.h: Updated to the new mount table values. * libmisc/shell/main_mount_ftp.c, libmisc/shell/main_mount_msdos.c, libmisc/shell/main_mount_rfs.c, libmisc/shell/main_mount_tftp.c: Removed. * libmisc/shell/main_mount.c: Use the new mount API. Also access the file system table for the file system types. * libnetworking/lib/tftpDriver.c: Updated to the new mount API. Fixed to allow mounting from any mount point. Also can now have more than file system mounted. * sapi/include/confdefs.h: Add file system configuration support.
* 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-05-291-2/+5
| | | | | | PR 1531/newlib: * libmisc/shell/fts.c: Add local copy of ALIGN().
* 2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-05-221-1/+2
| | | | | * libmisc/shell/fts.c: Cast to uintptr_t instead of long for better 16bit target compliance.
* 2010-04-13 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-04-131-2/+5
| | | | | * libmisc/shell/fts.c (fts_pow2): Rebase fts_pow2 on SIZEOF_SIZE_T * CHAR_BIT.
* Add HAVE_STRINGS_H for better POSIX compliance.Ralf Corsepius2010-03-265-0/+16
|
* Add HAVE_CONFIG_H support to let files receive configure defines.Ralf Corsepius2010-03-2620-0/+80
|
* 2010-03-16 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-03-161-4/+6
| | | | | * libmisc/shell/shell_makeargs.c: Fix bugs introduced by patch attempting to add quoted arguments.
* 2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-03-124-8/+8
| | | | | | | | | | | | | | | | | | | * ftpd/ftpd.c, httpd/asp.c, httpd/ejparse.c, httpd/emfdb.c, httpd/misc.c, httpd/um.c, httpd/webs.c, httpd/websuemf.c, libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_format.c, libfs/src/dosfs/msdos_misc.c, libfs/src/nfsclient/src/nfs.c, libmisc/capture/capture-cli.c, libmisc/monitor/mon-network.c, libmisc/shell/hexdump-odsyntax.c, libmisc/shell/main_ifconfig.c, libmisc/shell/shell.c, libmisc/shell/shell_makeargs.c, libmisc/uuid/parse.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/inet_network.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_init.c, libnetworking/libc/res_query.c, libnetworking/rtems/rtems_mii_ioctl.c, score/src/objectgetnameasstring.c: Readdress use of ctype methods per recommendation from D.J. Delorie on the newlib mailing list. We should pass an unsigned char into these methods.
* 2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-03-112-5/+5
| | | | | | | | | | | | * ftpd/ftpd.c, httpd/uemf.c, httpd/um.c, httpd/webs.c, httpd/websuemf.c, libblock/src/diskdevs.c, libmisc/capture/capture-cli.c, libmisc/monitor/mon-network.c, libmisc/shell/hexdump-odsyntax.c, libmisc/shell/main_ifconfig.c, libmisc/uuid/parse.c, libnetworking/lib/ftpfs.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_network.c, libnetworking/rtems/rtems_mii_ioctl.c, score/src/objectgetnameasstring.c: Fix warnings for ctype methods.
* 2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-03-111-2/+3
| | | | * libmisc/shell/shell_makeargs.c: Fix warnings.
* 2010-03-11 Andrei Mozzhuhin <nopscmn@gmail.com>Joel Sherrill2010-03-111-10/+26
| | | | | PR 1496/shell * libmisc/shell/shell_makeargs.c: Add support for quoted arguments.
* 2010-02-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-02-281-1/+1
| | | | * libmisc/shell/shell_script.c: Fix typo.
* 2010-02-24 Chris Johns <chrisj@rtems.org>Chris Johns2010-02-242-1/+12
| | | | | | | * libmisc/shell/main_msdosfmt.c, libmisc/shell/shellconfig.h: Fix the alias as I did understand how it worked. * libfs/src/dosfs/msdos_format.c: Test for a block device.
* 2010-02-19 Chris Johns <chrisj@rtems.org>Chris Johns2010-02-195-4/+125
| | | | | | | | | | | | | | | | | * libblock/src/diskdevs.c: Create the devices as block devices. * libmisc/shell/main_debugrfs.c, libmisc/shell/main_mkrfs.c, libmisc/shell/main_mount_rfs.c: New. * libmisc/shell/main_msdosfmt.c: Change the command to mkdos and alias the old name. * libmisc/shell/shellconfig.h, libmisc/Makefile.am: Add RFS support. * libfs/src/rfs/rtems-rfs-shell.c, libfs/src/rfs/rtems-rfs-shell.h: Move the format command code into the shell file.
* 2010-02-18 Chris Johns <chrisj@rtems.org>Chris Johns2010-02-182-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libfs/src/rfs/rtems-rfs-bitmaps.c, libfs/src/rfs/rtems-rfs-bitmaps.h, libfs/src/rfs/rtems-rfs-bitmaps-ut.c, libfs/src/rfs/rtems-rfs-block.c, libfs/src/rfs/rtems-rfs-block.h, libfs/src/rfs/rtems-rfs-block-pos.h, libfs/src/rfs/rtems-rfs-buffer-bdbuf.c, libfs/src/rfs/rtems-rfs-buffer.c, libfs/src/rfs/rtems-rfs-buffer-devio.c, libfs/src/rfs/rtems-rfs-buffer.h, libfs/src/rfs/rtems-rfs-data.h, libfs/src/rfs/rtems-rfs-dir.c, libfs/src/rfs/rtems-rfs-dir.h, libfs/src/rfs/rtems-rfs-dir-hash.c, libfs/src/rfs/rtems-rfs-dir-hash.h, libfs/src/rfs/rtems-rfs-file.c, libfs/src/rfs/rtems-rfs-file.h, libfs/src/rfs/rtems-rfs-file-system.c, libfs/src/rfs/rtems-rfs-file-system-fwd.h, libfs/src/rfs/rtems-rfs-file-system.h, libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-format.h, libfs/src/rfs/rtems-rfs-group.c, libfs/src/rfs/rtems-rfs-group.h, libfs/src/rfs/rtems-rfs.h, libfs/src/rfs/rtems-rfs-inode.c, libfs/src/rfs/rtems-rfs-inode.h, libfs/src/rfs/rtems-rfs-link.c, libfs/src/rfs/rtems-rfs-link.h, libfs/src/rfs/rtems-rfs-mutex.c, libfs/src/rfs/rtems-rfs-mutex.h, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems-dev.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems-file.c, libfs/src/rfs/rtems-rfs-rtems.h, libfs/src/rfs/rtems-rfs-rtems-utils.c, libfs/src/rfs/rtems-rfs-shell.c, libfs/src/rfs/rtems-rfs-shell.h, libfs/src/rfs/rtems-rfs-trace.c, libfs/src/rfs/rtems-rfs-trace.h: New. * Makefile.am, preinstall.am, libfs/Makefile.am, wrapup/Makefile.am: Updated with the RFS support. * libfs/README: Updated after 10 years. * libblock/src/flashdisk.c, libblock/src/nvdisk.c, libblock/src/ramdisk-driver.c: Updated to the new error reporting in libblock. * libmisc/shell/main_ls.c, libmisc/shell/print-ls.c: Fix printing the size in long mode. * libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_bootp.c, libnetworking/rtems/rtems_bsdnet_internal.h: Return the BOOTP/DHCP to the forever behaviour of 4.9 with the ability to call BOOTP and control the process if required.
* 2010-02-01 Chris Johns <chrisj@rtems.org>Chris Johns2010-02-013-126/+167
| | | | | | | | | * libmisc/shell/fts.c: Updated to the latest NetBSD version to resolve heap allocation bugs. * libmisc/shell/main_ls.c, libmisc/shell/print-ls.c: Fix printing size bugs. * libnetworking/rtems/mkrootfs.c: Fix byte order bug when creating the loopback interface address.
* 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-201-2/+4
| | | | | Coverity Id 30 * libmisc/shell/hexdump-parse.c:
* 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-201-1/+3
| | | | | Coverity Id 1 * libmisc/shell/fts.c:
* 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-201-5/+1
| | | | | Coverity Id 3 * libmisc/shell/shell.c: Remove dead code path and fix warning.
* 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-201-1/+3
| | | | * libmisc/shell/hexdump-parse.c: Fix uninitialized warning.
* 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-201-0/+1
| | | | | Coverity Id 30 * libmisc/shell/hexdump-parse.c: Add free(pr) before returning.
* 2010-01-20 Chris Johns <chrisj@rtems.org>Joel Sherrill2010-01-201-2/+4
| | | | | | Coverity Id 6 * libmisc/shell/hexdump-parse.c: Modify conditional to avoid NULL dereference.
* 2010-01-20 Chris Johns <chrisj@rtems.org>Joel Sherrill2010-01-201-1/+1
| | | | | | Coverity Id 9 * libmisc/shell/main_ls.c: Modify conditional to avoid NULL dereference.
* 2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-191-1/+1
| | | | | Coverity Id 18 * libmisc/shell/fts.c: Add free(parent) to correct leak.
* 2009-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-12-181-10/+13
| | | | | | | | * libmisc/shell/login_prompt.c: Switch from non-canonical mode with timeout (Case C) to blocking IO waiting for single character on login. In Case C mode, you cannot tell EOF from no data available. This means we cannot tell when a telnet connection is dropped. This was changed from 4.9 and resulted in breakage.
* 2009-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-11-301-10/+14
| | | | | * libmisc/shell/login_prompt.c: Fix problem where timeout on login prompt at console results in tight loop repeating login prompt.
* Added format string to fprintf().Thomas Doerfler2009-11-301-3/+3
|
* Whitespace removal.Ralf Corsepius2009-11-2937-180/+180
|
* 2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-11-231-6/+10
| | | | | | | * libmisc/shell/shell.c: Always duplicate the environment passed to us because we will delete it when the shell exits. If we do not duplicate it, we could end up freeing memory which was not allocated from the heap or double freeing it.
* 2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-11-231-17/+8
| | | | | * libmisc/shell/login_prompt.c: Properly process EOF and do not depend on ungetc() to propagate the status back.
* 2009-11-19 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-11-191-13/+7
| | | | | * libmisc/shell/hexdump-odsyntax.c: Remove special casing the h8300, avr, sh2e.
* 2009-11-18 Chris Johns <chrisj@rtems.org>Chris Johns2009-11-184-0/+185
| | | | | | | | * libmisc/shell/main_getenv.c, libmisc/shell/main_setenv.c, libmisc/shell/main_unsetenv.c: New. The shell can now play with environment variables. * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add setenv, getenv, and unsetenv to the shell.
* Add DAYSPERNYEAR, SECSPERDAY.Ralf Corsepius2009-10-221-0/+4
| | | | Add casts to time_t on constants in DAYSPERNYEAR, SECSPERDAY for 16bit-int targets.
* Remove DAYSPERNYEAR, SECSPERDAY.Ralf Corsepius2009-10-221-3/+0
|
* Use uint_least32_t instead of u_int, force 32bit constants to make code ↵Ralf Corsepius2009-10-221-10/+10
| | | | functional on 16bit-int targets.
* 2009-10-09 Chris Johns <chrisj@rtems.org>Chris Johns2009-10-081-1/+1
| | | | | * libmisc/shell/main_mknod.c: Fixed build problem with networking disabled.
* 2009-10-08 Chris Johns <chrisj@rtems.org>Chris Johns2009-10-088-20/+1168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am, preinstall.am: Added statvfs.h. * libcsupport/Makefile.am: Add statvfs.c. * libcsupport/include/sys/statvfs.h, libcsupport/src/statvfs.c: New. * libcsupport/include/rtems/libio.h: Add a file system handler for the statvfs call. * libfs/src/devfs/devfs_init.c, libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs_init.c, libfs/src/nfsclient/src/nfs.c: Set the statvfs handler to NULL. * include/rtems/fs.h: Add a second node access field for the RFS file system to hold a directory offset while the existing field holds the inode number. This save a rescan of the directory when working with directories. * libblock/include/rtems/bdbuf.h: Added references and user fields to the buffer descriptor. * libblock/src/bdbuf.c: Added dynamic buffer support for different block sizes. Fixed a number of bugs. * libblock/src/blkdev.c: Release the disk device on an error. * libblock/src/diskdevs.c: Set the block size to the media block size during initialisation of the disk device. * libblock/src/flashdisk.c, libblock/src/nvdisk.c, libblock/src/ramdisk.c: Updated the drivers to handle variable block sizes. * libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Release any buffers when an error occurs. The FAT buffer layer hangs onto a single buffer while mounted. This should be fixed. * sapi/inline/rtems/chain.inl: Added rtems_chain_set_off_chain, rtems_chain_is_node_off_chain, and rtems_chain_previous. * score/inline/rtems/score/chain.inl: Added _Chain_Set_off_chain, and _Chain_Is_node_off_chain. * libmisc/shell/main_ln.c, libmisc/shell/main_mknod.c, libmisc/shell/mknod-pack_dev.c, libmisc/shell/mknod-pack_dev.h: New shell commands. * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Added ln and mknod commands. * libmisc/shell/hexdump-display.c: Fixed the reopen bug which showed up as a free with a bad pointer. * libmisc/shell/main_mount.c: List the user adding file system when listing the available file systems to mount. * libmisc/shell/utils-cp.c: Remove the fixed static copy buffer and use a large dynamic buffer. * score/inline/rtems/score/address.inl, score/src/coremsgsubmit.c, score/src/objectallocate.c, score/src/objectfree.c: Remove warnings.
* Use %lc instead of %C.Ralf Corsepius2009-09-291-1/+1
|
* 2009-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-241-1/+1
| | | | | * libmisc/shell/hexdump-odsyntax.c: Fix failure on SH2e where there is only single precision float.
* Include <utime.h> instead of <sys/utime.h> for better POSIX compilance.Ralf Corsepius2009-09-151-1/+1
|
* 2009-07-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-07-2310-51/+41
| | | | | | | | | | | | | * libmisc/Makefile.am, libmisc/shell/main_chmod.c, libmisc/shell/main_mdump.c, libmisc/shell/main_medit.c, libmisc/shell/main_mfill.c, libmisc/shell/main_mmove.c, libmisc/shell/main_msdosfmt.c, libmisc/shell/main_mwdump.c, libmisc/shell/main_sleep.c, libmisc/shell/main_umask.c, libmisc/shell/shell_script.c, libmisc/stringto/stringto.h, libmisc/stringto/stringto_template.h: Convert return type from bool to rtems_status_code and add rtems_string_to_pointer. Perform associated clean up and changes for return type change. * libmisc/stringto/stringtopointer.c: New file.