From owner-freebsd-net@FreeBSD.ORG Wed Jul 1 10:04:45 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38EC31065675 for ; Wed, 1 Jul 2009 10:04:45 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id C75AF8FC12 for ; Wed, 1 Jul 2009 10:04:44 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by fxm18 with SMTP id 18so639669fxm.43 for ; Wed, 01 Jul 2009 03:04:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.113.136 with SMTP id a8mr6043160faq.101.1246442682868; Wed, 01 Jul 2009 03:04:42 -0700 (PDT) In-Reply-To: References: From: Vlad Galu Date: Wed, 1 Jul 2009 13:04:20 +0300 Message-ID: To: pluknet Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Xin LI Subject: Re: Is there a chance to declare the prototype for setfib() somewhere in a system header? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 10:04:45 -0000 On Wed, Jul 1, 2009 at 12:57 PM, pluknet wrote: > 2009/7/1 Vlad Galu : >> Right now, to be able to compile with g++ (not gcc), I have to declare >> it in a "extern <>" scope. > > > setfib() is declared in -current only in sys/socket.h (r1.102). > > Can some please correct setfib(2) manpage? > > --- lib/libc/sys/setfib.2.orig =A02009-07-01 13:50:07.000000000 +0400 > +++ lib/libc/sys/setfib.2 =A0 =A0 =A0 2009-07-01 13:50:22.000000000 +0400 > @@ -33,6 +33,7 @@ > =A0.Sh LIBRARY > =A0.Lb libc > =A0.Sh SYNOPSIS > +.In sys/socket.h > =A0.Ft int > =A0.Fn setfib "int fib" > =A0.Sh DESCRIPTION > > -- > wbr, > pluknet > It would be great if the change to socket.h could be MFCed :) Thanks!