glibc stacking up to Windows

Michael Lueck mlueck@lueckdatasystems.com
Mon May 15 18:55:00 GMT 2006


Daniel Jacobowitz wrote:

> And you use realpath and canonicalize_file_name, which you
> appear to have not noticed, but which are available in glibc.

I will tinker with those API's to see if they perform equiv. I did not notice them as they were under the symlink docs, and I viewed what I was looking for as more of a global filesystem API, not 
specific just to symlinks.

What I expect the API to do is to fully qualify ANY filespec it is offered, so nasty things like...

../../here/there/../over/here/*.c

and I would get back

/home/michael/dev/c/project/main/here/over/here/*.c

based on it detecting the current working directory, etc... There is much logic which goes into the API, thus belongs in a shared library so everyone does not need to re-code the API for their own 
program(s).

Thanks for pointing out the two API's to look into.

-- 
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/



More information about the Libc-alpha mailing list