Commit Graph

520 Commits

Author SHA1 Message Date
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
Ralf Corsepius
200c945879 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtounsignedchar.c,
	libmisc/stringto/stringtounsignedint.c: Reformat range check.
2011-02-01 05:55:32 +00:00
Ralf Corsepius
5410c14a56 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/Makefile.am: Add stringto/stringtolongdouble.c.
	* libmisc/stringto/stringtolongdouble.c: New.
2011-02-01 05:48:30 +00:00
Ralf Corsepius
ebf806fd52 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringto.h: Rename header-guard.
	Add rtems_string_to_long_double.
2011-02-01 05:45:33 +00:00
Ralf Corsepius
fe7c9a1f83 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtoint.c: Reformat range check.
	Add check for result==0.
2011-02-01 05:43:21 +00:00
Ralf Corsepius
a38457a755 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtofloat.c: Reformat range check.
	Add check for result = -HUGE_VALF.
2011-02-01 05:41:48 +00:00
Ralf Corsepius
61bbacea0a 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtodouble.c: Reformat range check.
	Add check for result = -HUGE_VAL.
2011-02-01 05:41:07 +00:00
Ralf Corsepius
5df16fab53 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtolonglong.c: Reformat range check.
	c99 portability improvements. Add check for result==0.
2011-02-01 05:39:20 +00:00
Ralf Corsepius
c368bd6414 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtounsignedlonglong.c: Reformat range check.
	c99 portability improvements.
2011-02-01 05:38:01 +00:00
Ralf Corsepius
37ecff5c4a 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtounsignedlong.c: Reformat range check.
2011-02-01 05:36:03 +00:00
Ralf Corsepius
80604fa73b 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtolong.c:  Reformat range check.
	Add check for result==0.
2011-02-01 05:29:26 +00:00
Ralf Corsepius
5598bdd3f6 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/Makefile.am: Remove stringto/stringto_template.h.
	* libmisc/stringto/stringto_template.h: Remove.
2011-02-01 02:39:21 +00:00
Ralf Corsepius
8b9a33e895 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtodouble.c,
	libmisc/stringto/stringtofloat.c: Rework.
2011-02-01 02:34:19 +00:00
Ralf Corsepius
2f8f4950fc 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtolong.c,
	libmisc/stringto/stringtolonglong.c,
	libmisc/stringto/stringtounsignedlong.c,
	libmisc/stringto/stringtounsignedlonglong.c:
	Rework.
2011-02-01 02:32:46 +00:00
Ralf Corsepius
0e867af11e 2011-01-31 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtoint.c,
	libmisc/stringto/stringtounsignedint.c,
	libmisc/stringto/stringtounsignedchar.c: Rework.
2011-01-31 16:25:13 +00:00
Ralf Corsepius
58dac487fd 2011-01-31 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/stringto/stringtopointer.c: Rework.
2011-01-31 16:03:16 +00:00
Joel Sherrill
59f1bfe606 2011-01-21 Eric Norum <wenorum@lbl.gov>
* libmisc/capture/capture.c: Avoid using TCB of task just deleted.
2011-01-21 19:40:17 +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
Sebastian Huber
4e21c9a5b1 2010-12-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/cpuuse/cpuusagereport.c: We have to take the time since the
	last context switch before the uptime.
2010-12-16 15:46:34 +00:00
Sebastian Huber
6c6b2f13f4 2010-12-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/loop.h, libnetworking/net/if_loop.c,
	libnetworking/rtems/rtems_glue.c, libmisc/dummy/dummy-networking.c:
	Initialize loop back interface during normal initialization via
	rtems_bsdnet_initialize_network().
2010-12-08 10:30:27 +00:00
Sebastian Huber
8720a3a509 2010-11-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c:
	Avoid dead code if POSIX API is enabled.
2010-11-23 15:26:52 +00:00
Sebastian Huber
4e3d9b8a84 2010-11-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c:
	Fixed NULL pointer access in case POSIX API is disabled.
2010-11-23 14:59:05 +00:00
Sebastian Huber
3ff9156f6b 2010-11-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/monitor/mon-monitor.c: Fixed broken monitor command list.
2010-11-19 09:44:21 +00:00
Joel Sherrill
c8b3806d1a 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c: Move node code into multiprocessing
	ifdef.
