From owner-freebsd-doc@FreeBSD.ORG Wed Nov 7 16:33:44 2012 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3BB133FD for ; Wed, 7 Nov 2012 16:33:44 +0000 (UTC) (envelope-from dru.lavigne@att.net) Received: from nm4.bullet.mail.sp2.yahoo.com (nm4.bullet.mail.sp2.yahoo.com [98.139.91.74]) by mx1.freebsd.org (Postfix) with ESMTP id F04D08FC0C for ; Wed, 7 Nov 2012 16:33:43 +0000 (UTC) Received: from [98.139.91.65] by nm4.bullet.mail.sp2.yahoo.com with NNFMP; 07 Nov 2012 16:33:43 -0000 Received: from [98.139.44.82] by tm5.bullet.mail.sp2.yahoo.com with NNFMP; 07 Nov 2012 16:33:43 -0000 Received: from [127.0.0.1] by omp1019.access.mail.sp2.yahoo.com with NNFMP; 07 Nov 2012 16:33:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 371435.32910.bm@omp1019.access.mail.sp2.yahoo.com Received: (qmail 67071 invoked by uid 60001); 7 Nov 2012 16:33:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1352306023; bh=awoNKX9j33ZvskTds1JsBTrpor6WY7hS4Oibjd3H4fs=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=RZmJzcdoHz5qypJYn2E+Aexij/zb9mj+hNCh5s0FwcVM1tPA5yQCt5Xx4xAmlgKNJUzvu8zUa2LwTNDd53UJxI5XMCRlpvmIXWQsjqDZcx1nZfnHQJJPDsjOTWnbAoRy0cHd7PQUIziqyY3YSjtwxQhLZ76D3lbFcu+XOqIOE8A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=att.net; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=XNkEQO1yXlv/FnD2JLB79NxtLUM7qh0BePkOk7ZK6qIxKS7s22fb6ZztASwvd1pFU9M8oCXHpB3Qy79Jw8mARLUmSwPGkFdpwt9faSLOUjodtBYmskmZu0mMIY4z9tWEs2uBXtrMv9uxilTBLvc5C/lh4q4dS/Iac4FL6P1cxQE=; X-YMail-OSG: SOYbwi0VM1mjATw2mqIx7Rsu._fsoa27_OdBCGYruejJkVq bZ_5iEfn0CtOJFpYIKrC0BBvOMNBLp_flEX9WmHiPXxQ5JYnizuWT368jBFm MPri_QguGr443eVjX.2PDhC_VvLcdP_y3o8xGMoFpltEqmQWe8B7UlX5Fa9p ypnyhuGn8jOlcpLsUzmbankBuf8ZNEG6qsmdLAQSqEox61LffzevIVl2tlEV vFOq2jRTwJP93nT6yA5X8ZOgo0umTeDBZiGcsSpvqex0n4eu6NY_RXxc0m61 i2HZVthnLc0A1bbKxdvxWxR2ezGzcj0MotmHRXG39t8PpQIm9MrSE71HZ5V_ VnKVXoV1FQkAJaOXeh9bbUuUGGjWEANmKuX_Kc6wDt4QIQSZofAeqQ9kwxwS FMcobN8OpMmF43G_La4d02UbapOa8LR9fT4RQG3_UTgGauypv9UO7enDcqz. mf.C0LU1aBfv_Af.eUOHOsf4ieu.ylrW8kKI0_mDpc0y4CMTfqX0LXsqiCVJ 52O5VlfG0RgSYjTHnoI7fNHF7FHhoR7OZJd.D1T13yXPdY49grbK5pRVqd0K AC7pKqc8BQAgi47S9I3GNpbS8QbXTHYCeZZGCvKMFdGLDN2w7aDgJqCxA5HQ UgOIM3vPtnPGYJKPhUrq4wVOA1mRYiCG0Th.tcCIa8MrdHTNj5gad0AzAEZm XjFODo_bumgKpezQ14JeRHW7Fr2KUDdt5gixtJm.UMiHWo_ySjvG6VWd92Nh s9q8R0cgvw2UC8tacCLm1294NiQ-- Received: from [99.98.82.135] by web184904.mail.gq1.yahoo.com via HTTP; Wed, 07 Nov 2012 08:33:42 PST X-Rocket-MIMEInfo: 001.001, V2hpbGUgdGhpcyByZXBvcnQgd2FzIGZvciBhIG1pcnJvciwgaXQgbG9va3MgbGlrZSB0aGUgY29tbWVyY2lhbC9pc3AuaHRtbCBwYWdlIGhhcyBiYWQgbGlua3MgZm9yIEJsdWVncmF2aXR5IGFuZCBEQkkgaG9zdGluZy4NCg0KQ2hlZXJzLA0KDQpEcnUNCg0KLS0tIE9uIFdlZCwgMTEvNy8xMiwgU2FicmluYSBKYWNrc29uIDxqYWNrc29uc2FicmluYTgwQGdtYWlsLmNvbT4gd3JvdGU6DQoNCkZyb206IFNhYnJpbmEgSmFja3NvbiA8amFja3NvbnNhYnJpbmE4MEBnbWFpbC5jb20.DQpTdWJqZWN0OiBMaW5rcyABMAEBAQE- X-Mailer: YahooMailClassic/15.0.8 YahooMailWebService/0.8.123.460 Message-ID: <1352306022.47224.YahooMailClassic@web184904.mail.gq1.yahoo.com> Date: Wed, 7 Nov 2012 08:33:42 -0800 (PST) From: Dru Lavigne Subject: Fw: Links page has some non-working urls To: freebsd-doc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2012 16:33:44 -0000 While this report was for a mirror, it looks like the commercial/isp.html p= age has bad links for Bluegravity and DBI hosting. Cheers, Dru --- On Wed, 11/7/12, Sabrina Jackson wrote: From: Sabrina Jackson Subject: Links page has some non-working urls To: board@FreeBSDFoundation.org Date: Wednesday, November 7, 2012, 4:49 AM Hi, I was browsing your website today and was checking out some of your resourc= es at http://freebsd4.riverwillow.net.au/commercial/isp.html . A few that s= eemed interesting to me were no longer available. I am =0Aemailing you to b= ring this to your attention in case you did not =0Arealize. Here are two li= nks that did not work. =A0=A0=A0=20 http://www.bluegravity.com/index_bsd.php=A0=A0=A0=20 http://www.dbihosting.com/bsdvps.html =0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A= =0A=0A=0A As=0A a website owner myself, keeping up with broken links is a daunting = =0Atask. If you would like to update your resource page, I can give you a = =0Aheads up on a few others I found.=20 =0AHave a great rest of the day, Sabrina Jackson BestFreeDatingSites.net --=20 =0A=0A --This is not a spam message and only intends in discussing your resource p= age =0Aissues. =0A=0A =0A From owner-freebsd-doc@FreeBSD.ORG Wed Nov 7 18:30:00 2012 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C7B735F9 for ; Wed, 7 Nov 2012 18:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9D5938FC14 for ; Wed, 7 Nov 2012 18:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qA7IU0U3061807 for ; Wed, 7 Nov 2012 18:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qA7IU0XP061806; Wed, 7 Nov 2012 18:30:00 GMT (envelope-from gnats) Resent-Date: Wed, 7 Nov 2012 18:30:00 GMT Resent-Message-Id: <201211071830.qA7IU0XP061806@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Fernando Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FF83599 for ; Wed, 7 Nov 2012 18:25:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 775608FC0C for ; Wed, 7 Nov 2012 18:25:24 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qA7IPOOi072923 for ; Wed, 7 Nov 2012 18:25:24 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qA7IPOCY072896; Wed, 7 Nov 2012 18:25:24 GMT (envelope-from nobody) Message-Id: <201211071825.qA7IPOCY072896@red.freebsd.org> Date: Wed, 7 Nov 2012 18:25:24 GMT From: Fernando To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: docs/173448: ftw.3 manual page example addition X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2012 18:30:00 -0000 >Number: 173448 >Category: docs >Synopsis: ftw.3 manual page example addition >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 07 18:30:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Fernando >Release: 9.0-RELEASE >Organization: >Environment: FreeBSD beastie 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: While having a look at the ftw(3) man page, I noticed we lacked an example. The attached patch adds a small yet clear example on how to use this function. >How-To-Repeat: man ftw >Fix: Apply the attached patch if it is found to be suitable. Patch attached with submission follows: --- /usr/src/lib/libc/gen/ftw.3 2012-01-03 04:26:08.000000000 +0100 +++ ftw_man/ftw.3 2012-11-07 19:18:48.000000000 +0100 @@ -155,6 +155,54 @@ will stop processing the tree and return the value from .Fa fn . Both functions return \-1 if an error is detected. +.Sh EXAMPLES +Following there is a small example that shows how +.Nm +works. It traverses the file tree starting at the directory pointed +by the only program argument and shows the complete path and a brief +indicator about the file type. +.Bd -literal +#include +#include + +int +ftw_callback(const char *path, const struct stat *sb, int typeflag) +{ + char type; + + switch(typeflag) { + case FTW_F: + type = 'F'; + break; + case FTW_D: + type = 'D'; + break; + case FTW_DNR: + type = '-'; + break; + case FTW_NS: + type = 'X'; + break; + } + + printf("[%c] %s\n", type, path); + + return (0); +} + +int +main(int argc, char **argv) +{ + + if (argc != 2) { + printf("Usage %s \n", argv[0]); + return (0); + } else { + return (ftw(argv[1], ftw_callback, /*UNUSED*/ 10)); + } + +} +.Ed .Sh ERRORS The .Fn ftw >Release-Note: >Audit-Trail: >Unformatted: