From owner-freebsd-arch@FreeBSD.ORG Fri Feb 6 07:36:49 2015 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59F0B5F0 for ; Fri, 6 Feb 2015 07:36:49 +0000 (UTC) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 1BA48402 for ; Fri, 6 Feb 2015 07:36:49 +0000 (UTC) Received: from critter.freebsd.dk (unknown [192.168.60.3]) by phk.freebsd.dk (Postfix) with ESMTP id 3F5623B8A2; Fri, 6 Feb 2015 07:36:42 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.9/8.14.9) with ESMTP id t167afDF037283; Fri, 6 Feb 2015 07:36:41 GMT (envelope-from phk@phk.freebsd.dk) To: Anuranjan Shukla Subject: Re: Buggy sbspace() on 64bit builds? In-reply-to: From: "Poul-Henning Kamp" References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <37281.1423208201.1@critter.freebsd.dk> Date: Fri, 06 Feb 2015 07:36:41 +0000 Message-ID: <37282.1423208201@critter.freebsd.dk> Cc: Simon Gerraty , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2015 07:36:49 -0000 -------- In message , Anuranjan Shukla writes: >Hi, >The way sbspace() is done today, it stores the result of subtraction of >socket buffer variables (u_int) in longs, and returns a long. [...] >Any thoughts on what a fix should be for this? size_t or intptr_t ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.