Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-03

users.pp unit under Linux and FreeBSD

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I used to use the following methods from the "libc.pp" kylix compatible unit.

getpwuid(...)
getgrgid(...)

The issue was that the 'libc.pp' unit was not available for FreeBSD. I found the 'users.pp' unit which seems to have the methods I require. Is the 'users.pp' unit compatible with FreeBSD?

I would like to replace the above methods with the following methods from the 'users.pp' unit. So far under Linux I have no issues.

GetUserName(uid);
GetGroupName(gid)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Marco van de Voort
to Graeme Geldenhuys

In our previous episode, Graeme Geldenhuys said:

The issue was that the 'libc.pp' unit was not available for FreeBSD. I found the 'users.pp' unit which seems to have the methods I require. Is the 'users.pp' unit compatible with FreeBSD?

As far as I know yes, since 2.2.2. Also for OS X.

Only the shadow functions are linux only.

Graeme Geldenhuys
to Marco van de Voort
Marco van de Voort wrote
> Is the 'users.pp' unit compatible with FreeBSD? As far as I know yes, since 2.2.2. Also for OS X. Only the shadow functions are linux only.

That's perfect, thanks. Now fpGUI is finally 'libc.pp' unit free. ;-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/