From 32e616339a776d09df4ba9fbfbf26369d8735060 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 30 Nov 2005 23:43:57 +0000 Subject: 2005-11-30 Shaun Jackman * libnosys/Makefile.in (OBJS): Add chown, readlink, and symlink. * libnosys/chown.c: New file. * libnosys/readlink.c: New file. * libnosys/symlink.c: New file. --- libgloss/libnosys/readlink.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libgloss/libnosys/readlink.c (limited to 'libgloss/libnosys/readlink.c') 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 +#include +#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) -- cgit v1.2.3