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.
This commit is contained in:
parent
7c15164f17
commit
32e616339a
|
@ -1,3 +1,10 @@
|
|||
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.
|
||||
|
||||
2005-11-30 Shaun Jackman <sjackman@gmail.com>
|
||||
|
||||
* arm/libcfunc.c (clock, sleep, usleep): New functions.
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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)
|
|
@ -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)
|
|
@ -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)
|
Loading…
Reference in New Issue