[Lazarus] opengl
Andrea Mauri
andrea.mauri.75 at gmail.com
Mon Feb 25 12:31:01 CET 2008
Am Freitag, den 22.02.2008, 12:44 +0200 schrieb Graeme Geldenhuys:
> On 22/02/2008, Marco van de Voort <marcov at stack.nl> wrote:
> >
> > Like? Note that the password stuff is now in both 2.2.1 and 2.3.x in the
> > "users" package.
>
> getgrgid() - Used for getting the Group ID Name from the Group ID.
> getpwuid() - Used for getting the User Name from the User ID.
>
> Both of these are used in a FileGrid component (eg: File Open Dialog)
> to display a files User and Group names like graemeg:users instead
> of 5000:3000
>
> My work-around for FreeBSD is to display the numeric values only. I'm
> thinking of looking up the values manually in /etc/groups and
> /etc/passwd but was told it can be inaccurate.
Seems you did not read the answer I gave you on that issue:
> The functions getlogin(2), getpwnam(3) and getgrnam(3) should be it.
> Look at the man pages how to use them.
> (this is on freebsd 4, should not have changed moving to 6 or 7)
>
> I don't know if they are wrapped by fpc or what the names would be
> (maybe fpXxxx as always).
But that would need ifdefs and libc, too. ;)
Have fun,
Marc
More information about the Lazarus
mailing list