From owner-freebsd-net@FreeBSD.ORG Wed Jul 1 09:57:56 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 3F6BA1065673 for ; Wed, 1 Jul 2009 09:57:56 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id C368C8FC19 for ; Wed, 1 Jul 2009 09:57:55 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by fxm18 with SMTP id 18so636111fxm.43 for ; Wed, 01 Jul 2009 02:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7oS2yHIz7N+hbg/k9QqcZS2giv78xTmlDVHr9gr3Tdg=; b=oLqeQW0LvnPIaI5QkjOAafu9mUtH1tpgtwMNOEbwqEtlioytut739KYQidws4vflXZ D4/XW7toVwZvzPdkOQQstZRTRN4m59pSDnfq3vrGyNth5YTW6yyVkpvI87baloyxX6OB vRBscRTgxWtLyQqjaMsAQg0PT9CWnik3TmLOY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CoKjIt1dvgwFezReWm5IUaJ5pAUUsrwJcXVhYb7D5ZRnBEjtHA9Js2yAKxfDLYaJLK Rj7RFfIM7i7TJjHZ0PGL1xWwKLdwhZq/LAtFBlxxi5CXG/dz7AGflBJbzROHH2S5cJRI foGGTFBfS92Uzll0bioOaaU9OTY7Qr4yT7UF0= MIME-Version: 1.0 Received: by 10.204.76.129 with SMTP id c1mr9461781bkk.9.1246442274682; Wed, 01 Jul 2009 02:57:54 -0700 (PDT) In-Reply-To: References: Date: Wed, 1 Jul 2009 13:57:54 +0400 Message-ID: From: pluknet To: Vlad Galu , Xin LI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org 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 09:57:56 -0000 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 2009-07-01 13:50:07.000000000 +0400 +++ lib/libc/sys/setfib.2 2009-07-01 13:50:22.000000000 +0400 @@ -33,6 +33,7 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS +.In sys/socket.h .Ft int .Fn setfib "int fib" .Sh DESCRIPTION -- wbr, pluknet