/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2011 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* convert native path to posix fs representation in <buf,siz>
* length of converted path returned
* if return length >= siz then buf is indeterminate, but another call
* with siz=length+1 would work
* if buf==0 then required size is returned
*/
#include <ast.h>
#if _UWIN
#include <uwin.h>
{
}
#else
#if __CYGWIN__
extern void cygwin_conv_to_posix_path(const char*, char*);
{
size_t n;
{
return n;
}
}
#else
#if __EMX__ && 0 /* show me the docs */
{
char* s;
size_t n;
{
for (s = buf; *s; s++)
if (*s == '/')
*s = '\\';
}
return n;
}
#else
#if __INTERIX
{
*buf = 0;
else
}
#else
{
size_t n;
return n;
}
#endif
#endif
#endif
#endif