From owner-freebsd-questions@FreeBSD.ORG Mon Jul 27 12:45:00 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 704871065674 for ; Mon, 27 Jul 2009 12:45:00 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57001.mail.re3.yahoo.com (web57001.mail.re3.yahoo.com [66.196.97.105]) by mx1.freebsd.org (Postfix) with SMTP id 001658FC17 for ; Mon, 27 Jul 2009 12:44:59 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 8118 invoked by uid 60001); 27 Jul 2009 12:44:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1248698699; bh=PMLMjFEyBMeHliWYWEn7g3HSkazvg6O4m5XkdJARpJc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=MuYv6YIa5lzPxMmlWYIT/gb3pWMPsudUFdLp3tPBlveuuDUGZi2/JnbhW4/CZjp6WUnN+rdy3jDMarouv0A7DaxhOwBq7ZiSwGvYrSlkHWXe6ktyOQhugthevq/7sVVqQt9l9bl/SpbVA7XXDBf7YB7QxLJnUUvzrHTvIcMyTg4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=RcdJseonieG7vNlVwUddGpWc9VuTeZrgMX4BOwihkqgbsFETpJzXzwQ5amAlybW/UT/6C2Jgx0tfsdiDjESjge1po0RH1rELPG2pjk93wrAVGx7kJn6LVJp/PPaoi8pFMbbd/vQs4kKxdNGT19YMd2TWwoVv/HsetDpi3cnyDkk=; Message-ID: <310025.75856.qm@web57001.mail.re3.yahoo.com> X-YMail-OSG: JOdMpQcVM1nZhu3jKKMkVWScrCpqnxb.bhxeo.jSktG_ChN3DQzcIukzzKDPbAXN0HrwAK.SVuTMt.uSerB2Z1WUfKraY2aEWrg8l1jGnn5pkBfzyWufoQKFWRMuWbiJTkLUdPjZw6Ya.z8J0SvkYCPcHU8_wfYisflExNylpuodb0k49d3DUw9IkY1tFuXQQD9WISzyFAhrWVmFi4H9lS.GaISjkEgXOHutyPyEDCvdZlh3l142ExWCsDwEg5r56trD_CsgG7UyOoP3xnH0.SObLchM8nwHlonLrygK3lhkbkKm3p4- Received: from [220.255.7.182] by web57001.mail.re3.yahoo.com via HTTP; Mon, 27 Jul 2009 05:44:59 PDT X-Mailer: YahooMailClassic/5.4.17 YahooMailWebService/0.7.289.15 Date: Mon, 27 Jul 2009 05:44:59 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: How to find what symlink points to? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 12:45:00 -0000 Hi all I need to remove some unwanted symlinks on /dev using a C program. The "struct dirent" only shows the symlink name, how do I find what that symlink points to for verification purpose? Regards Unga