Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!decwrl!mcnc!duke!sam.cs.olemiss.edu!dave From: dave@sam.cs.olemiss.edu (David E. Johnson) Newsgroups: comp.unix.internals Subject: Standalone driver question Message-ID: <1991Jan26.191859.14609@cs.olemiss.edu> Date: 26 Jan 91 19:18:59 GMT Sender: dave@cs.olemiss.edu (David E. Johnson) Organization: University of Mississippi, Dept. of Computer Science Lines: 33 Is a standalone driver required to handle requests whose character count is not a multiple of the block size? In other words, is the driver responsible for extracting the character count of bytes out of a full block to place in the user buffer or should this be done by a higher level routine? In the standalone drivers I have seen, they seem to use the character count in the transfer, however, since the driver must deal with blocks of a set size it would seem to me that it should be done at a higher level. The user code calling the drivers normally wants a set amount of bytes and does not allocate a structure of block size therefore I assume that it *must* be handled somewhere. Any information about buffer handling in standalone I/O routines would be helpful. Many thanks... David E. Johnson Department of Computer Science ** Title: Systems Programmer The University of Mississippi ** Telephone: (601) 232-7396 336 Weir Hall ** Internet: dave@cs.olemiss.edu University, MS 38677 ** -- David E. Johnson Department of Computer Science ** Title: Systems Programmer The University of Mississippi ** Telephone: (601) 232-7396 336 Weir Hall ** Internet: dave@cs.olemiss.edu