1*0f7f3352SJulian Elischer /* 2*0f7f3352SJulian Elischer * Copyright (c) 1997 Shigio Yamaguchi. All rights reserved. 3*0f7f3352SJulian Elischer * Copyright (c) 1999 Tama Communications Corporation. All rights reserved. 4*0f7f3352SJulian Elischer * 5*0f7f3352SJulian Elischer * Redistribution and use in source and binary forms, with or without 6*0f7f3352SJulian Elischer * modification, are permitted provided that the following conditions 7*0f7f3352SJulian Elischer * are met: 8*0f7f3352SJulian Elischer * 1. Redistributions of source code must retain the above copyright 9*0f7f3352SJulian Elischer * notice, this list of conditions and the following disclaimer. 10*0f7f3352SJulian Elischer * 2. Redistributions in binary form must reproduce the above copyright 11*0f7f3352SJulian Elischer * notice, this list of conditions and the following disclaimer in the 12*0f7f3352SJulian Elischer * documentation and/or other materials provided with the distribution. 13*0f7f3352SJulian Elischer * 14*0f7f3352SJulian Elischer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*0f7f3352SJulian Elischer * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*0f7f3352SJulian Elischer * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*0f7f3352SJulian Elischer * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*0f7f3352SJulian Elischer * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*0f7f3352SJulian Elischer * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*0f7f3352SJulian Elischer * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*0f7f3352SJulian Elischer * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*0f7f3352SJulian Elischer * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*0f7f3352SJulian Elischer * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*0f7f3352SJulian Elischer * SUCH DAMAGE. 25*0f7f3352SJulian Elischer */ 26*0f7f3352SJulian Elischer #ifndef _PATHCONV_H 27*0f7f3352SJulian Elischer #define _PATHCONV_H 28*0f7f3352SJulian Elischer char * rel2abs(const char *path, const char *base, char *result, const size_t size); 29*0f7f3352SJulian Elischer char * abs2rel(const char *path, const char *base, char *result, const size_t size); 30*0f7f3352SJulian Elischer 31*0f7f3352SJulian Elischer #endif /*_PATHCONV_H */ 32*0f7f3352SJulian Elischer 33