"Standardized" Standby Support In C Libraries...

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

Moderators: cheriff, TyRaNiD

Post Reply
Sharkus
Posts: 27
Joined: Sun Jun 19, 2005 6:49 am

"Standardized" Standby Support In C Libraries...

Post by Sharkus »

It seems that a lot of homebrew software does not properly handle resuming from standby mode. It is my understanding that this is caused by the kernel closing all open file handles, and not opening them during the resume operation.

I know there is a sample application that shows how to install the standby/resume callback. However, it seems like the best place to save and restore the state of all of the open files would be in the standard c library.

Special routines in the c library would then be called from the standby/resume callback to save/restore the state of the open file handles...

Of course if an application made a direct call to sceIoOpen() it would be on it's own...

Does this approach make sense or is there a more elegant solution?

-Sharkus

P.S. Anyone know the difference between Standby and Suspend modes?

[/code]
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Yeah, having that in the C library could be useful. If you come up with patches to do it without much cpu & ram overhead we'll certainly consider adding them.
Post Reply