Commit Graph

231 Commits

Author SHA1 Message Date
Joel Sherrill
21242c252a 2011-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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-06-24 17:52:58 +00:00
Sebastian Huber
7c1f085bc9 2011-05-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/shell/main_msdosfmt.c: Fixed NULL pointer access.
2011-05-11 08:44:34 +00:00
Ralf Corsepius
80e239fb46 Add local version of __unused macro. 2011-03-24 09:38:01 +00:00
Joel Sherrill
a47dd1cc26 2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_setenv.c: Revert after discussion. Mark as
	intentional in Coverity.
2011-03-15 15:43:09 +00:00
Joel Sherrill
d252351c43 2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_setenv.c: Address Coverity issue 134 which
	recommends using strnXXX methods.
2011-03-15 15:02:41 +00:00
Chris Johns
d0fcd0b8a6 2011-03-15 Chris Johns <chrisj@rtems.org>
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-03-15 05:02:34 +00:00
Sebastian Huber
a8afce3872 2011-02-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
* 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-17 16:25:43 +00:00
Ralf Corsepius
3fc4d1463f 2011-02-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/fdisk.c: Reflect changes above.
2011-02-11 00:05:29 +00:00
Ralf Corsepius
5b1f197948 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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-02-02 04:21:26 +00:00
Joel Sherrill
2946682d59 2011-01-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_dd.c: Make symbol unique to avoid conflict with
	same name in <sys/stat.h>.
2011-01-17 23:05:36 +00:00
Joel Sherrill
f16c0591a2 2011-01-17 Alin Rus <alin.codejunkie@gmail.com>
* 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().
2011-01-17 22:12:48 +00:00
Joel Sherrill
8cb97f594f 2010-08-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1694/shell
	* libmisc/shell/main_setenv.c: Address memory leak identified by
	Coverity.
2010-08-28 20:10:00 +00:00
Joel Sherrill
57cdf005bc 2010-08-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_date.c: Use snprintf() not sprintf().
2010-08-27 18:04:28 +00:00
Joel Sherrill
71c012aff5 2010-07-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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-04 14:53:47 +00:00
Sebastian Huber
6c0fcd4a39 2010-07-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* 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-07-01 13:05:18 +00:00
Ralf Corsepius
bef4dbf682 2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/print-ls.c, libmisc/shell/main_msdosfmt.c:
	Include <inttypes.h>.
	Misc. 64bit-compatibility fixes.
2010-06-15 05:42:28 +00:00
Sebastian Huber
7d01d244d7 2010-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* 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-07 15:35:24 +00:00
Ralf Corsepius
d9120e5665 2010-06-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/print-ls.c: Remove (long) cast of st_ino.
2010-06-01 10:46:16 +00:00
Chris Johns
29e92b090c 2010-05-31 Chris Johns <chrisj@rtems.org>
* 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-31 13:56:37 +00:00
Ralf Corsepius
1f868bd64e 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1531/newlib:
	* libmisc/shell/fts.c:
	Add local copy of ALIGN().
2010-05-29 05:17:11 +00:00
Ralf Corsepius
2ad5753419 2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/fts.c: Cast to uintptr_t instead of long for better
	16bit target compliance.
2010-05-22 16:48:41 +00:00
Ralf Corsepius
3d3e22c643 2010-04-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/fts.c (fts_pow2): Rebase fts_pow2 on
	SIZEOF_SIZE_T * CHAR_BIT.
2010-04-13 04:39:47 +00:00
Ralf Corsepius
c648ca5e67 Add HAVE_STRINGS_H for better POSIX compliance. 2010-03-26 17:42:24 +00:00
Ralf Corsepius
9a77af8537 Add HAVE_CONFIG_H support to let files receive configure defines. 2010-03-26 17:18:43 +00:00
Joel Sherrill
0a973a9ea9 2010-03-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell_makeargs.c: Fix bugs introduced by patch
	attempting to add quoted arguments.
2010-03-16 14:05:55 +00:00
Joel Sherrill
bab5c5fac0 2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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-12 16:26:16 +00:00
Joel Sherrill
391b4dda25 2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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 19:12:30 +00:00
Joel Sherrill
06443cfa4b 2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell_makeargs.c: Fix warnings.
2010-03-11 15:53:12 +00:00
Joel Sherrill
1fe7324a08 2010-03-11 Andrei Mozzhuhin <nopscmn@gmail.com>
PR 1496/shell
	* libmisc/shell/shell_makeargs.c: Add support for quoted arguments.
2010-03-11 15:35:24 +00:00
Joel Sherrill
db2c804aa8 2010-02-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell_script.c: Fix typo.
2010-02-28 20:14:10 +00:00
Chris Johns
520705cee8 2010-02-24 Chris Johns <chrisj@rtems.org>
* 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-24 09:30:40 +00:00
Chris Johns
cca94a248b 2010-02-19 Chris Johns <chrisj@rtems.org>
* 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-19 03:23:11 +00:00
Chris Johns
a9fa9b765d 2010-02-18 Chris Johns <chrisj@rtems.org>
* 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-18 00:24:25 +00:00
Chris Johns
42c4de823f 2010-02-01 Chris Johns <chrisj@rtems.org>
* 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-02-01 00:03:02 +00:00
Joel Sherrill
3faa7a2969 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 30
	* libmisc/shell/hexdump-parse.c:
2010-01-20 20:25:18 +00:00
Joel Sherrill
657105413a 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 1
	* libmisc/shell/fts.c:
2010-01-20 17:14:52 +00:00
Joel Sherrill
8c161f958f 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 3
	* libmisc/shell/shell.c: Remove dead code path and fix warning.
2010-01-20 15:20:29 +00:00
Joel Sherrill
efb68e8bf8 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/hexdump-parse.c: Fix uninitialized warning.
2010-01-20 15:19:19 +00:00
Joel Sherrill
aaaffd4cba 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 30
	* libmisc/shell/hexdump-parse.c: Add free(pr) before returning.
2010-01-20 15:15:39 +00:00
Joel Sherrill
129b4a38bd 2010-01-20 Chris Johns <chrisj@rtems.org>
Coverity Id 6
	* libmisc/shell/hexdump-parse.c: Modify conditional to avoid NULL
	dereference.
2010-01-20 14:31:04 +00:00
Joel Sherrill
8bffc40b3a 2010-01-20 Chris Johns <chrisj@rtems.org>
Coverity Id 9
	* libmisc/shell/main_ls.c: Modify conditional to avoid NULL
	dereference.
2010-01-20 14:27:57 +00:00
Joel Sherrill
e4d7016c1a 2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 18
	* libmisc/shell/fts.c: Add free(parent) to correct leak.
2010-01-19 23:01:36 +00:00
Joel Sherrill
5b914591c6 2009-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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-12-18 20:18:30 +00:00
Joel Sherrill
6f70c07057 2009-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/login_prompt.c: Fix problem where timeout on login
	prompt at console results in tight loop repeating login prompt.
2009-11-30 22:13:48 +00:00
Thomas Doerfler
8bca4fcaa4 Added format string to fprintf(). 2009-11-30 13:24:59 +00:00
Ralf Corsepius
0893220b2a Whitespace removal. 2009-11-29 12:12:39 +00:00
Joel Sherrill
13c37ad39a 2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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 21:56:50 +00:00
Joel Sherrill
8a68b60f57 2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/login_prompt.c: Properly process EOF and do not depend
	on ungetc() to propagate the status back.
2009-11-23 21:55:36 +00:00
Ralf Corsepius
999de9be60 2009-11-19 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/hexdump-odsyntax.c: Remove special casing
	the h8300, avr, sh2e.
2009-11-19 14:39:39 +00:00
Chris Johns
05404983e2 2009-11-18 Chris Johns <chrisj@rtems.org>
* 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.
2009-11-18 00:09:21 +00:00