mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
Hurd: socket uses EAFNOSUPPORT rather than EPFNOSUPPORT.
This commit is contained in:
committed by
Roland McGrath
parent
d220b11777
commit
81c0c9648d
@@ -1,3 +1,8 @@
|
|||||||
|
2012-01-22 Pino Toscano <toscano.pino@tiscali.it>
|
||||||
|
|
||||||
|
* sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
|
||||||
|
of the non-standard EPFNOSUPPORT.
|
||||||
|
|
||||||
2012-01-21 Ulrich Drepper <drepper@gmail.com>
|
2012-01-21 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
* wcsmbs/uchar.h: Test __STDC_VERSION__.
|
* wcsmbs/uchar.h: Test __STDC_VERSION__.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1992, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
|
/* Copyright (C) 1992-1998,2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@@ -57,7 +57,7 @@ __socket (domain, type, protocol)
|
|||||||
isn't supported. */
|
isn't supported. */
|
||||||
if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED
|
if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED
|
||||||
|| err == MIG_BAD_ID || err == EOPNOTSUPP)
|
|| err == MIG_BAD_ID || err == EOPNOTSUPP)
|
||||||
err = EPFNOSUPPORT;
|
err = EAFNOSUPPORT;
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
return __hurd_fail (err);
|
return __hurd_fail (err);
|
||||||
|
Reference in New Issue
Block a user