To take the window creation and management as an example, SDL implements it separately (using the relevant OS-level API's) for each OS / platform it supports. Same for e.g. audio, joystick etc.
that's what i thought so too, like in windows, SDL uses win32 api, etc.
i asked coz i thought they are using another way..