Support on chmod, umask ?

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

Moderators: cheriff, TyRaNiD

Post Reply
AnonymousTipster
Posts: 197
Joined: Fri Jul 01, 2005 2:50 am

Support on chmod, umask ?

Post by AnonymousTipster »

Hi, I'm working on porting a large segment of c++ code to the PSP platform, and have got it compiling, however it falls down at the linker.
It uses the POSIX (fopen,fread) functions for io, but there are a couple of functions missing:
chmod()
umask()

Including #include <sys/stat.h> has not solved the linker issues.

Chmod is non-essential (I think), but umask() is used in several places, and i'd prefer to support it if possible, rather than butchering it out and hoping it still works OK.

Thanks.
User avatar
groepaz
Posts: 305
Joined: Thu Sep 01, 2005 7:44 am
Contact:

Post by groepaz »

cant you just stub out these two? its not like fat supports it anyway :)
AnonymousTipster
Posts: 197
Joined: Fri Jul 01, 2005 2:50 am

Post by AnonymousTipster »

That's what i've done for the time being. I'm hoping it isn't needed in the functions I need to use.

Is there any way to use utime.h? I may have a use for being able to modify file dates. It could be useful for re-organising your homebrew into alphabetical order in the XMB.
Post Reply