> I'm trying to copy file on the same volume,
> File is a shared library; in the source directory it's size 16 Kbytes.
[quoted text clipped - 28 lines]
>
> Beforehand thanks.
From the man page for fread:
---------------
The functions fread() and fwrite() advance the file position indicator
for the stream by the number of bytes read or written. They return the
number of objects read or written. If an error occurs, or the end-offile
is reached, the return value is a short object count (or zero).
The function fread() does not distinguish between end-of-file and error,
and callers must use feof(3) and ferror(3) to determine which occurred.
The function fwrite() returns a value less than nmemb only if a write
error has occurred.
---------------
Please rewrite your example to properly check the return values of fread
and fwrite, and if you still have a problem, ask again.
Also, don't forget Bundles (folders that the Finder presents as a
single, file-like object. For example, .framework files), and resource
forks.
Fonarix - 20 Sep 2006 14:52 GMT
> From the man page for fread:
> ---------------
[quoted text clipped - 15 lines]
> single, file-like object. For example, .framework files), and resource
> forks.
In this case how can I copy bundle? (Shared library made on codewarrior
compiler).
This file in Midnight commander is present as one file, and it's size
6 KB but in finder 16! After copying in MC it's size still 6 KB and
in finder too!
Beavis - 20 Sep 2006 15:13 GMT
David Phillip Oster написав:
Arre you oYster??????f.ck !!!!I've sme problem!
f.ck!
Beavis - 20 Sep 2006 15:40 GMT
Beavis написав:
> David Phillip Oster написав:
> Arre you oYster??????f.ck !!!!I've sme problem!
> f.ck!
Sorry!
I'll kill myself by the wall!
Fonarix - 20 Sep 2006 15:51 GMT
> From the man page for fread:
> ---------------
[quoted text clipped - 15 lines]
> single, file-like object. For example, .framework files), and resource
> forks.
This code works well in debugger... Source file size 6190 destination
file size 6190, in finder 16 KB! Have Mac OS some function which I can
use And copy it successful???
Also I tried to use: status = ::PBHCopyFileSync(¶mBlock) ;
But I got status is -50 for local volume.
Thanks.
Fonarix - 21 Sep 2006 07:42 GMT
I've found this:
Incidentally, FSCopyObject does not work correctly on 10.4 -- it does
not copy
HSF+ Extended Attributes -- so the correct solution here is to call
FSCopyObjectSync from the OS on 10.4 and later, and only use the
FSCopyObject
sample code on 10.3.
Thanks!!!
Beavis - 21 Sep 2006 07:52 GMT
Fonarix написав:
> I've found this:
>
[quoted text clipped - 6 lines]
>
> Thanks!!!
f.ck!
Beavis - 25 Sep 2006 08:53 GMT
Beavis написав:
> f.ck!
So...nobody here...i feel so alone ...where ary yo, fishhead?Are you
dead?
Who am i?
Where is butthead?
So many questions...so few answers...so fuckingly few drugs...f.ck...
mac!os!x!
aaaaa!
mac's!!!
it's so big!!!
Fuckin' cheese!!!
No more mushrooms!!!
sick my duck!
Chao!
Fonarix написав:
> I'm trying to copy file on the same volume,
> File is a shared library; in the source directory it's size 16 Kbytes.
> After copying it's size 6 KB, and it has type Excel file!!! ))) And
> it's doesn't work!
He-he-dude)
RRRRRRRRRRRRRRRR!!!!!!!!!!!!!!!!