Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965407AbXBFULu (ORCPT ); Tue, 6 Feb 2007 15:11:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965408AbXBFULu (ORCPT ); Tue, 6 Feb 2007 15:11:50 -0500 Received: from mail1.webmaster.com ([216.152.64.169]:1125 "EHLO mail1.webmaster.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965407AbXBFULu (ORCPT ); Tue, 6 Feb 2007 15:11:50 -0500 From: "David Schwartz" To: "Linux-Kernel@Vger. Kernel. Org" Subject: RE: Problem with unix sockets: SOCK_DGRAM ignores MSG_TRUNC Date: Tue, 6 Feb 2007 12:11:31 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <200702061355.39660.daniel.kabs@mobotix.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Importance: Normal X-Authenticated-Sender: joelkatz@webmaster.com X-Spam-Processed: mail1.webmaster.com, Tue, 06 Feb 2007 12:11:46 -0800 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 206.171.168.138 X-Return-Path: davids@webmaster.com X-MDaemon-Deliver-To: linux-kernel@vger.kernel.org Reply-To: davids@webmaster.com X-MDAV-Processed: mail1.webmaster.com, Tue, 06 Feb 2007 12:11:48 -0800 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 573 Lines: 16 > Why not improve consistency and make unix_dgram_recvmsg() return the full > packet length? So it would behave as UDP does. What do you think about > adding the following code to linux/net/unix/af_unix.c: It would be nice if the world worked that way, but you can't break POSIX compliance. Perhaps another receive flag? DS - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/