Re: [fpc-pascal] Get user ID for name on Linux

2018-01-04 Thread Graeme Geldenhuys
On 2018-01-04 15:17, Marco van de Voort wrote: FreeBSD is mostly supported, though two units (shadow and crypth) and some calls relating to shadow passwords in users are not. Thanks for the information Marco. I'll take a look. Regards, Graeme

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-04 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > As Marco said, you can use the "users" unit. Here is an example of how I > use in in fpGUI, and it supports 32-bit and 64-bit systems. > > > https://github.com/graemeg/fpGUI/blob/develop/src/corelib/x11/fpg_x11.pas#L4010-L4044 > > Note though

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-04 Thread leledumbo via fpc-pascal
> Is there a complete list of packages available somewhere? $ svn co https://svn.freepascal.org/svn/fpc/trunk fpc $ cd fpc/packages $ ls tadaaa... -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist -

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread geneb
On Wed, 3 Jan 2018, Marco van de Voort wrote: In our previous episode, geneb said: > Many thanks! That's great. The completeness of FPC units and packages is really > astonishing. > Is there a complete list of packages available somewhere? There is some info(1) in the wiki, though many

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread Marco van de Voort
In our previous episode, geneb said: > > > Many thanks! That's great. The completeness of FPC units and packages is > > really > > astonishing. > > > Is there a complete list of packages available somewhere? There is some info(1) in the wiki, though many details are missing, and the status of

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread geneb
On Wed, 3 Jan 2018, Tobias Giesen wrote: Many thanks! That's great. The completeness of FPC units and packages is really astonishing. Is there a complete list of packages available somewhere? tnx. g. -- Proud owner of F-15C 80-0007 http://www.f15sim.com - The only one of its kind.

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread Tobias Giesen
Many thanks! That's great. The completeness of FPC units and packages is really astonishing. Cheers, Tobias On Wed, 3 Jan 2018 06:36:32 + Graeme Geldenhuys wrote: > On 2018-01-03 00:12, Tobias Giesen wrote: > > Unfortunately Libc and UnixUtils don't

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread Giuliano Colla
Il 03/01/2018 01:12, Tobias Giesen ha scritto: I would like to get the user ID for a Linux user name. You might execute from the application the "/usr/bin/id" command which should exist in any Linux flavour passing the required user name ( if it's

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-02 Thread Graeme Geldenhuys
On 2018-01-03 00:12, Tobias Giesen wrote: Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I can't call the functions getpwnam or GetUserId. As Marco said, you can use the "users" unit. Here is an example of how I use in in fpGUI, and it supports 32-bit and 64-bit

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-02 Thread Marco van de Voort
In our previous episode, Tobias Giesen said: > I would like to get the user ID for a Linux user name. > > Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I > can't call the > functions getpwnam or GetUserId. Is there a replacement? Or could I define > and > import the

[fpc-pascal] Get user ID for name on Linux

2018-01-02 Thread Tobias Giesen
Hello, I would like to get the user ID for a Linux user name. Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I can't call the functions getpwnam or GetUserId. Is there a replacement? Or could I define and import the function myself? Thanks for any help! Cheers,