Commit Graph
1186 Commits
Author SHA1 Message Date
Gedare Bloom 7a4c7d1ed0 cpukit: formatting fixes
Updates #3860
2026-02-12 12:17:04 -06:00
Kinsey Moore 120bc92b04 libmisc/stringto: Resolve error on 64bit systems
On 32bit systems, int and long are the same size. This is not the case
on 64bit systems. This corrects the maximum value of the stringto type
on those systems.
2026-02-06 13:29:20 -06:00
Prashant Rahul 97e4174c62 cpukit/stringto: return RTEMS_INVALID_ADDRESS when null input string
libc's strto* functions' behaviour isn't defined when the passed string
is NULL. In glibc it causes a seg fault when I tested it. This could
cause inconsistency.
rtem's stringto* functions didnt previously checked for null before
passing to underlying strto* functions.

Added the check which returns `RTEMS_INVALID_ADDRESS` on failure.

Also added a test case for the same

Signed-off-by: Prashant Rahul <prashantrahul141@protonmail.com>
2026-02-06 17:47:28 +00:00
Gedare Bloom 6c47d4d000 cpukit/libmisc: relicense stringto
Fixes #5475
Updates #3053
2026-02-05 14:50:37 -06:00
Gedare Bloom 41df32a43c cpukit/libmisc: reformat stringto
Fixes #5472.
2026-02-05 14:50:37 -06:00
Gedare Bloom 6cfb30623f cpukit/libmisc: reformat cpuuse
Fixes #5462.
2026-02-05 09:49:37 -06:00
Gedare Bloom a94cbc8610 cpukit/libmisc: reformat fsmount
Fixes #5467.
2026-02-05 09:47:48 -06:00
Gedare Bloom 0ea438b7c0 cpukit/libmisc: reformat monitor
Fixes #5468.
2026-02-05 09:37:20 -06:00
Gedare Bloom 47f5882905 cpukit/libmisc: reformat rtems-fdt
Fixes #5470.
2026-02-05 09:36:09 -06:00
Gedare Bloom 895330fcf5 cpukit/libmisc: reformat capture
Fixes #5461.
2026-02-05 09:32:36 -06:00
Prashant Rahul 9c2c1a6b03 cpukit/stringto: adapt stringto template for new api
This adapts stringto template file to adhere to the new api
Adds a special case for uchar conversion

Signed-off-by: Prashant Rahul <prashantrahul141@protonmail.com>
2026-02-04 23:34:44 +00:00
Prashant Rahul 77b0e01e79 cpukit/stringto: add special defines for stringtounsignedchar
This adds special defines in case of conversion to unsigned char
Adds missing defines in some of the other stringto functions
and adds the stringto.h header to all stringto* implementations

Signed-off-by: Prashant Rahul <prashantrahul141@protonmail.com>
2026-02-04 23:34:44 +00:00
Prashant Rahul b0755abea6 cpukit/stringto: refactor: Revert to commit e8d59ca6af
Reverts back all stringto implementation files  to
e8d59ca6af

Signed-off-by: Prashant Rahul <prashantrahul141@protonmail.com>
2026-02-04 23:34:44 +00:00
Gedare Bloom 534d5134dd cpukit/libmisc: reformat bspcmdline
Fixes #5460.
2026-02-04 17:22:14 -06:00
Gedare Bloom 6b44911f4f cpukit/libmisc: reformat regulator
Fixes #5459.
2026-02-04 17:21:10 -06:00
Gedare Bloom ef2bbe4eba cpukit/libmisc: reformat devnull
Fixes #5463.
2026-02-04 17:19:10 -06:00
Gedare Bloom a16a019c2d cpukit/libmisc: reformat dumpbuf
Fixes #5464.
2026-02-04 17:17:35 -06:00
Gedare Bloom 05e80dff97 cpukit/libmisc: reformat redirector
Fixes #5469.
2026-02-04 17:15:56 -06:00
Gedare Bloom 5b8dd1207c cpukit/libmisc: reformat default-configuration
Fixes #5465.
2026-02-04 17:15:10 -06:00
Gedare Bloom c60f56c925 cpukit/libmisc: reformat fb
Fixes #5466.
2026-02-04 17:14:06 -06:00
Gedare Bloom 900f84197b cpukit/libmisc: reformat stackchk
Fixes #5471.
2026-02-04 17:10:19 -06:00
Gedare Bloom 15b460582a cpukit/libmisc: reformat mouse
Fixes #5473.
2026-02-04 17:01:08 -06:00
Gedare Bloom 7af0310048 cpukit/libmisc: reformat untar
Fixes #5474.
2026-02-04 12:40:18 -07:00
Gedare Bloom 2436216d68 cpukit/mouse: relocate mouse_parser.c
Updates #5374
2026-02-02 19:16:07 +00:00
Joel Sherrill 211acc10da cpukit/shell/edit: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.
2026-01-28 13:19:23 -06:00
Kinsey Moore 7e5d1a851a cpukit/libmisc/monitor: Resolve function cast warning
Wrap rtems_monitor_config_dump to match the required function signature.
2026-01-27 12:44:03 -06:00
Joel Sherrill 3a61921132 mp misc: Address build failures and warnings
Changes required to build with RTEMS_MULTIPROCESSING and
associated tests without warnings.
2026-01-27 18:20:55 +00:00
Joel Sherrill 63c93acec1 cpukit/libmisc/shell/main_mknod.c: Address -Wclobbered warning
This warning indicates the potential for using a local variable which
is not guaranteed to be preserved across a setjmp()/longjmp() pair.
In this case, it was a false positive and the warning was disabled.

