mread.c File Reference

multiple-read to fill a buffer More...

#include "common.h"
#include "machine.h"
#include "bu.h"

Include dependency graph for mread.c:

Go to the source code of this file.

Functions

long int bu_mread (int fd, void *bufp, long int n)


Detailed Description

multiple-read to fill a buffer

Provide a general means to a read some count of items from a file descriptor reading multiple times until the quantity desired is obtained. This is useful for pipes and network connections that don't necessarily deliver data with the same grouping as it is written with.

If a read error occurs, a negative value will be returns and errno should be set (by read()).

Authors:
Robert S. Miles

Christopher Sean Morrison

Definition in file mread.c.


Generated on Mon Sep 18 01:25:04 2006 for BRL-CAD by  doxygen 1.4.6