I get an errno 14 (Bad Address) on

mount("hfs", "/Volumes/USB", 0, "/dev/disk5s2")

The shell command "mount -t hfs /dev/disk5s2 /Volumes/USB" works fine.

Any idea what I might be missing?