[fpc-pascal] fpchmod(thefile, S_IRWXU) not for freeBSD ?

fredvs fiens at hotmail.com
Thu Jun 25 16:19:38 CEST 2015


Hello.

This to advice that fpchmod(thefile, S_IRWXU) is not working with freeBSD.
This because some const are missing for FreeBSD in FPC's RTL.

But, thanks to Graeme, this solves the thing =>

...
{$IFDEF FREEBSD}
const
  S_IRWXU = S_IRUSR or S_IWUSR or S_IXUSR;
  S_IRWXG = S_IRGRP or S_IWGRP or S_IXGRP;
  S_IRWXO = S_IROTH or S_IWOTH or S_IXOTH;
{$ENDIF}
...
Implementation
...

Fre;D




-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpchmod-thefile-S-IRWXU-not-for-freeBSD-tp5721913.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list