Re: [fpc-pascal] Re: chown on Mac OS X

2008-07-19 Thread Florian Klaempfl
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

Re: [fpc-pascal] Re: chown on Mac OS X

2008-07-19 Thread Florian Klaempfl
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

[fpc-pascal] Re: chown on Mac OS X

2008-07-19 Thread Tobias Giesen
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 ___

[fpc-pascal] Re: chown on Mac OS X

2008-07-19 Thread Tobias Giesen
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