From nobody@www.freebsd.org  Mon May 20 09:55:54 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 0E85137B6EA
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <shigio@tamacom.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: new library function abs2rel and rel2abs.
X-Send-Pr-Version: www-1.0

>Number:         38347
>Category:       kern
>Synopsis:       [libutil] [patch] [request] new library function abs2rel and rel2abs.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          suspended
>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:  Sat Jan 26 03:40:17 UTC 2008
>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(<original path name>, <base directory>, <result>, <size of result>);

      INPUT                   INPUT                   OUTPUT
      <original path name>    <base directory>        <result>
      /usr/src                /etc                    ../usr/src


o rel2abs: make an absolute path name from a relative path name

rel2abs(<original path name>, <base directory>, <result>, <size of result>);

      INPUT                   INPUT                   OUTPUT
      <original path name>    <base directory>        <result>
      ../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:
State-Changed-From-To: open->suspended 
State-Changed-By: linimon 
State-Changed-When: Tue Oct 25 03:31:47 GMT 2005 
State-Changed-Why:  
Mark as 'suspended' since this does not seem as though it is being 
actively worked on. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38347 
>Unformatted:
