Bug 38347 - [libutil] [patch] [request] new library function abs2rel and rel2abs.
Summary: [libutil] [patch] [request] new library function abs2rel and rel2abs.
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 4.3-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2002-05-20 18:00 UTC by shigio
Modified: 2022-10-17 12:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shigio 2002-05-20 18:00:06 UTC
      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

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.)
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-10-25 04:31:47 UTC
State Changed
From-To: open->suspended

Mark as 'suspended' since this does not seem as though it is being 
actively worked on.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:54:16 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:35:39 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>