2010-11-16 17:51:02 +00:00
Joel Sherrill
1123658086 2010-11-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Make compile again.
	* sapi/src/io.c, score/src/heap.c: Address dead assignment
	issues found by clang.
2010-11-04 23:00:04 +00:00
Joel Sherrill
16b1546e0b 2010-11-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Address casting issue highlighted by clang.
	There was no need for an intermediate cast to a structure pointer.
2010-11-04 22:22:49 +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
6b9886bbac 2010-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-symbols.c: Fix length of buffer passed to
	strncpy() so there is room for a NULL terminator.
2010-08-26 21:41:41 +00:00
Joel Sherrill
21e3de112c 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 169
	* libmisc/stackchk/check.c: Readd line accidentally deleted between
	1.67 and 1.68.
2010-08-25 20:29:41 +00:00
Joel Sherrill
d4a97df3fd 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 163
	* libmisc/stackchk/check.c: Adjust conditional compilation.
2010-08-25 20:15:56 +00:00
Ralf Corsepius
b15fb6e065 2010-08-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/untar/untar.c: Return if open fails.
	Use ssize_t for read() return value.
2010-08-24 13:06:24 +00:00
Joel Sherrill
229264b20d 2010-08-20 <yann.sionneau@telecom-sudparis.eu>
* libmisc/fb/fb.h: Add constants for buffer modes.
2010-08-20 21:24:44 +00:00
Joel Sherrill
5114d3ffd2 2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: If this port does not allocate the
	interrupt stack, then it must always be a thread stack. Do not
	include code to print the interrupt stack information.
2010-08-02 18:26:30 +00:00
Joel Sherrill
4f3d72fb53 2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/imfs_load_tar.c, libmisc/untar/untar.c: Now supports
	both pax and GNU tar created tar files.
2010-07-27 18:11:42 +00:00
Joel Sherrill
77c330ce3d 2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/privateenv.c, libmisc/cpuuse/cpuusagereport.c,
	posix/Makefile.am, posix/include/rtems/posix/key.h,
	posix/src/keycreate.c, posix/src/keydelete.c,
	score/src/iterateoverthreads.c: Since removing ITRON, the loop over
	all APIs for tasks has a path that cannot be reached. Either modify
	the code or mark tests for NULL as RTEMS_DEBUG.
	* posix/src/keyfreememory.c: New file.
2010-07-26 22:03:18 +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
Joel Sherrill
170f26aa17 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/dumpbuf/dumpbuf.c, libmisc/dumpbuf/dumpbuf.h: Add const.
2010-06-28 14:33:34 +00:00
Joel Sherrill
da9b538965 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libmisc/stackchk/check.c: More clean up and coverage improvements..
2010-06-23 23:28:46 +00:00
Joel Sherrill
2d637b20f6 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libmisc/stackchk/check.c: Clean up to improve coverage.
2010-06-23 18:18:42 +00:00
Joel Sherrill
0b95fb8057 2010-06-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1559/misc
	Coverity Id 16
	* libmisc/monitor/mon-editor.c: Fix buffer overflow.
2010-06-21 16:25:09 +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
Ralf Corsepius
de93598d19 2010-06-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/tar.h, libcsupport/include/tar.h: Remove.
	* configure.ac: Require toolchain to provide tar.h.
	* libfs/src/imfs/imfs_load_tar.c, libmisc/untar/untar.h:
	Use <tar.h> instead of <rtems/tar.h>.
2010-06-13 03:36:58 +00:00
Sebastian Huber
eaee27b0b9 2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1524/filesystem
	* libcsupport/src/rtems_mkdir.c: New file.
	* libcsupport/src/Makefile.am: Reflect change above.
	* libcsupport/include/rtems/libio.h: Added rtems_mkdir().
	* libmisc/fsmount/fsmount.h, libmisc/fsmount/fsmount.c,
	libblock/src/bdpart-mount.c, libnetworking/rtems/mkrootfs.h,
	libnetworking/rtems/mkrootfs.c, libfs/src/pipe/pipe.c: Use
	rtems_mkdir().  Removed rtems_fsmount_create_mount_point() and
	rtems_rootfs_mkdir().
2010-06-08 12:59:51 +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