]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libc_backends/lib/fs_noop/tbd.c
Inital import
[l4.git] / l4 / pkg / libc_backends / lib / fs_noop / tbd.c
1 /*
2  * (c) 2008-2009 Technische Universität Dresden
3  * This file is part of TUD:OS and distributed under the terms of the
4  * GNU Lesser General Public License 2.1.
5  * Please see the COPYING-LGPL-2.1 file for details.
6  */
7
8 #include <unistd.h>
9 #include <stdio.h>
10 #include <errno.h>
11
12
13 FILE *tmpfile(void);
14 FILE *tmpfile(void)
15 {
16   printf("%s: unimplemented\n", __func__);
17   return 0;
18 }
19
20 char *tmpnam(char *s);
21 char *tmpnam(char *s)
22 {
23   (void)s;
24   printf("%s: unimplemented\n", __func__);
25   return 0;
26 }
27
28 #include <sys/vfs.h>
29
30 int statfs(const char *path, struct statfs *buf)
31 {
32   printf("%s(%s, %p): unimplemented\n", __func__, path, buf);
33   errno = ENOENT;
34   return -1;
35 }
36
37 int fstatfs(int fd, struct statfs *buf)
38 {
39   printf("%s(%d, %p): unimplemented\n", __func__, fd, buf);
40   errno = ENOENT;
41   return -1;
42 }
43