Don't rely on internals. If you want wrapper functions that change cancellation handling, then write them using the POSIX interface.