forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

directory symbolic links

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Sat Jun 18, 2005 4:26 pm    Post subject: directory symbolic links Reply with quote

I have a directory on my memory card that was been displayed as a file in various file browsers. Looking into it, the directory has a mode value of 0x28. This means it is made up of FIO_SO_IFDIR & FIO_SO_IFLNK indicating it is a directory symbolic link. I haven't been able to find where it links to.

This macro is failing also because of the symbolic link status.
#define FIO_SO_ISDIR(m) (((m) & FIO_SO_IFMT) == FIO_SO_IFDIR)

Wouldn't this macro be better defined as:
#define FIO_SO_ISDIR(m) (((m) & FIO_SO_IDIR) == FIO_SO_IFDIR)

Similarly for FIO_SO_ISLNK and FIO_SO_ISREG?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group