Just take note of what Thomas said above.
If the Seek() function is being (ab)used to find a file size, you would be far better off just calling IDOS->GetFileSize()
rather than that double-seek ickyness, it's also amazingly slow too, just incase you were wondering.
Search found 189 matches
- Thu May 23, 2013 7:25 am
- Forum: SDK Support
- Topic: Changing Seek() deprecated
- Replies: 5
- Views: 8179
- Sun May 19, 2013 11:37 pm
- Forum: SDK Support
- Topic: Changing Seek() deprecated
- Replies: 5
- Views: 8179
Re: Changing Seek() deprecated
int64 Seek64(BPTR scb, int64 pos, int32 mode) { int64 result64 = -1LL; /* default failure code */ int64 oldpos64 = IDOS->GetFilePosition(scb); if( IDOS->ChangeFilePosition(scb, pos, mode)) { result64 = oldpos64; /* old Seek() returns previous pos. */ } return(result64); }
- Tue Apr 09, 2013 8:58 am
- Forum: General AmigaOS
- Topic: Restored sound card MIDI by rolling back dos update file
- Replies: 8
- Views: 3308
Re: Restored sound card MIDI [fixed]
Might you share what the problem was? Im just so curious ;-) Hubert In a nutshell, the problems was a small bug in camd.library. Incase you also want to know the entire nuts and bolts details of this issue, here it is.... I discovered late last year that I was getting a bug report about being unabl...
- Thu Mar 21, 2013 8:34 am
- Forum: General AmigaOS
- Topic: Moving symbolic links on SFS partition??
- Replies: 28
- Views: 10063
Re: Moving symbolic links on SFS partition??
As I mentioned before, it is not possible to move a softlink out of the parent directory for dospacket based filesystems, the methods used to make them work in the first place are not entirely consistent, in fact most filesystems have to deploy a certain level of "black magic" to make them...
- Mon Mar 18, 2013 6:30 am
- Forum: General AmigaOS
- Topic: Moving symbolic links on SFS partition??
- Replies: 28
- Views: 10063
Re: Moving symbolic links on SFS partition??
Is it possible to move symbolic links on an SFS partition? If yes then how? If not then why? Because softlinks are references to other objects on the same volume or on others. For dospacket based filesystems, softlink targets are generally relative to the links directory, if you were to be able to ...
- Mon Mar 11, 2013 11:18 pm
- Forum: General Developer Support
- Topic: ExamineObject()
- Replies: 10
- Views: 10489
Re: ExamineObject()
[...] int64 fileSize = dat->FileSize; if ( EXD_IS_LINK(dat) && 0 == fileSize) { // it's a link try to resolve it [...] Please avoid making assumptions like this, the filesize has no bearing on whether something is a linked object or not. Please distribute only example code provided in the la...
- Mon Jan 07, 2013 1:44 am
- Forum: General Developer Support
- Topic: IDOS->Printf output not the same as printf
- Replies: 2
- Views: 1897
Re: IDOS->Printf output not the same as printf
All arguments to Printf() are 32 bit minimum width, (VARARGS68K), your format string must specifiy them that way.
ie; %ld instead of %d - %lc instead of %c - etc...
Please review the DOS Printf() / VPrintf() / VFPrintf() autodocs.
ie; %ld instead of %d - %lc instead of %c - etc...
Please review the DOS Printf() / VPrintf() / VFPrintf() autodocs.
- Mon Jan 07, 2013 1:32 am
- Forum: General AmigaOS
- Topic: Workbench DSI plus ISI before opening screen
- Replies: 6
- Views: 3669
Re: Workbench DSI plus ISI before opening screen
There is a 'LOGDIR" tooltype in the sys:system/grimreaper icon.
It would be appropriate to set it to somewhere more permanent.
It would be appropriate to set it to somewhere more permanent.
- Wed Sep 12, 2012 12:41 am
- Forum: General Developer Support
- Topic: Does AmigaDOS ParsePattern() do anything?
- Replies: 2
- Views: 3642
Re: Does AmigaDOS ParsePattern() do anything?
Yes, it does something, five very important things. Firstly, it provides the API compatibility for 68K software from OS3 and before that previously used some special high-ascii characters to "tokenise" patterns for the old 68K pattern matcher. Secondly, for OS4, it provides the API for aut...
- Fri Jul 20, 2012 11:15 pm
- Forum: General AmigaOS
- Topic: ASL file requester: create new dir behaviour
- Replies: 5
- Views: 4247
Re: ASL file requester: create new dir behaviour
It works properly with asl.library 53.46 Releasenotes: asl.library 53.46 (28.7.2011) - When trying to create a new directory, the string requester now opens with the "Rename_Me" text already highlighted. This saves the user having to manually delete or mark the text before entering the new...