RTEMS | Draft: cpukit/age_verify: Add optional state-mandated age verification API (!1137)

Kinsey Moore (@opticron) gitlab at rtems.org
Mon Mar 16 15:11:22 UTC 2026




Kinsey Moore started a new discussion on cpukit/include/rtems/age_verify.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1137#note_145719

 > +#endif
 > +
 > +// These age brackets are arbitrary and can be changed as needed to comply with the law of different regions.
 > +// Ultimately, I think that we could even just have a single "over 18" bracket, but this allows for a little more
 > +// granularity if desired. Changes to the rtems_age_set_bracket logic in age_verify.c would be needed if this occurs.
 > +typedef enum {
 > +  AGE_UNDER_13 = 0,
 > +  AGE_13_TO_18 = 1,
 > +  AGE_18_TO_24 = 2,
 > +  AGE_OVER_24  = 3
 > +} rtems_age_bracket;
 > +
 > +// Called by OS or application setup process (verification request)
 > +rtems_status_code rtems_age_set_bracket(rtems_age_bracket bracket);
 > +
 > +// Called by applications (the signal)

RTEMS does not use C++-style comments (//). Any comments should be converted to C-style (/**/) and these functions should get doxygen headers.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1137#note_145719
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260316/24280d17/attachment-0001.htm>


More information about the bugs mailing list