diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 0b49c1cd1..4d3c8914d 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,10 @@ +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. + 2005-11-30 Shaun Jackman * arm/libcfunc.c (clock, sleep, usleep): New functions. diff --git a/libgloss/libnosys/Makefile.in b/libgloss/libnosys/Makefile.in index 263798569..d6634fc54 100644 --- a/libgloss/libnosys/Makefile.in +++ b/libgloss/libnosys/Makefile.in @@ -65,9 +65,10 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` # object files needed -OBJS = close.o environ.o errno.o execve.o fork.o fstat.o getpid.o gettod.o \ - isatty.o kill.o link.o lseek.o open.o read.o sbrk.o stat.o \ - times.o unlink.o wait.o write.o _exit.o +OBJS = chown.o close.o environ.o errno.o execve.o fork.o fstat.o \ + getpid.o gettod.o isatty.o kill.o link.o lseek.o open.o \ + read.o readlink.o sbrk.o stat.o symlink.o times.o unlink.o \ + wait.o write.o _exit.o # Object files specific to particular targets. EVALOBJS = ${OBJS} diff --git a/libgloss/libnosys/chown.c b/libgloss/libnosys/chown.c new file mode 100644 index 000000000..67f98d59d --- /dev/null +++ b/libgloss/libnosys/chown.c @@ -0,0 +1,24 @@ +/* + * Stub version of chown. + */ + +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> +#include +#include +#undef errno +extern int errno; +#include "warning.h" + +int +_DEFUN (_chown, (path, owner, group), + const char *path _AND + uid_t owner _AND + gid_t group) +{ + errno = ENOSYS; + return -1; +} + +stub_warning(_chown) 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) diff --git a/libgloss/libnosys/symlink.c b/libgloss/libnosys/symlink.c new file mode 100644 index 000000000..d9e29f2e4 --- /dev/null +++ b/libgloss/libnosys/symlink.c @@ -0,0 +1,22 @@ +/* + * Stub version of symlink. + */ + +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> +#include +#undef errno +extern int errno; +#include "warning.h" + +int +_DEFUN (_symlink, (path1, path2), + const char *path1 _AND + const char *path2) +{ + errno = ENOSYS; + return -1; +} + +stub_warning(_symlink)