compat_mount.c revision 1.1 1 1.1 dsl /* $NetBSD: compat_mount.c,v 1.1 2007/07/14 15:53:04 dsl Exp $ */
2 1.1 dsl
3 1.1 dsl
4 1.1 dsl #include <sys/cdefs.h>
5 1.1 dsl #if defined(LIBC_SCCS) && !defined(lint)
6 1.1 dsl __RCSID("$NetBSD: compat_mount.c,v 1.1 2007/07/14 15:53:04 dsl Exp $");
7 1.1 dsl #endif /* LIBC_SCCS and not lint */
8 1.1 dsl
9 1.1 dsl #define __LIBC12_SOURCE__
10 1.1 dsl
11 1.1 dsl #include <sys/types.h>
12 1.1 dsl #include <sys/mount.h>
13 1.1 dsl
14 1.1 dsl __warn_references(mount,
15 1.1 dsl "warning: reference to compatibility mount(); include <sys/mount.h> to generate correct reference")
16 1.1 dsl
17 1.1 dsl int mount(const char *, const char *, int, void *);
18 1.1 dsl int __mount50(const char *, const char *, int, void *, size_t);
19 1.1 dsl
20 1.1 dsl /*
21 1.1 dsl * Convert old mount() call to new calling convention
22 1.1 dsl * The kernel will treat length 0 as 'default for the fs'.
23 1.1 dsl */
24 1.1 dsl int
25 1.1 dsl mount(const char *type, const char *dir, int flags, void *data)
26 1.1 dsl {
27 1.1 dsl return __mount50(type, dir, flags, data, 0);
28 1.1 dsl }
29