Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: A few more questions

Re: A few more questions

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Sat, 03 May 2003 01:52:10 +0200

ds2list wrote:
> A couple more questions if you don't mind ;)
>
> Right now, I can find the name of the current directory in
> tree.c by looking at dircache[dircursor+dirstart].name, but I
> can't get the full pathname. How do I find the full pathname
> to the current directory?

In the currdir[] string.

> Also, when I do an open(filename, O_RDONLY) on a pathname to
> a file that I know doesn't exist, open() doesn't return a
> negative value.

It should. Are you sure that your code is correct? Can you show it?

Linus
Received on 2003-05-03

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy