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 

[MinPSPW] realpath() not implemented?

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



Joined: 29 Jun 2008
Posts: 20
Location: Singapore

PostPosted: Thu Mar 26, 2009 12:17 pm    Post subject: [MinPSPW] realpath() not implemented? Reply with quote

Hi,

Seems that realpath() has been implemented since rev 1121, but I am unable to use this, as compiling my program returns
Code:
error: 'realpath' was not declared in this scope


Include files:
Code:
#include "stdio.h"
#include <unistd.h>
#include <limits.h>
#include <stdlib.h>


Am I missing an include file somewhere?
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Mon Mar 30, 2009 9:46 pm    Post subject: Reply with quote

what does this function do anyway
Back to top
View user's profile Send private message MSN Messenger
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Mon Mar 30, 2009 10:09 pm    Post subject: Reply with quote

Googled:
Quote:

realpath() expands all symbolic links and resolves references to ’/./’, ’/../’ and extra ’/’ characters in the null terminated string named by path and stores the canonicalized absolute pathname in the buffer of size PATH_MAX named by resolved_path. The resulting path will have no symbolic link, ’/./’ or ’/../’ components.

_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Mon Mar 30, 2009 10:11 pm    Post subject: Reply with quote

ok so basically it means /home/hello/..//what and changes it to /home/what
Back to top
View user's profile Send private message MSN Messenger
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Mon Mar 30, 2009 10:50 pm    Post subject: Reply with quote

No, I think the absolute path name would be complete from ms0:/
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Mon Mar 30, 2009 11:45 pm    Post subject: Reply with quote

oh ok so if i did that on computer it would take me to computer:// on ubuntu and C:/ on windows well thanks
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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