On 06/17/2015 04:42 PM, fredvs wrote:
> But how to check if a file has executable permission (and if not, change it
> with fpchmod(thefile S_IRWXU);) ?
stat?

See:
    http://linux.die.net/man/2/stat
    http://www.freepascal.org/docs-html/rtl/baseunix/fpstat.html
    http://www.freepascal.org/docs-html/rtl/baseunix/stat.html

-- 
Ewald

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

Reply via email to