From owner-freebsd-bugs Mon May 20 10:20:32 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CE20F37B416 for ; Mon, 20 May 2002 10:18:46 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4KH06n28972; Mon, 20 May 2002 10:00:06 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 0E85137B6EA for ; Mon, 20 May 2002 09:18:05 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4KGI4hG099650 for ; Mon, 20 May 2002 09:18:04 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g4KGI4NB099649; Mon, 20 May 2002 09:18:04 -0700 (PDT) Message-Id: <200205201618.g4KGI4NB099649@www.freebsd.org> Date: Mon, 20 May 2002 09:18:04 -0700 (PDT) From: Shigio Yamaguchi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/38347: new library function abs2rel and rel2abs. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38347 >Category: misc >Synopsis: new library function abs2rel and rel2abs. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 20 10:00:06 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Shigio Yamaguchi >Release: 4.3-RELEASE >Organization: Tama Communications Corporation >Environment: N/A >Description: I have written two functions for C language, which operates path strings. These are suitable for 'lib/libutil/', I think. o abs2rel: make a relative path name from an absolute path name abs2rel(, , , ); INPUT INPUT OUTPUT /usr/src /etc ../usr/src o rel2abs: make an absolute path name from a relative path name rel2abs(, , , ); INPUT INPUT OUTPUT ../usr/src /etc /usr/src >How-To-Repeat: >Fix: Archive is available at: http://www.tamacom.com/pathconvert/pathconvert.tar.gz (The 'lib' directory includes source code and online manual for above functions.) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message