Contents of /trunk/mkinitrd-magellan/klibc/usr/kinit/nfsmount/nfsmount.h
Parent Directory | Revision Log
Revision 1122 -
(show annotations)
(download)
Wed Aug 18 21:11:40 2010 UTC (13 years, 8 months ago) by niro
File MIME type: text/plain
File size: 671 byte(s)
Wed Aug 18 21:11:40 2010 UTC (13 years, 8 months ago) by niro
File MIME type: text/plain
File size: 671 byte(s)
-updated to klibc-1.5.19
1 | #ifndef NFSMOUNT_NFSMOUNT_H |
2 | #define NFSMOUNT_NFSMOUNT_H |
3 | |
4 | #include <linux/nfs_mount.h> |
5 | |
6 | extern int nfs_port; |
7 | |
8 | extern int nfsmount_main(int argc, char *argv[]); |
9 | int nfs_mount(const char *rem_name, const char *hostname, |
10 | uint32_t server, const char *rem_path, |
11 | const char *path, struct nfs_mount_data *data); |
12 | |
13 | enum nfs_proto { |
14 | v2 = 2, |
15 | v3, |
16 | }; |
17 | |
18 | /* masked with NFS_MOUNT_FLAGMASK before mount() call */ |
19 | #define NFS_MOUNT_KLIBC_RONLY 0x00010000U |
20 | |
21 | #ifdef DEBUG |
22 | # define dprintf printf |
23 | #else |
24 | # define dprintf(...) ((void)0) |
25 | #endif |
26 | |
27 | #ifndef MNTPROC_MNT |
28 | #define MNTPROC_MNT 1 |
29 | #endif |
30 | #ifndef MNTPROC_UMNT |
31 | #define MNTPROC_UMNT 3 |
32 | #endif |
33 | |
34 | #endif /* NFSMOUNT_NFSMOUNT_H */ |