Let the fake readlink(2) and symlink(2) functions report ENOSYS.

Now that some symbolic link support is coming soon, let those functions
report a more correct error than EINVAL or EFAULT.
This commit is contained in:
Johannes Sixt
2007-03-12 10:05:27 +01:00
parent 43814f7c60
commit f16b0ec3bd

View File

@@ -7,13 +7,13 @@ unsigned int _CRT_fmode = _O_BINARY;
int readlink(const char *path, char *buf, size_t bufsiz)
{
errno = EINVAL;
errno = ENOSYS;
return -1;
}
int symlink(const char *oldpath, const char *newpath)
{
errno = EFAULT;
errno = ENOSYS;
return -1;
}