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 
mount(__const char * __special_file,__const char * __dir,__const char * __fstype,unsigned long int __rwflag,__const void * __data)14 int mount(__const char *__special_file, __const char *__dir,
15 	  __const char *__fstype, unsigned long int __rwflag,
16 	  __const void *__data)
17 noexcept(noexcept(mount(__special_file, __dir, __fstype, __rwflag, __data)))
18 {
19   int e = L4Re::Vfs::vfs_ops->mount(__special_file, __dir, __fstype, __rwflag, __data);
20   if (e < 0)
21     {
22       errno = -e;
23       return -1;
24     }
25   return 0;
26 }
27