DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

geterror(D3)


geterror -- retrieve error number from a buffer header

Synopsis

   #include <sys/buf.h>
   #include <sys/ddi.h>
   

int geterror(struct buf_t *bp);

Description

geterror is called to retrieve the error number from the error field of a buffer header (buf(D4) structure).

Arguments


bp
Pointer to the buffer header.

Return values

An error number indicating the error condition of the I/O request is returned. If the I/O request completed successfully, 0 is returned.

Usage

Context and synchronization

Non-blockable, interrupt, user, or blockable context.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8 8mp

References

buf(D4) errnos(D5)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005