]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/libc_backends/lib/l4re_file/mount.cc
Update
[l4.git] / l4 / pkg / l4re-core / libc_backends / lib / l4re_file / mount.cc
1 /*
2  * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
3  *               Alexander Warg <warg@os.inf.tu-dresden.de>
4  *     economic rights: Technische Universität Dresden (Germany)
5  * This file is part of TUD:OS and distributed under the terms of the
6  * GNU Lesser General Public License 2.1.
7  * Please see the COPYING-LGPL-2.1 file for details.
8  */
9
10
11 #include <sys/mount.h>
12 #include <l4/l4re_vfs/backend>
13
14 int mount(__const char *__special_file, __const char *__dir,
15           __const char *__fstype, unsigned long int __rwflag,
16           __const void *__data) __THROW
17 {
18   int e = L4Re::Vfs::vfs_ops->mount(__special_file, __dir, __fstype, __rwflag, __data);
19   if (e < 0)
20     {
21       errno = -e;
22       return -1;
23     }
24   return 0;
25 }