Prealloc is the way to do it on HP-UX:

prealloc test.100mb 102400000

creates a 100MB file.