The HP/UX manual page for ulimit(2) reports that ulimit(1, 0L) will return the maximum file size in terms of 512-byte blocks. It lies, at least on HP/UX 6.5; the number of bytes is returned.