User: Password:
|
|
Subscribe / Log in / New account

Best solved in the C-library?

Best solved in the C-library?

Posted May 23, 2013 8:58 UTC (Thu) by shalem (subscriber, #4062)
Parent article: Empty symlinks and full POSIX compliance

Since the POSIX API is defined at the C-lib level, and not system call level AFAIK, why not simply let the C-lib deal with this, and replace the empty string with for example . It could perhaps even depend on feature macros ...


(Log in to post comments)

Best solved in the C-library?

Posted May 23, 2013 13:33 UTC (Thu) by corbet (editor, #1) [Link]

Because then if you do, say, readlink() on the link you get something other than what you stored there. That, too, has standards-compliance issues.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds