RTEMS | Draft: libcsupport: Reimplement POSIX passwd and group entry APIs (!1250)

Gedare Bloom (@gedare) gitlab at rtems.org
Tue May 19 21:40:36 UTC 2026




Gedare Bloom started a new discussion on cpukit/libcsupport/src/getgrent.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1250#note_150559

 > +  char *buffer,
 > +  size_t bufsize,
 > +  struct group **result
 > +);
 > +
 > +struct group *getgrent(void);
 > +struct group *getgrnam(const char *name);
 > +struct group *getgrgid(gid_t gid);
 > +
 > +static char *group_align_pointer(char *p)
 >  {
 > -  pthread_key_create(&grp_key, free);
 > +  uintptr_t value;
 > +
 > +  value = (uintptr_t) p;
 > +  value = (value + sizeof(char *) - 1) & ~((uintptr_t) sizeof(char *) - 1);

this should use `RTEMS_ALIGN_UP` from basedefs.h

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1250#note_150559
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/20260519/1bcd8747/attachment-0001.htm>


More information about the bugs mailing list