From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 21 02:07:13 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A2D616A4CE for ; Thu, 21 Apr 2005 02:07:13 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA1F843D31 for ; Thu, 21 Apr 2005 02:07:12 +0000 (GMT) (envelope-from opensource.enthousiat@gmail.com) Received: by zproxy.gmail.com with SMTP id 18so58396nzp for ; Wed, 20 Apr 2005 19:07:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AinYCJuu+iSji8fKmAreMftwEaeUUmtGvI3/bUkSkuWzfprDZd1LxCexCrt2pVrf25MJZtbkIzwUiBI5imVWf8by8A/xbZywv9zNYAM1enUYPrE1RNSM0Nlf805TTkH1XV/qb05QEdEyQ++/QED7yk5GQWqQSTxnA2J1HA8beqU= Received: by 10.36.88.3 with SMTP id l3mr140719nzb; Wed, 20 Apr 2005 19:07:12 -0700 (PDT) Received: by 10.36.109.8 with HTTP; Wed, 20 Apr 2005 19:07:12 -0700 (PDT) Message-ID: <37e1316605042019072b5d7a0e@mail.gmail.com> Date: Wed, 20 Apr 2005 22:07:12 -0400 From: Aziz KEZZOU To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: KLD module with C++ iostreams ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Aziz KEZZOU List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2005 02:07:13 -0000 Hi hackers, I am wondering if I can use c++ iostreams inside the kernel ? After all the code : cout << "Hello world!" << endl;=20 ends accessing the stdout just like : printf("Hello world!\n"); right ? So if I could compile my KLD module with static linkage to libstdc++, that should be ok, right ? Any one did or knows how to do this ? Thanks, -aziz