Commit Graph
5221 Commits
Author SHA1 Message Date
Sebastian Huber eb4f544689 malloctest: Fix issue with use after free
Do not call realloc() with a previously freed pointer.  Perform a
successful reallocation.
2025-07-06 22:54:22 -04:00
Sebastian Huber 7215a3051a malloc04: Fix for BSPs with multiple memory areas
Some BSPs provide multiple memory areas.  Make them empty.
2025-07-06 22:54:22 -04:00
Bhavya Shah e618b20215 imfs/imfs_statvfs: Added the statvfs functionality to IMFS module
- Modified the psximfs01 test to validate the functionality
- Modified the IMFS_fs_info_t keeping the jnode counter
- Added imfs_statvfs.c which sets the statvfs struct fields for imfs
2025-07-01 09:16:31 -05:00
Chris Johns df1d85c0f8 cpukit/libio: Support close with IOP references held
- Provide an option for a file system to support close wtih
  references held. This can happen in more complex file systems
  and file descriptor handling with more complete reference
  handling implementations where an fd can hold other fds and
  close can be call on any fd and succeed.

- Fix open IOP leaks in the error paths.

- Provide better definition of the IOP flags to help clarify
  the code.

Fixes #5201
2025-06-26 00:53:51 +00:00
Joel Sherrill 8937b04a70 testsuites/sptests/sp06/task2.c: Eliminate old-style prototypes
GCC 15 is noisy about these. They have been deprecated since C90
but still lurk.

