*BSD News Article 54143


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!chi-news.cic.net!uwm.edu!homer.alpha.net!mvb.saic.com!news.mathworks.com!newsfeed.internetmci.com!EU.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: EPROTO defined in errno.h?
Date: 8 Nov 1995 00:14:41 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 20
Message-ID: <47op91$q94@uriah.heep.sax.de>
References: <47lurj$ps4@nnrp.cs.ubc.ca>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Pui Yin James Sun <j5k1@ugrad.cs.ubc.ca> wrote:
>I have a program which use the EPROTO definition in errno.h
>But it seems that there is not EPROTO in FreeBSD (2.1.0-951024).
>
>Is EPROTO defined in standard UNIX? Linux, HPUX have it but 
>FreeBSD does not... (I am changing from Linux to FreeBSD but...)

EPROTO... ``protocol error''.

What exactly does it mean?  I've been able to locate it in HP-UX, but
while it's been in <sys/errno.h>, i couldn't find any trace of just
this error in the man page for errno.

You could safely #define it as -1, since no BSD system call would ever
return this error code. :-)
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)