Commit Graph

520 Commits

Author SHA1 Message Date
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
Joel Sherrill
c0c5635164 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libmisc/stringto/stringto_template.h: Remove warning.
2010-04-26 00:50:15 +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
76282d5cc9 Use rtems_monitor_dump_addr instead of rtems_monitor_dump_hex
to print addresses.
2010-04-12 15:25:43 +00:00
Ralf Corsepius
5b331cc570 Add rtems_monitor_dump_addr(). 2010-04-12 15:23:41 +00:00
Ralf Corsepius
f1eb9c6b72 16bit target fixes. 2010-04-12 15:21:42 +00:00
Ralf Corsepius
a89c96399e 2010-04-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/stackchk/check.c: Remove bogus casts.
	Use PRIxPTR to printk pointers.
2010-04-10 07:32:13 +00:00
Joel Sherrill
7417f7b71c 2010-04-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h: Add const
	to fix warning. Spacing.
2010-04-07 14:58:45 +00:00
Joel Sherrill
da9518a2f5 2010-04-05 Thomas Znidar <t.znidar@embed-it.com>
* libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h: Add reset
	command.
2010-04-05 17:12:05 +00:00
Ralf Corsepius
56f61c7d6f Add HAVE_CONFIG_H support to let files receive configure defines. 2010-03-28 15:20:32 +00:00
Ralf Corsepius
d192aa3918 Reorder includes. 2010-03-28 15:20:04 +00:00
Ralf Corsepius
e6505cff1d Add stringto/stringto_template.h to libstringto_a_SOURCES. 2010-03-28 03:25:06 +00:00
Ralf Corsepius
b2bbdb9714 Add HAVE_CONFIG_H support to let files receive configure defines. 2010-03-27 05:01:30 +00:00
Ralf Corsepius
f5c405e150 Minimize includes. 2010-03-27 05:01:03 +00:00
Ralf Corsepius
ebdeaf6452 Add HAVE_CONFIG_H guards around #include "config.h". 2010-03-27 04:54:19 +00:00
Ralf Corsepius
364c423a43 Add HAVE_STRINGS_H for better POSIX compliance. 2010-03-27 04:50:27 +00:00
Ralf Corsepius
7f74ab7d68 Add HAVE_CONFIG_H support to let files receive configure defines. 2010-03-27 03:58:06 +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
81ced0e040 2010-03-09 Joel Sherrill <joel.sherrilL@oarcorp.com>
* libmisc/Makefile.am: Remove duplicate file from list.
2010-03-09 21:42:15 +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
59f7e9177a 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 27
	* libmisc/fsmount/fsmount.c: Ensure calloc() returns memory and then we
	do not have to check null when freeing it. Coverity noted it was used
	before being checked for NULL.
2010-01-20 16:24:11 +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
c917d31a3f 2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 23
	* libmisc/monitor/mon-monitor.c: Add fclose() of file.
2010-01-19 23:49:40 +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
d22cd4a98a 2010-01-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Fix warning.
2010-01-19 01:56:28 +00:00
Joel Sherrill
2bac948920 2010-01-18 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 12
	Coverity Id 13
	Coverity Id 14
	Coverity Id 15
	* libmisc/stackchk/check.c: Rewrote loop to avoid possible buffer
	overruns when the pattern area size is not a multiple of 16.  There
	were no current ports impacted by this but better to be safe.
2010-01-18 23:04:09 +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
Glenn Humphrey
dca9a825e4 2009-12-02 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* libcsupport/src/__times.c, libmisc/cpuuse/cpuusagedata.c,
	libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c,
	rtems/include/rtems/rtems/types.h, rtems/src/ratemongetstatistics.c,
	rtems/src/ratemonreportstatistics.c, score/src/threaddispatch.c,
	score/src/threadinitialize.c, score/src/threadtickletimeslice.c:
	Updated copyright line.
2009-12-02 18:22:19 +00:00
Glenn Humphrey
c6f7e060ea 2009-12-02 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* configure.ac, libcsupport/src/__times.c,
	libmisc/cpuuse/cpuusagedata.c, libmisc/cpuuse/cpuusagereport.c,
	libmisc/cpuuse/cpuusagereset.c, rtems/include/rtems/rtems/ratemon.h,
	rtems/include/rtems/rtems/types.h, rtems/src/ratemongetstatistics.c,
	rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c,
	rtems/src/ratemonreportstatistics.c,
	score/include/rtems/score/thread.h, score/src/threaddispatch.c,
	score/src/threadinitialize.c, score/src/threadtickletimeslice.c:
	Changed the configuration of statistics granularity to use just one
	define.
2009-12-02 18:15:16 +00:00
Joel Sherrill
2c6a3e7e2e 2009-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* libmisc/stringto/stringto.h, libmisc/stringto/stringto_template.h:
	Tidy up as part of adding new test.
2009-12-01 22:16:10 +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