Get the user group other permission

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Get the user group other permission

Post by ne0h »

I've see the pspiofilemgr_stat.h and i've undertand the funct to check if is a file or a dir or a link;
but how to get the user permission?
I've writed this funct but is never true!

Code: Select all

if(((a_dir.d_stat.st_mode)&FIO_S_IRWXU) == FIO_S_IRUSR){
...
}
else{
...
}
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

The PSP isn't UNIX. It uses the FAT filesystem and doesn't follow the UNIX model of permissions.
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

???What about Filer? It show the permission!
And in the filemgr_stat.h library I've found the enumeration, but i'm not been
able to capture correctly the value!
Post Reply