From owner-freebsd-net@FreeBSD.ORG Wed Jul 1 12:33:15 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 DB04A1065675 for ; Wed, 1 Jul 2009 12:33:15 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 6E22C8FC0A for ; Wed, 1 Jul 2009 12:33:15 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by bwz12 with SMTP id 12so711527bwz.43 for ; Wed, 01 Jul 2009 05:33:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.114.15 with SMTP id c15mr2954502faq.47.1246451594180; Wed, 01 Jul 2009 05:33:14 -0700 (PDT) In-Reply-To: References: From: Vlad Galu Date: Wed, 1 Jul 2009 15:32:54 +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 12:33:16 -0000 On Wed, Jul 1, 2009 at 1:04 PM, Vlad Galu wrote: > 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 +040= 0 >> @@ -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! > I've submitted a PR, filed as misc/136216.