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.

                        mph
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to