diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-11-30 23:43:57 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-11-30 23:43:57 +0000 |
commit | 32e616339a776d09df4ba9fbfbf26369d8735060 (patch) | |
tree | b2a2c2c6afa9431c32354dd2298c6251f50995a1 /libgloss/libnosys | |
parent | 7c15164f1772f7b0e093ff5dd1027051cddc764a (diff) | |
download | cygnal-32e616339a776d09df4ba9fbfbf26369d8735060.tar.gz cygnal-32e616339a776d09df4ba9fbfbf26369d8735060.tar.bz2 cygnal-32e616339a776d09df4ba9fbfbf26369d8735060.zip |
2005-11-30 Shaun Jackman <sjackman@gmail.com>
* libnosys/Makefile.in (OBJS): Add chown, readlink, and symlink.
* libnosys/chown.c: New file.
* libnosys/readlink.c: New file.
* libnosys/symlink.c: New file.
Diffstat (limited to 'libgloss/libnosys')
-rw-r--r-- | libgloss/libnosys/Makefile.in | 7 | ||||
-rw-r--r-- | libgloss/libnosys/chown.c | 24 | ||||
-rw-r--r-- | libgloss/libnosys/readlink.c | 24 | ||||
-rw-r--r-- | libgloss/libnosys/symlink.c | 22 |
4 files changed, 74 insertions, 3 deletions
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 <errno.h> +#include <sys/types.h> +#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 <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) 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 <errno.h> +#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) |