summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: replace current and real priority with priority nodeGedare Bloom2018-03-233-7/+7
| | | | | | | | | Encapsulate the current_priority and real_priority fields of the thread control block with a Thread_Priority_node struct. Propagate modifications throughout the tree where the two fields are directly accessed. Updates #3359.
* capture: back-port conversion from task_name to task_id (see #1361)Nickolay Semyonov2014-11-221-3/+3
|
* PR 2001/shell - medit command argument parsing correctionJoel Sherrill2012-02-031-1/+1
| | | | | | | | | | | "medit" overran the argument list, choking on the NULL pointer following the last argument. Note that "medit" still only does byte-sized accesses, which limits its usefulness on most systems. Author: Werner Almesberger <werner@almesberger.net> Signed-off-by: Sebastien Bourdeauducq <sebastien@milkymist.org>
* PR 2012 - mdump/wdump shell cmds handle length arg incorrectly; add ldump cmdJoel Sherrill2012-02-023-39/+168
| | | | | | | | | | | | | * libmisc/shell/main_mdump.c: Reworked to fix bugs in handling of the length argument and to provide an "ldump" command. This file now also supports the "wdump" command. In addition, an RTEMS API function called rtems_mdump() is provided to allow easy dumping from application code. * libmisc/shell/main_mwdump.c: Obsolete file. * libmisc/Makefile.am: Removed main_mwdump.c * libmisc/shell/shellconfig.h: Added "ldump" command. * shell/memory.t: Added documentation for the "ldump" command Signed-off-by: Ric Claus <claus@SLAC.Stanford.edu>
* PR 2012 - mdump/wdump shell cmds handle length arg incorrectly; add ldump cmdJoel Sherrill2012-02-021-95/+0
| | | | | | | | | | | | | * libmisc/shell/main_mdump.c: Reworked to fix bugs in handling of the length argument and to provide an "ldump" command. This file now also supports the "wdump" command. In addition, an RTEMS API function called rtems_mdump() is provided to allow easy dumping from application code. * libmisc/shell/main_mwdump.c: Obsolete file. * libmisc/Makefile.am: Removed main_mwdump.c * libmisc/shell/shellconfig.h: Added "ldump" command. * shell/memory.t: Added documentation for the "ldump" command Signed-off-by: Ric Claus <claus@SLAC.Stanford.edu>
* Add .git ignore. Remove .cvsignoreJoel Sherrill2012-02-021-2/+0
|
* 2011-11-07 Ralf Corsepius <ralf.corsepius@rtems.org>Joel Sherrill2011-11-071-0/+1
| | | | | | PR 1952/cpukit * libmisc/untar/untar.c: Add return code for failure when unable to write file.
* 2011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-091-36/+0
| | | | | * libmisc/serdbg/serdbg.h (putDebugChar, getDebugChar): Remove duplicate decls.
* 2011-03-14 Chris Johns <chrisj@rtems.org>Chris Johns2011-03-141-2/+0
| | | | | PR 1763/shell * libmisc/shell/hexdump-conv.c: Remove debug hacks.
* Backport from CVS-HEAD.Ralf Corsepius2011-02-0213-209/+462
|
* This commit was manufactured by cvs2svn to create branchcvs2git2011-02-011-0/+58
| | | | | | | | | | | | | | 'rtems-4-10-branch'. Cherrypick from master 2011-02-01 05:48:30 UTC Ralf Corsepius <ralf.corsepius@rtems.org> '2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>': cpukit/libmisc/stringto/stringtolongdouble.c testsuites/libtests/POSIX/htonl.c testsuites/libtests/math/.cvsignore testsuites/libtests/math/Makefile.am testsuites/libtests/math/domath.c testsuites/libtests/math/domath.in testsuites/libtests/math/domathf.c testsuites/libtests/math/domathl.c testsuites/libtests/math/init.c
* 2011-01-21 Eric Norum <wenorum@lbl.gov>Joel Sherrill2011-01-211-1/+3
| | | | * libmisc/capture/capture.c: Avoid using TCB of task just deleted.
* 2010-10-11 Chris Johns <chrisj@rtems.org>Chris Johns2010-10-111-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * libfs/src/rfs/rtems-rfs-trace.c, libfs/src/rfs/rtems-rfs-trace.h: Add inode-delete. * libfs/src/rfs/rtems-rfs-shell.c: Fix formatting. * libfs/src/rfs/rtems-rfs-rtems-dir.c: Use ssize_t. Fix spelling. * libfs/src/rfs/rtems-rfs-block.c: Fix rtems_rfs_block_get_bpos to return the position correctly. A bpos does not have any special processing. Do no reset the buffer handle when shrinking indirectly. * libfs/src/rfs/rtems-rfs-inode.c: Add trace. * libfs/src/rfs/rtems-rfs-format.c: Fix comments. * libfs/src/rfs/rtems-rfs-group.c: Limit the inodes to the blocks in a group so the accounting works. * libfs/src/rfs/rtems-rfs-dir.c: PR 1705. Fix handling the offsets when deleting an entry. * libfs/src/rfs/rtems-rfs-buffer.h: Remove rtems_rfs_buffer_handle_reset. It is not needed and dangerous. * cpukit/libmisc/untar/untar.c: Merge 4.11 pax fix. This fix also supports MacOS's tar.
* 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-07-01 Sebastian Huber <sebastian.huber@embedded-brains.de> * libfs/src/nfsclient/src/nfs.c, libfs/src/nfsclient/src/nfs.c, libfs/src/nfsclient/src/librtemsNfs.h: Renamed rtems_nfsfs_initialize() in rtems_nfs_initialize(). * sapi/include/confdefs.h: Reflect changes above. Renamed *_miniIMFS in *_MINIIMFS. Renamed *_NFSFS in *_NFS.
* 2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-07-012-86/+4
| | | | | | | | | | | | | | | * libcsupport/include/rtems/libio.h: Documentation. 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: Use rtems_mkdir(). Removed rtems_fsmount_create_mount_point() and rtems_rootfs_mkdir().
* 2010-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-07-011-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-07 Bharath Suri <bharath.s.jois@gmail.com> * libcsupport/include/rtems/libio_.h: Removed macros rtems_filesystem_is_separator rtems_filesystem_get_start_loc rtems_filesystem_get_sym_start_loc and added them as files under libcsupport/src/ * libcsupport/src/: Added new files libcsupport/src/sup_fs_get_start_loc.c libcsupport/src/sup_fs_get_sym_start_loc.c libcsupport/src/sup_fs_is_separator.c * libcsupport/Makefile.am: Changes to accommodate new files under libcsupport/src/
* 2010-06-21 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-06-211-1/+1
| | | | | | PR 1559/misc Coverity Id 16 * libmisc/monitor/mon-editor.c: Fix buffer overflow.
* 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-13 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-131-1/+1
| | | | | | | * 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-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-319-359/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-25 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-04-261-1/+5
| | | | * libmisc/stringto/stringto_template.h: Remove warning.
* 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.
* Use rtems_monitor_dump_addr instead of rtems_monitor_dump_hexRalf Corsepius2010-04-122-2/+2
| | | | to print addresses.
* Add rtems_monitor_dump_addr().Ralf Corsepius2010-04-122-0/+7
|
* 16bit target fixes.Ralf Corsepius2010-04-121-1/+1
|
* 2010-04-10 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-04-101-11/+10
| | | | | * libmisc/stackchk/check.c: Remove bogus casts. Use PRIxPTR to printk pointers.
* 2010-04-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-04-072-7/+7
| | | | | * libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h: Add const to fix warning. Spacing.
* 2010-04-05 Thomas Znidar <t.znidar@embed-it.com>Joel Sherrill2010-04-052-3/+22
| | | | | * libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h: Add reset command.
* Add HAVE_CONFIG_H support to let files receive configure defines.Ralf Corsepius2010-03-2810-0/+40
|
* Reorder includes.Ralf Corsepius2010-03-281-2/+2
|
* Add stringto/stringto_template.h to libstringto_a_SOURCES.Ralf Corsepius2010-03-281-3/+1
|
* Add HAVE_CONFIG_H support to let files receive configure defines.Ralf Corsepius2010-03-274-6/+20
|
* Minimize includes.Ralf Corsepius2010-03-271-1/+2
|
* Add HAVE_CONFIG_H guards around #include "config.h".Ralf Corsepius2010-03-279-2/+20
|
* Add HAVE_STRINGS_H for better POSIX compliance.Ralf Corsepius2010-03-271-0/+3
|
* Add HAVE_CONFIG_H support to let files receive configure defines.Ralf Corsepius2010-03-271-0/+4
|
* 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-127-12/+12
| | | | | | | | | | | | | | | | | | | * 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-115-9/+9
| | | | | | | | | | | | * 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-03-09 Joel Sherrill <joel.sherrilL@oarcorp.com>Joel Sherrill2010-03-091-2/+2
| | | | * libmisc/Makefile.am: Remove duplicate file from list.
* 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-196-6/+128
| | | | | | | | | | | | | | | | | * 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.