summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 2009-02-17 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-02-171-2/+0
| | | | | | PR 1377/shell * libmisc/shell/main_netstats.c: Remove #if 0 which should not have been there anyway.
* 2009-02-11 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-02-111-1/+1
| | | | | PR 1374/misc * libmisc/stackchk/check.c: Fix printk formatting string.
* 2008-12-02 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-12-026-0/+6
| | | | | | | | * libmisc/shell/main_cp.c, libmisc/shell/main_ls.c, libmisc/shell/main_mv.c, libmisc/shell/main_netstats.c, libmisc/shell/main_rm.c, libmisc/shell/shell_script.c: Add #define __need_getopt_newlib to enable getopt_r() support in newlib as required by 4.10 toolset.
* 2008-10-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-10-151-0/+2
| | | | | | | | PR 1331/networking * libmisc/shell/shell.c, telnetd/check_passwd.c, telnetd/telnetd.c, telnetd/telnetd.h: Improve comments and explanation of options to rtems_telnetd_initialize. Add extra newline to login sequence from shell.
* 2008-10-01 Gene Smith <gene.smith@siemens.com>Joel Sherrill2008-10-012-23/+56
| | | | | | PR 1328/cpukit * libmisc/shell/main_mdump.c, libmisc/shell/main_mwdump.c: Fix printing of more than 256 bytes.
* 2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-09-085-6/+6
| | | | | | | | | | | | * libcsupport/include/rtems/libio_.h, libcsupport/src/libio_sockets.c, libfs/src/dosfs/fat.h, libfs/src/dosfs/msdos.h, libfs/src/imfs/deviceio.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c, libmisc/monitor/mon-symbols.c, libmisc/monitor/monitor.h, libmisc/stackchk/internal.h, rtems/inline/rtems/rtems/part.inl, score/include/rtems/system.h, score/include/rtems/score/bitfield.h, score/src/mpci.c, score/src/objectextendinformation.c, score/src/threadmp.c: Remove extraneous spaces.
* Add missing initializers.Ralf Corsepius2008-09-071-63/+63
|
* 2008-09-03 Cindy Cicalese <cicalese@mitre.org>Joel Sherrill2008-09-031-1/+1
| | | | | * libmisc/shell/shell.c: FALSE accidentally changed to true in switch to bool type.
* Convert to using "bool".Ralf Corsepius2008-09-0111-127/+129
|
* Convert to using "bool".Ralf Corsepius2008-09-0116-73/+73
|
* Convert to using "bool".Ralf Corsepius2008-09-013-22/+22
|
* 2008-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-274-17/+71
| | | | | | | * libmisc/Makefile.am, libmisc/shell/shell.c, libmisc/shell/shell.h: Split out rtems_shell_get_prompt() so it can be overridden by the user. * libmisc/shell/shell_getprompt.c: New file.
* Convert to using bool.Ralf Corsepius2008-08-261-4/+4
|
* Stop using old-style function-definitions.Ralf Corsepius2008-08-252-57/+57
|
* Use memset instead of bzero.Ralf Corsepius2008-08-211-4/+4
|
* 2008-08-21 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2008-08-211-6/+2
| | | | | * libmisc/shell/internal.h: Don't include "config.h". Adjust header guard.
* Include "config.h".Ralf Corsepius2008-08-2125-0/+100
|
* Use memset instead of bzero.Ralf Corsepius2008-08-211-4/+4
|
* 2008-08-20 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-201-1/+4
| | | | | * libmisc/dummy/dummy.c: Add missing initializers. * score/src/threadinitialize.c: Change type of loop counter.
* 2008-08-20 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-201-0/+2
| | | | | | * libcsupport/src/error.c, libmisc/dummy/dummy.c, rtems/src/rtemsobjectgetapiclassname.c, rtems/src/rtemsobjectgetapiname.c: Add 0 for missing initializers.
* 2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-08-184-8/+15
| | | | | | | | * libcsupport/include/rtems/libcsupport.h, libcsupport/src/scandir.c, libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-monitor.c, libmisc/serdbg/serdbg.c, libmisc/serdbg/serdbg.h, libnetworking/netinet/in_cksum_powerpc.h, shttpd/compat_rtems.h: Fix warnings.
* 2008-08-05 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-08-081-15/+15
| | | | | | | | * libmisc/monitor/monitor.h, rtems/include/rtems/rtems/tasks.h, score/include/rtems/score/thread.h, score/src/threadreset.c, score/src/threadrestart.c, score/src/threadstart.c: New type Thread_Entry_numeric_type for numeric arguments in thread entry functions with at least one numeric argument.
* 2008-08-07 Chris Johns <chrisj@rtems.org>Chris Johns2008-08-074-1/+533
| | | | | | | | | * libcsupport/src/_rename_r.c: Fixed return code bug. Add a check to see if the 'to' path was a directory and removed the directory. * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Added the mv command. * libmisc/shell/main_mv.c, libmisc/shell/pathnames-mv.h: New.
* 2008-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-051-7/+31
| | | | | PR 741/networking * libmisc/dummy/dummy.c: Add dummy network configuration.
* 2008-08-04 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-08-052-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * rtems/include/rtems/rtems/sem.h, rtems/src/semobtain.c: Changed option set type to rtems_option. * score/src/objectgetinfo.c: Check return value of _Objects_API_maximum_class(). * libmisc/monitor/mon-mpci.c, libmisc/monitor/monitor.h, rtems/include/rtems/rtems/message.h, rtems/src/msgmp.c, rtems/src/msgqallocate.c, rtems/src/msgqbroadcast.c, rtems/src/msgqcreate.c, rtems/src/msgqreceive.c, rtems/src/msgqsend.c, rtems/src/msgqurgent.c, score/include/rtems/score/coremsg.h, score/include/rtems/score/mpci.h, score/include/rtems/score/thread.h, score/inline/rtems/score/coremsg.inl, score/src/coremsg.c, score/src/coremsgbroadcast.c, score/src/coremsgseize.c, score/src/coremsgsubmit.c: Removed parameters of _Message_queue_Allocate(). Changed option set type to rtems_option. Changed type of maximum message and packet size to size_t. Changed the input buffer type for message send functions to "const void *". Changed the pointer to the second return argument in the thread wait information to a union. This union can contain a pointer to an immutable or a mutable object. This is somewhat fragile. An alternative would be to add a third pointer for immutable objects, but this would increase the structure size.
* Add missing prototypes.Ralf Corsepius2008-08-023-7/+6
|
* 2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-07-311-1/+0
| | | | | * libmisc/shell/main_rm.c: sys/mount.h is not available when networking is disabled but luckily it is not even needed to compile.
* Add missing prototypes.Ralf Corsepius2008-07-311-1/+1
|
* Remove classinfo_tester.Ralf Corsepius2008-07-311-1/+0
|
* 2008-07-29 Tim Cussins <timcussins@eml.cc>Joel Sherrill2008-07-291-0/+2
| | | | | * ChangeLog, libmisc/monitor/mon-object.c: Add mising RTEMS_POSIX_API conditional.
* Remove stray arg from function call.Ralf Corsepius2008-07-291-1/+1
|
* Add missing prototypes.Ralf Corsepius2008-07-293-12/+12
|
* 2008-07-29 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-2916-125/+3159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libblock/Makefile.am: Removed src/show_bdbuf.c. * libblock/src/show_bdbuf.c: Removed. * libblock/include/rtems/bdbuf.h, cpukit/libblock/src/bdbuf.c: Rewritten the bdbuf code. Remove pre-emption disable, score access, fixed many bugs and increased performance. * libblock/include/rtems/blkdev.h: Added RTEMS_BLKDEV_CAPABILITIES block device request. Cleaned up comments. Added block and user fields to the sg buffer request. Move to rtems_* namespace. * libblock/include/rtems/diskdevs.h, cpukit/libblock/src/diskdevs.c: Move to rtems_* namespace. Add a capabilities field for drivers. Change rtems_disk_lookup to rtems_disk_obtain to match the release call. You do not lookup and release a disk, you obtain and release a disk. * libblock/include/rtems/ide_part_table.h, libblock/include/rtems/ramdisk.h, libblock/src/ide_part_table.c: Move to rtems_* namespace. * libblock/include/rtems/nvdisk.h: Formatting change. * libblock/src/blkdev.c: Move to rtems_* namespace. Change rtems_disk_lookup to rtems_disk_obtain * libblock/src/flashdisk.c: Move to rtems_* namespace. Use the new support for the block number in the scatter/grather request struct. This allows non-continuous buffer requests for those drivers that can support increasing performance. * libblock/src/nvdisk.c: Move to rtems_* namespace. Removed warnings. Added better error checking. Fixed some comments. * libblock/src/ramdisk.c: Move to rtems_* namespace. Added some trace functions to help debugging upper layers. Use the new support for the block number in the scatter/grather request struct. This allows non-continuous buffer requests for those drivers that can support increasing performance. * libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Use new chains API. Removed temporary hack and changed set_errno_and_return_minus_one to rtems_set_errno_and_return_minus_one. Move fat_buf_access from header and stopped it being inlined. Updated to libblock changes. * libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/fat_file.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_free.c, libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_misc.c, libfs/src/dosfs/msdos_mknod.c: Use new chains API. Removed temporary hack and changed set_errno_and_return_minus_one to rtems_set_errno_and_return_minus_one. Updated to libblock changes. * libmisc/Makefile.am: Add new ls and rm command files. * libmisc/shell/cmp-ls.c, libmisc/shell/extern-ls.h, libmisc/shell/filemode.c, libmisc/shell/print-ls.c, libmisc/shell/pwcache.c, libmisc/shell/utils-ls.c, libmisc/shell/vis.c, shell/vis.h: New. * libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c, libmisc/shell/utils-cp.c: Fixed the usage call bug. * libmisc/shell/main_blksync.c: Updated to the new block IO ioctl command. * libmisc/shell/main_ls.c, libmisc/shell/main_rm.c: Updated to BSD commands with more features. * score/src/coremutex.c: Fix the strick order mutex code. * libmisc/shell/shell.c: Change shell tasks mode to be timeslice and no ASR. * sapi/include/confdefs.h: Change ata_driver_task_priority to rtems_ata_driver_task_priority. Add the new BD buf cache parameters with defaults. * score/src/interr.c: Do not return if the CPU halt call returns.
* 2008-07-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-231-12/+23
| | | | | * libmisc/shell/shell_script.c: Clean up code for command not found including the error message.
* 2008-07-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-239-51/+25
| | | | | | | | | | | * libmisc/monitor/mon-extension.c, libmisc/monitor/mon-itask.c, libmisc/monitor/mon-part.c, libmisc/monitor/mon-prmisc.c, libmisc/monitor/mon-queue.c, libmisc/monitor/mon-region.c, libmisc/monitor/mon-sema.c, libmisc/monitor/mon-task.c, libmisc/monitor/monitor.h: Use rtems_object_get_name() instead of internal routine. This makes it possible to also print string names of POSIX objects. Adjust task report to realign since we can have longer names.
* 2008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-177-6/+27
| | | | | | | | | * libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c, libmisc/monitor/monitor.h, libmisc/shell/main_chmod.c, libmisc/shell/main_tty.c, libmisc/shell/main_umask.c, libmisc/shell/main_whoami.c: Add pthread command to monitor when POSIX is enabled. Remove include of rtems/monitor.h from files not related.
* 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-162-2/+2
| | | | * libmisc/shell/shellconfig.h, libmisc/stackchk/stackchk.h: Fix typos.
* 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-162-38/+82
| | | | | | | * libmisc/shell/shell.c, libmisc/shell/shell.h: New argument sequence for rtems_shell_init(). This makes it possible to run the shell forever or invoke it from a program as a subroutine, have a user enter commands, and wait for it to exit.
* Restore terminal settings on exit.Thomas Doerfler2008-07-101-2/+13
|
* 2008-07-02 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-021-12/+0
| | | | * libmisc/shell/shell_script.c: Remove unused function.
* 2008-07-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-011-4/+10
| | | | | * libmisc/monitor/mon-prmisc.c, rtems/include/rtems/rtems/attr.h: Review association tables in monitor.
* 2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-063-5/+5
| | | | | | | | | | | | | * libcsupport/src/__times.c, libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-task.c, rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c, score/include/rtems/score/thread.h, score/src/threaddispatch.c, score/src/threadinitialize.c, score/src/threadtickletimeslice.c: Add typedefs for cpu usage and period timing statistics. Also renamed related variables and structure members so they are the same whether you are using nanosecond (e.g. struct timespec) or ticks (e.g. uint32_t) granularity. This lays the groundwork for future cleanup.
* 2008-05-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-05-271-1/+1
| | | | | | * libmisc/shell/shell_getchar.c: Minor change so dropping connection while at prompt results in shell logging out and connection still being available.
* 2008-05-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-05-271-2/+15
| | | | | * libmisc/shell/shell.c: Minor change so dropping connection during login prompt results in connection still being available.
* 2008-04-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-04-171-7/+7
| | | | | | | | | | | | * libmisc/dummy/dummy.c, sapi/include/confdefs.h: Add checks for application configuration errors. If any POSIX objects or a POSIX init thread is configured without POSIX being configure, then error out. Similarly for ITRON. Add CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER configuration parameter so the application has to explicitly configure the Clock driver in or out if the Timer driver is not configured. Also verify RTEMS was built for multiprocessing, if the user tries to configure a multiprocessing application.
* 2008-04-12 Chris Johns <chrisj@rtems.org>Chris Johns2008-04-116-536/+696
| | | | | | | | | | | | * libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/shell/shell_script.c: Add support to echo the commands to stdout. This is useful with the -v script option to show commands as the run. Also added support to chdir to the directory the task invoking the script is in. * libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c, libmisc/shell/utils-cp.c: Update tro the latest FreeBSD version. * libcsupport/Makefile.am, libcsupport/src/fchown.c: Add fchown support.
* 2008-04-08 Chris Johns <chrisj@rtems.org>Chris Johns2008-04-081-4/+16
| | | | | | * libmisc/shell/shell.c: Copy the cmd line to a buffer to split into argv parts. Was using the command line history buffer so the history was being corrupted.
* 2008-04-03 Chris Johns <chrisj@rtems.org>Chris Johns2008-04-034-113/+636
| | | | | | | | | | | | * libfs/src/nfsclient/src/librtemsNfs.h, libfs/src/nfsclient/src/nfs.c: Remove CEXP references. CEXP is external to RTEMS and even if in the cpukit it should not cross reference in this way. * libmisc/shell/shell_getchar.c: New. Taken from the monitor. * libmisc/Makefile.am: Add shell_getchar.c and clean up a little in the shell area. * libmisc/shell/shell.c, libmisc/shell/shell.h: Add line editting support.
* 2008-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-03-121-3/+20
| | | | | | * libmisc/shell/cmds.c: Directly register the command structure to avoid unnecessary duplication of static strings. We know best this time.
* 2008-03-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-03-074-11/+27
| | | | | | | | * libmisc/shell/main_cp.c, libmisc/shell/main_netstats.c, libmisc/shell/shell_script.c: Add memset() of getopt_data to ensure it is zeroed out each time we use getopt_r(). * libmisc/shell/shell.c: Do not echo commands if input is not a tty. This makes the scripts behave more like UNIX scripts.