From owner-freebsd-bluetooth@FreeBSD.ORG Thu May 15 13:58:01 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 038D51065670 for ; Thu, 15 May 2008 13:58:01 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 851C88FC15 for ; Thu, 15 May 2008 13:58:00 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so330845fkk.11 for ; Thu, 15 May 2008 06:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Y2mxtrdeGNlq0d2M/YISQOMY4Rdo3XtUkzhvmobDFx0=; b=u/PHp/WB/njSKesepsmDrAgyN9Xu26AvbS6ANvc8VlGUiq8TtnNjXC5RPRjPmMYh5gmsmqnjl/YIEgafoUgg5VmmD0lS949WzOD/iyCla57976gvyuJbiFC6+jwHVLaEd8GPbVkch7bP9gYLNCrmQpGtKDlODGju7hoycv6PTaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=O1x2HbbRq8iBO1S7UVebQm3/+FWWiO/xUNSgdFjjigaSzUK4+6OO5VWfYDzdhlTifoYZFS2nycsU+608e3lnEeIfdWuI+yLGTSpXAR3QXHH7oXu5WQxhie/Q+ysA+2Ez4bG0N4H+V7nviXD/aS50pqTwghsWQGkNokJmicHLYH0= Received: by 10.124.46.8 with SMTP id t8mr1349320mkt.149.1210859879243; Thu, 15 May 2008 06:57:59 -0700 (PDT) Received: by 10.86.66.5 with HTTP; Thu, 15 May 2008 06:57:59 -0700 (PDT) Message-ID: Date: Thu, 15 May 2008 06:57:59 -0700 From: "Maksim Yevmenkin" To: "Daniel O'Connor" In-Reply-To: <200805151814.14386.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200805141647.m4EGlUP1021019@repoman.freebsd.org> <200805151814.14386.doconnor@gsoft.com.au> Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: cvs commit: src/usr.bin/bluetooth/rfcomm_sppd rfcomm_sppd.1 rfcomm_sppd.c X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2008 13:58:01 -0000 [moving to freebsd-bluetooth@] On 5/15/08, Daniel O'Connor wrote: > On Thu, 15 May 2008, Maksim Yevmenkin wrote: > > Modified files: > > usr.bin/bluetooth/rfcomm_sppd rfcomm_sppd.1 rfcomm_sppd.c > > Log: > > Make -t optional in server mode. If not specified use > > stdin/stdout. Document this. Do not require channel number in server > > mode. If not specified - bind to ''wildcard'' channel zero. Real > > channel number will be obtained automatically and registered with > > local sdpd(8). While I'm here fix serial port service registration. > > How hard would it be to have a '-t auto' and have it print out the pty > it just allocated? It would make it much easier for scripts to work if > that was possible. > > (Maybe just call openpty()?) not hard at all. however, how would rfcomm_sppd(1) print tty name if, say, it was asked to run in background? perhaps it would be better to teach rfcomm_sppd(1) to work with nmdm(4)? thanks, max