This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc stacking up to Windows


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]