From owner-freebsd-questions@FreeBSD.ORG Fri Sep 2 13:50:10 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3140516A41F for ; Fri, 2 Sep 2005 13:50:10 +0000 (GMT) (envelope-from sgelkins@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6F3043D48 for ; Fri, 2 Sep 2005 13:50:09 +0000 (GMT) (envelope-from sgelkins@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so546377wra for ; Fri, 02 Sep 2005 06:50:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FYh9hX3GJFfzomUdu6KElHpS66WMKjEXoeMHU32qR5AZhSfFbE1D1uNT1XRqDdwsXE8IOcWF6dtvZtnyJcwydE9dBTjjRjgiowyT02h/ySXeSBj5aEF4tcQUy4t+Rvyc55fBAdZ8SVzD/LO8n4MtRrdXq+VlizHW0kTwunjovkc= Received: by 10.54.118.13 with SMTP id q13mr2480222wrc; Fri, 02 Sep 2005 06:50:08 -0700 (PDT) Received: by 10.54.62.6 with HTTP; Fri, 2 Sep 2005 06:50:07 -0700 (PDT) Message-ID: Date: Fri, 2 Sep 2005 09:50:07 -0400 From: Steven Elkins To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: TIOCOUTQ ioctl for non-blocking socket X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 13:50:10 -0000 Hello everyone, I have to port some non-blocking socket output code from Linux to FreeBSD and I'm wondering how far I need to go to overcome a problem.=20 On Linux this code puts the amount of data waiting in the socket's transmit queue into 'remaining'. int remaining =3D 0; int rc =3D ioctl(fileDescriptor, TIOCOUTQ, &remaining); Testing rc on FreeBSD and printing errno, I see... ioctl: 45 Operation not supported Is there another way to ask the question on FreeBSD? Or should I be changing the non-blocking socket output design? Thanks, Steve