# PATCH to check for availablity of getlogin and getgroups to posix extension

- Thread: https://externals.io/message/16166
- Original archive: https://news-web.php.net/php.internals/16166
- Started by Kamesh Jayachandran on 2005-05-05T11:18:42+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #16166 — Kamesh Jayachandran — 2005-05-05T11:18:42+00:00

URL: https://externals.io/message/16166#16166

Hi Jani,
Netware LibC does not have getgroups implemented, it has getlogin
functionality in recent LibC.
As ext/posix/posix.c does not have #ifdef HAVE_GETLOGIN and #ifdef
HAVE_GETGROUPS check before making use of getlogin and getgroups
functionality, NetWare cross compile fails.

I do ./configure --disable-posix to get through with the comilation. I
am interested in having this extension as a part of our php5, I have a
patch to check for the existence of getlogin and getgroups method. 
Please apply the same.

http://puggy.symonds.net/~kameshj/posix.c.patch.5.0
http://puggy.symonds.net/~kameshj/posixconfig.m4.patch.5.0

With regards
Kamesh Jayachandran

---

## #16177 — Jani Taskinen — 2005-05-09T12:17:26+00:00

URL: https://externals.io/message/16166#16177 · In reply to: #16166

Patches applied to all branches. Just in case. :)

     --Jani




> Hi Jani,
> Netware LibC does not have getgroups implemented, it has getlogin
> functionality in recent LibC.
> As ext/posix/posix.c does not have #ifdef HAVE_GETLOGIN and #ifdef
> HAVE_GETGROUPS check before making use of getlogin and getgroups
> functionality, NetWare cross compile fails.
>
> I do ./configure --disable-posix to get through with the comilation. I
> am interested in having this extension as a part of our php5, I have a
> patch to check for the existence of getlogin and getgroups method.
> Please apply the same.
>
> http://puggy.symonds.net/~kameshj/posix.c.patch.5.0
> http://puggy.symonds.net/~kameshj/posixconfig.m4.patch.5.0
>
> With regards
> Kamesh Jayachandran
>
>

-- 
Donate @ http://pecl.php.net/wishlist.php/sniper
