aditya0yadav opened a new pull request, #18331:
URL: https://github.com/apache/nuttx/pull/18331

   ---
   ## PLEASE DONT MERGE THIS PR 
   
   ## Summary
   
   This change updates the POSIX simulator host timer implementation to
   handle platform differences between macOS (Darwin) and Linux.
   
   macOS does not provide full support for POSIX timers such as
   `timer_create()` and `timer_settime()`. To address this, the simulator
   now uses `setitimer()` on macOS while retaining POSIX timers with
   absolute-time scheduling on Linux and other POSIX systems.
   
   The platform selection is handled via the `NUTTX_DARWIN` macro, keeping
   the simulator core logic unchanged while improving portability and
   correctness on macOS.
   
   ---
   
   ## Impact
   
   * Improves portability of the POSIX simulator on macOS hosts.
   * No functional or behavioral change for Linux or other POSIX platforms.
   * No impact on target hardware, board support, or NuttX core logic.
   * No documentation or security impact.
   * Build behavior remains unchanged on supported Linux systems.
   
   ---
   
   ## Testing
   
   * **Tested on macOS (Darwin)**:
   
     * Host: macOS (Apple Silicon)
     * Simulator: POSIX SIM
     * Verified successful build and runtime execution.
     * Confirmed timer interrupts are delivered via `SIGALRM` and simulator
       scheduling behaves as expected.
   
   * **Linux testing**:
   
     * Not yet tested on a Linux host.
   
   Since this change affects host timer handling, additional testing on
   Linux systems would be valuable before merging.
   If anyone is able to test this change on a Linux PC and confirm that the
   POSIX simulator builds and runs correctly, that feedback and any logs
   would be greatly appreciated.
   
   One more thing , 
   For supporting macos, multiple things need to be done like docs and linker 
too .
   
   
   ---
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to