[Lazarus] lNet servers

User usuarioanonimomysql at gmail.com
Thu Dec 4 13:02:00 CET 2008


Marco van de Voort ha scritto:
> In our previous episode, Andrea Mauri said:
>   
>> I solved using GetUserData procedure from users unit.
>>
>>   GetUserData(FpGetuid, Data);
>>   Result.Name:= Data.pw_name;
>>   Result.Real_name:= Data.pw_gecos;
>>   Result.User_id:= Data.pw_uid;
>>   Result.Group_id:= Data.pw_gid;
>>   Result.home_dir:= Data.pw_dir;
>>   Result.shell:= Data.pw_shell;
>>     
>
> Note that that avoids _unit_ libc but not _library_ libc.
>
> That said, the above example code will probably work well on FreeBSD and OS
> X too (contrary to _unit_ libc)
>   

That's what I want.
a.

> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>   

-- 
Dr. Andrea Mauri, PhD
Milano Chemometrics and QSAR Research Group
Department of Environmental Sciences
University of Milano-Bicocca 
P.zza della Scienza, 1
20126 Milano - Italy

Tel: ++39 02 64482801
mailto:andrea.mauri.75 at gmail.com
http://michem.disat.unimib.it/chm/ 




More information about the Lazarus mailing list