1.0 Output a binary block ______ _ ______ _____ ********* * fputb * ********* Usage fputb(buffer, maxbytes, lbn, iop); char *buffer; int bufsiz; unsigned lbn; FILE *iop; Description Write one or more disk blocks to the indicated file. Bufsiz is the buffer size and must be a multiple of 512. Lbn is the logical block number to write. The block is written by a direct QIO IO.WVB call. Your program should only use block reads or writes unless your very sure of the effect of mixing io types. This routine will not extend a file if you specify a lbn past the current end of file. Write to an existing file or preallocate the correct size. If sucessfull, the actual number of bytes written is returned. On error, the dsw or iosb error code is returned. Fputb() is not present on Unix standard I/O libraries. Bugs Only works with RSX. Lbn should be a long, but if you need to write more than 65K blocks into a file, you know how to fix this routine.