Updates #5275
2025-06-24 20:23:34 +00:00
Joel Sherrill 6b0d16f7dd testsuites/benchmarks/dhrystone/*: Eliminate old-style prototypes
GCC 15 is noisy about these. They have been deprecated since C90
but still lurk.

Updates #5275
2025-06-24 20:23:34 +00:00
Joel Sherrill 08807c3c1f paranoia/paranoia.c: Update to ANSI signature
As of GCC 15, use of K&R signatures is an error.

Closes #5262.
2025-06-10 18:58:39 +00:00
Joel Sherrill 1873615777 spmisc01/init.c: Eliminate use of keyword unreachable
In C23 and later, unreachable is a keyword. GCC 15 defaults to C23.

Closes #5261.
2025-06-10 18:55:22 +00:00
Amar Takhar 662ad275f7 ascii: Remove non-ASCII characters from names
There are only the 3 names in our entire source that use non-ASCII characters.
Our documentation can still use any type of character.  We want to limit source
to ASCII for safety reasons.
2025-05-22 19:35:12 +00:00
Amar Takhar b714e4a809 ascii: Remove non-ASCII characters
We will soon be enforcing ASCII-only characters for source.
2025-05-22 19:35:12 +00:00
mez3n 528095cd24 cpukit/rtems: add rtems_barrier_get_number_waiting()
Closes rtems/programs/gsoc#9
Added rtems_get_number_waiting according to the issue
rtems/programs/gsoc#9, including tests and documentation.
2025-05-12 17:00:14 +00:00
yang.zhang 76f9a25ea0 cpukit/posix: sigtimedwait() only clear a signal when EINTR
When a thread is unblocked from sigtimedwait, it maybe ETIMEOUT or
EINTR. If ETIMEOUT, there is no pending signals, never and is not
necessary to call _POSIX_signals_Clear_signals because of the_info->si_signo
is -1.

Should validate the signal passed into _POSIX_signals_Clear_signals.
2025-05-08 22:47:01 +00:00
Joel Sherrill 2eb458afa6 sptests/*/*.scn: Convert to UNIX format
Accidentally committed in DOS format.
2025-03-19 13:38:36 +00:00
Joel Sherrill 812901f53b psxtests/*/*.doc: Convert to UNIX format
Accidentally committed in DOS format.
2025-03-19 13:38:36 +00:00
Joel Sherrill 6e5d82c160 fstests/fsdosfsname01/files.h: Convert to UNIX format
Accidentally committed in DOS format.
2025-03-19 13:38:36 +00:00
Joel Sherrill 15c389892b testsuites/sptests/*: Relicense to 2-BSD
These files were by Kuan-Hsun Chen who has previously given
permission to relicense.

Updates #3053.
2025-03-18 15:17:54 -05:00
yang.zhang ad81baf160 cpukit/posix: signal() should return SIG_ERR on error
When signum is invalid, return SIG_ERR, and set errno to
indicate the cause.
2025-02-28 16:23:16 +00:00
Gedare Bloom 078baccade rtemscxx: replace URLs with emails in copyright
Updates #4636.
2025-02-11 04:02:43 +00:00
Gedare Bloom 8e6ded473c rtems: update licenses to 2BSD
This is an update of many lingering embedded brains GmbH licenses from
the RTEMS License to the 2-BSD license where possible depending on the
joint copyrights.

Updates #3053.
2025-02-10 15:44:09 +00:00
Sebastian Huber 294761ca8d posix: Improve clock_gettime()
Return CPU usage values for CLOCK_PROCESS_CPUTIME_ID and
CLOCK_THREAD_CPUTIME_ID.
2025-02-10 15:37:18 +00:00
alessandronardin 9876b5949f posix/aio: Implemented aio_suspend()
Implemented aio_suspend().
Added test to verify functionality.
2025-02-04 23:34:31 +00:00
zak liang cc4123136b sptimespec01 : Add test case to sptimespec01 which uses a > 32-bit time
the commit adds a test case to test rtems-timespec_add_to  which uses a > 32-bit time.
closes #5146
2025-01-24 01:08:29 +00:00
Sebastian Huber b2a0819175 psxtests/psx09: Change prio while at low prio
Update #5168.
2025-01-20 23:37:35 +00:00
Sebastian Huber d69cbcbef8 psxtests/psx09: Improve sporadic server tests
Drop thread parameter from get_current_prio().

Lock/unlock ceiling mutex while executing at low and high priority.

Update #5168.
2025-01-20 23:37:35 +00:00
Sebastian Huber f64f9e298d psxtests/psx09: Use local variables
Update #5168.
2025-01-20 23:37:35 +00:00
tangkun fc0c3b304b testsuites/psxtests/psx06: Fix printing format error 2024-12-05 09:29:53 +00:00
Sebastian Huber 7d5c08db80 validation: Check bootloader L2C settings
Update #4925.
2024-11-20 15:08:04 +00:00
Sebastian Huber 7ff3438cba validation: Test thread priority change detail
Test the proper serialization of explicit thread priority changes (for
example rtems_task_set_priority()) and thread priority changes carried
out by thread queues (locking protocols such as priority inheritance).

With RTEMS_DEBUG enabled, the new test case fails with an assertion.  It
is fixed in a follow up commit.

Update #5159.
2024-11-20 02:32:38 +01:00
Sebastian Huber 04f263ee82 validation: Add ticket lock helpers
Update #5159.
2024-11-20 02:32:11 +01:00
Sebastian Huber 83dccef48d libtests/ttest01: Fix CPU counter precision issues
Change the time to convert so that rounding issues do not propergate to
the second next digit.  Properly round the result used for the precision
estimate.
2024-11-14 03:45:46 +01:00
Sebastian Huber f7b04e72f8 validation: Clarify SMP EDF test case
Update #3716.
2024-11-14 01:33:24 +01:00
Sebastian Huber 5ed0bf3457 spfatal34/spfatal36: Avoid RTEMS_UNREACHABLE()
The RTEMS_UNREACHABLE() is a hint to the compiler that this code
location is unreachable.  The compiler may use this information to
optimize the code.  If a test case fails and we reach this code
location, then unpredictable things may happen making the test case
debugging more difficult than necessary.
2024-11-13 23:05:25 +00:00
Sebastian Huber 85facac39f spfatal26: Fix recursive test end 2024-11-13 23:05:25 +00:00
Sebastian Huber 0f2721c832 record: Dump only once in fatal handling 2024-11-12 22:43:35 +00:00
Sebastian Huber 920f8d8897 record: Rework client
The ring buffer overflow handling is already performed by
rtems_record_fetch().
2024-11-12 22:43:35 +00:00
Sebastian Huber be764f7dec record: Remove rtems_record_drain()
The rtems_record_drain() function is unreliable.  Replace it with
rtems_record_fetch().
2024-11-12 22:43:35 +00:00
Sebastian Huber 049b9b5c82 record: Add rtems_record_fetch()
This function will replace rtems_record_drain() which turned out to be
unreliable in SMP configurations.
2024-11-12 22:43:35 +00:00
Sebastian Huber 3721dea3d0 record02: Fix test end
Include _Record_Fatal_dump_base64_zlib() in the test scope.
2024-11-12 22:43:35 +00:00
Sebastian Huber 3f7fdcc711 shell01: Fix test failure
Test failure was introduced by commit:

commit c4f9759068
Author: shuhua hua <huangshuhua@kylinos.cn>
Date:   Thu Sep 12 02:36:13 2024 +0000

    libtests/shell01:add test empty and NULL usernames check
2024-11-12 16:25:05 +00:00
Sebastian Huber 9fabe95dc6 fstests: Fix name of JFFS2 NAND tests 2024-11-12 16:23:03 +00:00
Aaron Nyholm 87c725b6ed flashdev: Add sector IOCTLs
Added new IOCTLs to flashdev to get sector info.
Updated flashdev shell command and flashdev test with new IOCTLs.
2024-11-06 22:35:20 +00:00
yang.zhang 64fe53a855 libfs/pipe: Fix panic caused by incomplete pipe dup
When dup fd, should also clone fctnl flags.
Also should check NULL param in pipe_* funcs.

Signed-off-by: yang.zhang <zhangyang01@kylinos.cn>
2024-10-30 20:03:58 +00:00
Amar Takhar e0f1c8fe0b Set Python scripts to use Python 3
Several of these already required Python 3 and would not run under 2.7.
2024-10-24 23:26:05 +00:00
Sebastian Huber 4c75bd88f3 Revert "libmisc/stackchk: Change stack checker reporter function signatures"
This reverts commit c1aa06dbd2.

Extending the rtems_stack_checker_info like this breaks the existing
visitor API used by rtems_stack_checker_iterate().  After review, using
an information structure contradicts the intention of the reporter to
allow a minimal reporting.  Filling up the information structure with
all the details would pull in several dependencies, like
_Thread_Get_name().  The API should be improved to provide the user with
the necessary information from the TCB without having to access members
directly.
2024-10-19 15:43:07 +00:00
Mohamed Hassan c1aa06dbd2 libmisc/stackchk: Change stack checker reporter function signatures
This helps in abstraction by encapsulating unnecessary data to be revealed to the user
2024-10-16 04:30:45 +00:00
shuhua hua c4f9759068 libtests/shell01:add test empty and NULL usernames check 2024-10-15 13:12:25 +00:00
Kinsey Moore 9eb23924e8 testsuites/sptree01: Fix missing prototype warning 2024-09-25 11:55:40 +00:00
Kinsey Moore 81930e2638 testsuites: Add dl13 test for Thumb to ARM transitions 2024-09-24 20:57:56 -05:00
Sebastian Huber c311068a9e smpfatal08: Fix build for aarch64
Update #5064.
2024-09-20 06:17:09 +02:00
Sebastian Huber 2aa921c3be validation: Fix synchronization issue 2024-09-19 04:35:20 +02:00