On Thu, 2009-07-23 at 07:26 -0700, Michael Hunter wrote: > On Mon, 20 Jul 2009 19:00:21 -0700 > Peter Memishian <[email protected]> wrote: > > [...] > > dlpi_events.c: > > > > * Throughout: libdlpi does not use `errno' for errors. All of the > > dlpi-related log messages in this file are busted. > [...] > > The return section section of dlpi_recv(3DLPI) says: > > Upon success, DLPI_SUCCESS is returned. If DL_SYSERR is > returned, errno contains the specific UNIX system error > value. Otherwise, a DLPI error value defined in <sys/dlpi.h> > or an error value listed in the following section is > returned. > > Our code is busted with respect to the two level error codes. But in > contradiction with your statement this does say that at least dlpi_recv > could return an error via errno.
All libdlpi functions behave the same way, dlpi_recv() isn't unique. They return a libdlpi error code. If that code happens to be DL_SYSERR, then errno indicates the system error. -Seb _______________________________________________ networking-discuss mailing list [email protected]
