]> git.lizzy.rs Git - plan9front.git/blob - sys/src/ape/lib/bsd/lstat.c
ape: Add mkstemp to /sys/src/ape/lib/ap/gen/mkfile
[plan9front.git] / sys / src / ape / lib / bsd / lstat.c
1 #include <sys/types.h>
2 #include <sys/stat.h>
3 #include <errno.h>
4
5 int
6 lstat(char *name, struct stat *ans)
7 {
8         return stat(name, ans);
9 }
10
11 int
12 symlink(char *name1, char *name2)
13 {
14         errno = EPERM;
15         return -1;
16 }
17
18 int
19 readlink(char *name, char *buf, int size)
20 {
21         errno = EIO;
22         return -1;
23 }