83494def459eb6b950edf09339c7466e8d4ff56f
[mono.git] / mono / metadata / nacl-stub.c
1
2 #if defined(__native_client__)
3
4 #ifdef HAVE_CONFIG_H
5 #include <config.h>
6 #endif
7 #include <eglib/src/glib.h>
8 #include <errno.h>
9 #include <sys/types.h>
10
11 struct group *getgrnam(const char *name) { return NULL; }
12 struct group *getgrgid(gid_t gid) { errno=EIO; return NULL; }
13 int fsync(int fd) { errno=EINVAL; return -1; }
14 dev_t makedev(guint32 maj, guint32 min) { return (maj)*256+(min); }
15
16 #endif