5235 Commits

Author SHA1 Message Date
Lucian Silistru
45b1495a8a record: Avoid dependency on object link order
For the application configuration option
CONFIGURE_RECORD_INTERRUPTS_ENABLED, define
bsp_interrupt_get_dispatch_table_slot() in the application configuration
to avoid issues with the object link order within the RTEMS libraries.

Enable this option in an associated test.

Close #5244.
2025-08-12 13:18:30 -05:00
Joel Sherrill
b68e31a200 psxsignal0[78]: Re-add copyright and end of comment block
These four files had a copyright block with no license text.
The script to move the SPDX line to the top of the file ended
up deleting a line which was the end of the comment block.
2025-08-12 12:34:59 -05:00
Joel Sherrill
24314434a8 testsuites/*: 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
Joel Sherrill
91e475687e psxhdrs: 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
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
Jeremy Lorelli
272d355c42 malloctest: Add tests for malloc_usable_size
A few tests for malloc_usable_size.
2025-07-26 21:44:11 -04:00
Joel Sherrill
1a2f6e248b psxcancel01/init.c: Correct pthread and cleanup prototypes
c20dc9c7aa added test code which included a cancellation cleanup
handler and a pthread body which were of the wrong prototype. With
GCC 15, this is now an error.
2025-07-25 10:06:56 -05:00
tangkun
c20dc9c7aa cpukit/posix/src/clocknanosleep.c: fix cancellation points
According to the POSIX standard, sleep/nanosleep/clock_nanosleep
should be treated as cancellation points.

Updates #4675
2025-07-25 09:19:41 -05:00
Mazen Adel Elmessady
d1f34a45cc testsuites/libtests: Added quick_exit tests
Added the tests for quick_exit() and
at_quick_exit() in textsuits/libtests/exit04
2025-07-24 20:50:43 -05:00
Joel Sherrill
66f60eb050 psx08: Correct signature of a_thread_func()
This signature was not correct for a pthread.
2025-07-24 19:21:51 -05:00
yang.zhang
08c005764d posix: pthread_sigmask should return error number when fail
According to the Posix specification:
Upon successful completion pthread_sigmask() shall return 0;
otherwise, it shall return the corresponding error number.
2025-07-24 19:06:30 -05:00
Joel Sherrill
39d6c3bd26 testsuites/sptests/spconfig01/init.c: Eliminate hard-coded warnings
This test had two #warnings which were always in the build log.
Added a comment block and deleted the #warning directives.
2025-07-24 17:55:38 -05:00
Joel Sherrill
abc34bc5a8 testsuites/validation/tx-call-within-isr.c: Fix comparision warning.
GCC generated a warning for "comparison of distinct pointer types
lacks a cast [-Wcompare-distinct-pointer-types]." Added a cast to
fix this.
2025-07-24 17:51:27 -05:00
tangkun
8d73c4914e cpukit/posix/src/pthreaddetach.c: fix pthreaddetach issue
When calling pthread_detach on a thread which is already detached,
it should return EINVAL.
2025-07-24 17:39:13 -05:00
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