FreeRTOS / Lab-Project-FreeRTOS-POSIX

This repository contains FreeRTOS+POSIX source code, which could be consumed as a submodule.
MIT License
95 stars 60 forks source link

Missing definition of struct tm #24

Closed krshnarajd closed 1 year ago

krshnarajd commented 1 year ago

I am trying to evaluate the freertos+posix implementation. My existing code uses 'struct tm' for time related logic. While using library, I am getting build error as the struct tm is not defined. I am unable to see the definition in FreeRTOS_POSIX/time.h. However the copy in the amazon-freertos repo has the definition.

-- commit link https://github.com/aws/amazon-freertos/commit/19de73d66057d80d262febe3232482e1d3e4726c

Whether this commit will be merged to this repo or I shall switch to the amazon-freertos posix repo ?

johnrhen commented 1 year ago

The amazon-freertos repo has the most up-to-date implementation of FreeRTOS+Posix. However, I should mention that FreeRTOS-Plus-POSIX is a FreeRTOS Labs project provided in the hope that it is useful. It is not a complete pthreads implementation, and does not necessary meet our production code quality standard. You can also see from the amazon-freertos repo migration guide that FreeRTOS+Posix has been deprecated, and is not recommended for use.

krshnarajd commented 1 year ago

Thanks. I can see that amazon freertos posix is deprecated. Whether this repo also deprecated and read only ? I would like to add some changes (For ex: struct tm).

johnrhen commented 1 year ago

This repo has not been formally deprecated, and we'll still review PRs made to it.

alfred2g commented 1 year ago

closing issue, please reopen if you have more questions.