'\"macro stdmacro
.if n .pH ddi_dki.geterror @(#)geterror	40.5 of 10/10/89
.\" Copyright 1989 AT&T
.de IX
.ie '\\n(.z'' .tm .Index: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9	\\n%
.el \\!.IX \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.nr X
.if \nX=0 .ds x} geterror D3DK "" "DDI/DKI" "\&"
.if \nX=1 .ds x} geterror D3DK "" "DDI/DKI"
.if \nX=2 .ds x} geterror D3DK "" "\&"
.if \nX=3 .ds x} geterror "" "" "\&"
.TH \*(x}
.SH NAME
\f4geterror\f1 \- return I/O error
.SH SYNOPSIS
.nf
.na
\f4#include <sys/types.h>
#include <sys/buf.h>
.sp 0.5
int geterror(struct buf *\f2bp\f4);\f1
.ad
.fi
.SH ARGUMENT
.RS 0n 10
.IP "\f2bp\f1" 10n
Pointer to the block interface buffer structure defined in
\f4buf.h\f1.
.RE
.SH DESCRIPTION
\f4geterror\f1 is called to retrieve the error number 
from the error field of the 
buffer header structure.
.SH RETURN VALUE
An error number indicating the error condition of the I/O request is 
returned.
If the I/O requested is completed successfully, 
\f40\f1 is returned.
.SH LEVEL
Base or Interrupt
.SH SEE ALSO
.na
\f4buf\f1(D4DK)
.ad
