[oi-dev] [developer] Feedback on Slurm patches
Alexander Pyhalov
alp at rsu.ru
Fri May 6 20:09:59 UTC 2016
On 05/06/2016 23:02, Aurélien Larcher wrote:
>> You can compile code with -D_POSIX_PTHREAD_SEMANTICS to get standard
>> behavior (see getgrnam(3C).
>>
>
> This is already the case but glibc has a non-POSIX version if I understood
> well.
> Instead of:
>
> group *getgrent_r(struct group *grp, char *buffer, int bufsize);
>
> they use:
>
> int getgrent_r(struct group *grp, char *buffer, int bufsize, group *
> resultgrp);
>
>
Vice versa, later variant is posixly correct.
--
С уважением,
Александр Пыхалов,
программист отдела телекоммуникационной инфраструктуры
управления информационно-коммуникационной инфраструктуры ЮФУ
More information about the oi-dev
mailing list