From owner-cvs-all Mon May 14 17:21:13 2001 Delivered-To: cvs-all@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 24AB237B42C; Mon, 14 May 2001 17:21:07 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f4F0L7M48753; Mon, 14 May 2001 17:21:07 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id EC0F8380E; Mon, 14 May 2001 17:21:06 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Brian Somers Cc: Poul-Henning Kamp , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/fs/devfs devfs_vnops.c In-Reply-To: <200105150007.f4F077515172@hak.lan.Awfulhak.org> Date: Mon, 14 May 2001 17:21:06 -0700 From: Peter Wemm Message-Id: <20010515002106.EC0F8380E@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers wrote: > > phk 2001/05/14 01:20:47 PDT > > > > Modified files: > > sys/fs/devfs devfs_vnops.c > > Log: > > After a successfull poll of the cloning functions, match on the > > returned dev_t rather than the original name. > > > > This allows cloning from one name to another which is useful for > > /dev/tty and later for the pty's. > > > > Revision Changes Path > > 1.23 +7 -15 src/sys/fs/devfs/devfs_vnops.c > > Does this mean that I can catch ``open("/dev/tun")'' and clone (say) > /dev/tun100, returning that ? > > If so - WOW ! And in no less than -8 lines too ! This is how cloning is supposed to work. ie: open /dev/ptymx and it was as if you had opened /dev/ptyS6, and devname() returns /dev/ptyS6. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message