lkml.org 
[lkml]   [2000]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] socket(2) should return EAFNOSUPPORT if no family found
Here is a trivial patch to make socket(2) return -EAFNOSUPPORT instead of
-EINVAL if the family can't found. SuS specifies EAFNOSUPPORT for socket(2)
in this situation.
--
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--- linux/net/socket.c.orig Sat Aug 26 15:08:29 2000
+++ linux/net/socket.c Sat Aug 26 15:09:36 2000
@@ -855,7 +855,7 @@

net_family_read_lock();
if (net_families[family] == NULL) {
- i = -EINVAL;
+ i = -EAFNOSUPPORT;
goto out;
}
\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.031 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site