Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[MiNT] Problem with frename()

2 views
Skip to first unread message

M.A. Kehr

unread,
Feb 27, 2003, 3:25:15 AM2/27/03
to
Hi all,

I have a strange problem with renaming a folder under MiNT.
Following situation, I have started the unzip.ttp with Pexec(0) from my
program, when I try to rename the depacked folder, I always get an error
-33 from frename(). So it seems the folder isnŽt there after unzip has
finished. So I have tried the following, (I use some kind of pseudo
Basic, because IŽm a GfA coder, hope you understand what I mean.:))

Pexec(0,unzip.ttp)

jump:

if exist(folder_old)
frename(folder_old, folder_new)
else
goto jump
endif

When I try this it takes several seconds and then the folder will be
renamed. So, it looks like the folder isnŽt there directly after unzip
has finished, what could be the problem there?
When I start the program under plain TOS it works fine, without the
loop.
All these actions took place on normal TOS partition with NEWFATFS
enabled.

Any ideas?

Ciao

Marc-Antón

--
**************************************************
Business: http://www.st-katharina-apotheke.de
Photography: http://www.ndh.net/home/kehr
Atari: http://atari.st-katharina-apotheke.de
**************************************************


Konrad M. Kokoszkiewicz

unread,
Feb 27, 2003, 7:40:16 AM2/27/03
to
> I have a strange problem with renaming a folder under MiNT.

Which version of the kernel?

CVV

--
Konrad M.Kokoszkiewicz
mail: dr...@atari.org
http://draco.atari.org

** Ea natura multitudinis est,
** aut servit humiliter, aut superbe dominatur (Liv. XXIV,25)
*************************************************************
** Taka to juz natura pospolstwa, ze albo sluzy ono unizenie,
** albo bezczelnie sie panoszy.


Lonny Pursell

unread,
Feb 27, 2003, 8:08:10 AM2/27/03
to
on 2/27/03 3:26 AM, M.A. Kehr at m.k...@ndh.net wrote:

> Hi all,
>
> I have a strange problem with renaming a folder under MiNT.
> Following situation, I have started the unzip.ttp with Pexec(0) from my
> program, when I try to rename the depacked folder, I always get an error

> -33 from frename(). So it seems the folder isnZťt there after unzip has


> finished. So I have tried the following, (I use some kind of pseudo

> Basic, because IZťm a GfA coder, hope you understand what I mean.:))


>
> Pexec(0,unzip.ttp)
>
> jump:
>
> if exist(folder_old)
> frename(folder_old, folder_new)
> else
> goto jump
> endif
>
> When I try this it takes several seconds and then the folder will be

> renamed. So, it looks like the folder isnZťt there directly after unzip


> has finished, what could be the problem there?
> When I start the program under plain TOS it works fine, without the
> loop.
> All these actions took place on normal TOS partition with NEWFATFS
> enabled.
>
> Any ideas?

There was a folder renaming bug fixed not too long ago by Frank, check the
CVS change.log. You will need to build a new kernal.

--
Lonny Pursell http://www.q1.net/~atari/


M.A. Kehr

unread,
Feb 28, 2003, 2:40:04 AM2/28/03
to
Hi,

On Thu, 27 Feb 2003 12:40:16 +0000 (UTC)
dr...@obta.uw.edu.pl (Konrad M. Kokoszkiewicz) wrote:


> Which version of the kernel?

1.16 compiled from CVS some days ago.

Konrad M. Kokoszkiewicz

unread,
Feb 28, 2003, 8:48:52 AM2/28/03
to
> > Which version of the kernel?
> 1.16 compiled from CVS some days ago.

Ha, this means the problem is current :-)

0 new messages