That seems fine. But since the function is used only in one module, make it an internal sysdeps header file that defines a static function, instead of an additional module that is from sysdeps.