On 15 Dec 2005, at 00:37, Justin C. Walker wrote:
On Dec 14, 2005, at 16:11 , Eric Albert wrote:
I'm pretty sure realpath(3) will return the correct case, so apps can differentiate between x.c and x.C that way.
Maybe, but I get this:
$ ./foo
/private/tmp/Libc-391.2.3/stdlib/FreeBSD/foo.c
$ mv foo.c foo.C
$ ./foo
/private/tmp/Libc-391.2.3/stdlib/FreeBSD/foo.C
Looks right to me (and exactly what Eric and I would expect, I think). The point is that you can tell which you've got by looking at the result of calling realpath(). OK, you can open either name and you'll get a file descriptor, but that's fine; we're just talking about the case where the app has to distinguish the name.
Anyway, as I said, I bet GCC just looks at the command line.
Alastair.