Updates #5364.
2026-01-23 17:43:20 -06:00
Joel Sherrill 5e80d1077b cpukit/libmisc/untar/untar.c: Correct third argument
The call to Untar_FromMemory_Print() on line 400 was passing
false as the third argument. "rtems_printer *" was expected.
In C previous to C23, false was a macro defined as 0 and could
be converted to a pointer. In C23, false, true, and bool are keywords.
2026-01-14 16:27:07 -06:00
Joel Sherrill cc9aa4b748 ino_t printf() cases: Add PRIdinod_t for ino_t format specifier
The sizeof(ino_t) can potentially vary based on the target. This
resulted in -Wformat warnings. Add PRIdino_t in <rtems/inttypes.h>
to have a portable format specifier.

Closes #5393.
2025-12-04 18:41:19 -06:00
Joel Sherrill 136f739ff9 cpukit/.../rtems-fdt/rtems-fdt-shell.c: Fix format specifier warning
This was using a * to specify the field width. The value passed
should be an int.
2025-12-04 17:56:14 -06:00
Joel Sherrill c06fb873eb fdt/rtems-fdt-shell.c: Correct comparisons of different signedness
The GCC warning -Wsign-compare flagged these instances of comparing
signed and unsigned types. A common pair was size_t and int.
2025-12-04 18:46:23 -05:00
Joel Sherrill c957d1a202 bspcmdline_getparam.c: Correct comparisons of different signedness
The GCC warning -Wsign-compare flagged these instances of comparing
signed and unsigned types. A common pair was size_t and int.
2025-12-04 18:46:23 -05:00
Joel Sherrill 3c2592be04 cpukit/libmisc/shell: Correct comparisons of different signedness
The GCC warning -Wsign-compare flagged these instances of comparing
signed and unsigned types. A common pair was size_t and int.
2025-12-04 18:46:23 -05:00
Joel Sherrill f6c6b309eb cpukit/libmisc/shell/main_pci.c: Add field in shell_pci_modifier table
This file had a table supporting the command line options.

Updates #5325.
2025-10-14 14:23:59 -05:00
Joel Sherrill f519633d0d cpukit/.../shell: Address missing field initializer warnings
Address missing field initializer warnings.

These were all rtems_shell_cmd_t or rtems_shell_alias_t declarations
with initialization.  The initialization was changed to using named
fields.

Updates #5325.
2025-10-14 14:23:59 -05:00
Joel Sherrill 34f9c5690d cpukit: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 21:59:38 +00:00
Joel Sherrill 32170f83a8 cpukit/libmisc/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.

libmisc/shell was in a previous patch.
2025-09-26 22:38:34 +00:00
Joel Sherrill 94d9749222 cpukit/libmisc/shell/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill 53d6794ea5 cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c: Correct file header
The @file block was below the license and should have been above it.
2025-09-26 22:38:34 +00:00
Joel Sherrill 788f4ee4b8 cpukit/libmisc/shell/hexdump-parse.c: Fix fall through warning
The case did not have a break because it was calling a function
which should have been marked as "__dead". It was calling a
function which was marked "__dead". Apparently the analysis
did not see through the extra layer.
2025-09-26 16:43:25 -05:00
Joel Sherrill 106363b29d cpukit/*: Correct implicit fallthrough warnings
Use RTEMS_FALL_THROUGH() to annotate case statements which
intentionally do not have a break statement.
2025-09-19 19:02:25 +00:00
Gedare Bloom 948bbec7f6 shell: add noreturn attribute to err.h 2025-09-18 14:14:15 -06:00
Aaron Nyholm f93f3b87c8 flashdev: Added missing copyright 2025-09-09 16:09:49 +00:00
Joel Sherrill 017ec9440e cpukit/libmisc/regulator/regulator.c: Fix order of calloc() arguments
Address calls to calloc () which swap the number of elements and
size of each element argument.
2025-09-04 15:43:45 +00:00
Joel Sherrill 51a2ee5e33 cpukit/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill ea86780bdf cpukit/libmisc: Move SPDX line to top of file
The RTEMS Software Engineering Guide specifies that the SPDX license
annotation shouldbe the first line of the file and not part of the
copyright/license comment block.
2025-08-11 19:06:32 +00:00
Amar Takhar 5fa8c7b52d readme: Add source locations for RTEMS Shell
If you have any ideas about the missing ones let us know.

This also reformats other areas using mdformat since it was used for the tables.
2025-08-01 09:10:55 +10:00
Amar Takhar 3fcf78156d cpukit: Remove utf8proc and add to build
This also moves the header from <utf8proc/utf8proc.h> to <utf8proc.h>  This
follows what the upstream project uses and keeps us from having to modify
upstream source to put it in a subdirectory.
2025-07-31 18:07:34 -05:00
Amar Takhar e9870fa74f cpukit: Remove uuid and add to build
Did the best I could handling the location of uuid.h
2025-07-31 18:01:42 -05:00