<div dir="ltr"><div><div>Hi,<br></div>in an attempt to compile Slurm [0] on OpenIndiana to add it to oi-userland [1], I encountered several minor illumos-related issues:<br><br>1) getgrent_r has 3 arguments since it returns group * on illumos while glibc has 4 and returns int: is checking that ret != NULL enough ?<br><br>2) sched_getaffinity does not exist and I replaced it with pset [2]<br><br></div>3) cfmakeraw does not exist so I used the code snippet [3]<br><div><br></div><div>4) mount.h does not have MS_NOEXEC and MS_NODEV and I do not know what to do [4]<br></div><div><br></div><div>5) getgrouplist does not exist and I used a patch from kde-solaris [5]<br></div><div><br></div><div>I would be grateful if you have any input on these points.<br><br></div><div>Best regards<br><br></div><div>Aurelien<br></div><div><br>[0] <a href="http://slurm.schedmd.com/">http://slurm.schedmd.com/</a><br>[1] <a href="https://github.com/alarcher/oi-userland/tree/slurm/components/sysutils/slurm">https://github.com/alarcher/oi-userland/tree/slurm/components/sysutils/slurm</a><br>[2] <a href="https://github.com/alarcher/oi-userland/blob/slurm/components/sysutils/slurm/patches/04-gres.patch">https://github.com/alarcher/oi-userland/blob/slurm/components/sysutils/slurm/patches/04-gres.patch</a><br>[3] <a href="https://www.perkin.org.uk/posts/solaris-portability-cfmakeraw.html">https://www.perkin.org.uk/posts/solaris-portability-cfmakeraw.html</a><br>[4] <a href="https://github.com/alarcher/oi-userland/blob/slurm/components/sysutils/slurm/patches/10-xcgroup.patch">https://github.com/alarcher/oi-userland/blob/slurm/components/sysutils/slurm/patches/10-xcgroup.patch</a><br>[5] <a href="https://github.com/alarcher/oi-userland/blob/slurm/components/sysutils/slurm/files/getgrouplist.h">https://github.com/alarcher/oi-userland/blob/slurm/components/sysutils/slurm/files/getgrouplist.h</a><br><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font style="font-family:courier new,monospace" size="1">---<br>Praise the Caffeine embeddings<br></font></div></div></div></div>
</div></div></div></div></div>