Florian Klaempfl schrieb:
Tobias Giesen schrieb:
Hi,
correction! Adding FpChown to oscdeclh.inc works fine. This line needs
to be added:
Function FpChown (path : pChar; owner : TUid; group : TGid): cInt;
cdecl; external clib name 'chown';
to oscdeclh.inc in the rtl/unix folder.
Cheers,
Tob
Tobias Giesen schrieb:
Hi,
correction! Adding FpChown to oscdeclh.inc works fine. This line needs
to be added:
Function FpChown (path : pChar; owner : TUid; group : TGid): cInt; cdecl;
external clib name 'chown';
to oscdeclh.inc in the rtl/unix folder.
Cheers,
Tobias
Better add such inform
Hi,
correction! Adding FpChown to oscdeclh.inc works fine. This line needs
to be added:
Function FpChown (path : pChar; owner : TUid; group : TGid): cInt; cdecl;
external clib name 'chown';
to oscdeclh.inc in the rtl/unix folder.
Cheers,
Tobias
___
Hi,
OK I added this as a bug:
http://mantis.freepascal.org/view.php?id=11705
This is caused by FpChown missing from oscdeclh.inc in the rtl/unix
folder. I tried adding it but it causes an exception. But chown is
present in the libc. Why can't it be called?
I can't believe that nobody uses chown