> Is there anybody has worked with STAT_IRWXG ?
> http://www.freepascal.org/docs-html/rtl/oldlinux/index-2.html

That is a legacy api. Better use Baseunix:
 
> I need infos in order to get a function that get file permissions on 
> linux system (like 0777, 0755...)

http://www.freepascal.org/docs-html/rtl/baseunix/fpaccess.html

or via stat:

http://www.freepascal.org/docs-html/rtl/baseunix/fpstat.html

Note that you can make octal values using the & notation.

E.g.

var i :  integer;

begin
 i:=&770;
 writeln(i);
end.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to