diff options
Diffstat (limited to 'libgloss/libnosys/readlink.c')
-rw-r--r-- | libgloss/libnosys/readlink.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libgloss/libnosys/readlink.c b/libgloss/libnosys/readlink.c new file mode 100644 index 000000000..7df253c40 --- /dev/null +++ b/libgloss/libnosys/readlink.c @@ -0,0 +1,24 @@ +/* + * Stub version of readlink. + */ + +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> +#include <errno.h> +#include <sys/types.h> +#undef errno +extern int errno; +#include "warning.h" + +int +_DEFUN (_readlink, (path, buf, bufsize), + const char *path _AND + char *buf _AND + size_t bufsize) +{ + errno = ENOSYS; + return -1; +} + +stub_warning(_readlink) |