From owner-freebsd-doc@FreeBSD.ORG Tue Jan 18 10:00:47 2005 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 971A216A4D1 for ; Tue, 18 Jan 2005 10:00:47 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58DE843D54 for ; Tue, 18 Jan 2005 10:00:47 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0IA0loE077759 for ; Tue, 18 Jan 2005 10:00:47 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0IA0lYt077742; Tue, 18 Jan 2005 10:00:47 GMT (envelope-from gnats) Resent-Date: Tue, 18 Jan 2005 10:00:47 GMT Resent-Message-Id: <200501181000.j0IA0lYt077742@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rudolf Cejka Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A65E16A4CE for ; Tue, 18 Jan 2005 09:52:57 +0000 (GMT) Received: from kazi.fit.vutbr.cz (kazi.fit.vutbr.cz [147.229.8.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25F2D43D58 for ; Tue, 18 Jan 2005 09:52:56 +0000 (GMT) (envelope-from cejkar@fit.vutbr.cz) Received: from kazi.fit.vutbr.cz (localhost [127.0.0.1]) by kazi.fit.vutbr.cz (8.12.11/8.12.11) with ESMTP id j0I9qr2c045666 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 18 Jan 2005 10:52:53 +0100 (CET) Received: (from cejkar@localhost) by kazi.fit.vutbr.cz (8.12.11/8.12.5/Submit) id j0I9qr8k045665; Tue, 18 Jan 2005 10:52:53 +0100 (CET) Message-Id: <200501180952.j0I9qr8k045665@kazi.fit.vutbr.cz> Date: Tue, 18 Jan 2005 10:52:53 +0100 (CET) From: Rudolf Cejka To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/76399: [PATCH] sendto(2) is missing possible error EISCONN X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Rudolf Cejka List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2005 10:00:47 -0000 >Number: 76399 >Category: docs >Synopsis: [PATCH] sendto(2) is missing possible error EISCONN >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 18 10:00:46 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Rudolf Cejka >Release: FreeBSD 5.3-STABLE i386 >Organization: FIT, Brno University of Technology, Czech Republic >Environment: >Description: SUSv3 says for sendto(): [EISCONN] A destination address was specified and the socket is already connected. This error may or may not be returned for connection mode sockets. FreeBSD does it in the first way (whereas Linux in the second) and the error in case of non-NULL destination address is reported. However, the manual page is quiet about it: --- lib/libc/sys/send.2.orig Tue Jan 18 10:38:19 2005 +++ lib/libc/sys/send.2 Tue Jan 18 10:39:14 2005 @@ -186,6 +186,8 @@ from the last message sent. This typically means that the receiver is not listening on the remote port. +.It Bq Er EISCONN +A destination address was specified and the socket is already connected. .It Bq Er EHOSTDOWN The remote host was down. .It Bq Er ENETDOWN >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: