Date: Mon, 20 May 2002 09:18:04 -0700 (PDT) From: Shigio Yamaguchi <shigio@tamacom.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/38347: new library function abs2rel and rel2abs. Message-ID: <200205201618.g4KGI4NB099649@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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(<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:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205201618.g4KGI4NB099649>
