Disabling the screensaver and screen blanking

Hello sdl at libsdl,
I was wondering how to disable the screen saver and screen blanking or,
alternatively, how to send messages to the window manager so that the screen
saver never appears, in a cross-platform manner. Thanks
–Jacques