From owner-freebsd-current@FreeBSD.ORG Tue Feb 17 18:03:51 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F37FD106564A for ; Tue, 17 Feb 2009 18:03:50 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-gx0-f224.google.com (mail-gx0-f224.google.com [209.85.217.224]) by mx1.freebsd.org (Postfix) with ESMTP id 875998FC1C for ; Tue, 17 Feb 2009 18:03:50 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by gxk24 with SMTP id 24so5565985gxk.19 for ; Tue, 17 Feb 2009 10:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=4a9rH6JoaqDAn7163rimrx1YWEwapjMNeUuu3E6O8XY=; b=W2zm6HGJOl8vEcitTBhU668Ci5t1U63bR51fRTUmYjp+wohDL35NM86UggXLj+GnEX 7JLaGzb0hDfIjcI1GBXqhL3bYCcQU+qCt703TEE4DH3753luXBt5hQYCDOsJfP48DVD9 VrKeiAeiTM0tLex0hUzEPjAqTFiQZhuPTEemA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Phf/5UH6gPmID+8CaDyTEIn3iTirNA2FiqO1T4Ufs1k8PaU5xDqlzNW5hX83HUTTTp RvVaM1dTlM5PXVIGk9GO3zfBPaNHCmpyfuiJbtwtQ28+7kdzWuV6PLX89QhJmyWx5tpD eOx0uK6+IYEIYg9iPiU4CqZPEXiF/FQQ7G3Gw= MIME-Version: 1.0 Received: by 10.231.16.129 with SMTP id o1mr1169301iba.47.1234893829591; Tue, 17 Feb 2009 10:03:49 -0800 (PST) In-Reply-To: <20090217175512.GG79178@hoeg.nl> References: <20080526110543.J26343@fledge.watson.org> <4999F7F9.4030204@elischer.org> <499A024A.60209@protected-networks.net> <20090217110524.GC79178@hoeg.nl> <499A9C9D.3000403@protected-networks.net> <20090217115651.GE79178@hoeg.nl> <20090217175512.GG79178@hoeg.nl> Date: Tue, 17 Feb 2009 10:03:49 -0800 Message-ID: From: Maksim Yevmenkin To: Ed Schouten Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Michael Butler , current@freebsd.org Subject: Re: HEADS UP: IFF_NEEDSGIANT consumers to be disabled, removed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2009 18:03:51 -0000 On Tue, Feb 17, 2009 at 9:55 AM, Ed Schouten wrote: > * Maksim Yevmenkin wrote: >> so, for now, i think we should keep rfcomm_sppd(1) as it is. if this >> is not an option (with new tty subsystem) then we should convert it to >> use nmdm(4) or something similar. > > Well, the problem with the current approach is that if you remove > "device pty" from your kernel config, it won't work. With MPSAFE TTY we > switched to Unix98-style pseudo-terminals, so the preferred mechanism is > to call posix_openpt() (or open /dev/ptmx) and use ptsname() to > determine which character device to use. is there a way allocate tty with a given name under "new world order"? > I won't change anything now, but will keep my patch at the before > mentioned URL. like i said, the only problem i have here is that any rfcomm_sppd callers will have to do extra work to figure which tty was allocated. that is the biggest difference from user's point of view. thanks, max > > -- > Ed Schouten > WWW: http://80386.nl/ >