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:
24
libgloss/libnosys/readlink.c
Normal file
24
libgloss/libnosys/readlink.c
Normal file
@@ -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)
|
Reference in New Issue
Block a user