}
}
- if (mount(device, argv[2], mountflags, srvflags, type, args) < 0) {
+ if (minix_mount(device, argv[2], mountflags, srvflags, type, args) < 0) {
err = strerror(errno);
fprintf(stderr, "mount: Can't mount %s on %s: %s\n",
argv[1], argv[2], err);
if (!strcmp(device, "none"))
device = NULL;
- if (mount(device, mountpoint, mountflags, 0, fs->fs_vfstype,
+ if (minix_mount(device, mountpoint, mountflags, 0, fs->fs_vfstype,
fs->fs_mntops) != 0) {
err = strerror(errno);
fprintf(stderr, "mount: Can't mount %s on %s: %s\n",
found = find_mtab_entry(name);
- if (umount(name, umount_flags) < 0) {
+ if (minix_umount(name, umount_flags) < 0) {
if (errno == EINVAL)
std_err("umount: Device not mounted\n");
else if (errno == ENOTBLK)
char *find_rslabel(char *args_line);
-int mount(char *special, char *name, int mountflags, int srvflags,
+int minix_mount(char *special, char *name, int mountflags, int srvflags,
char *type, char *args)
{
int r;
return r;
}
-int umount(const char *name, int srvflags)
+int minix_umount(const char *name, int srvflags)
{
char label[MNT_LABEL_LEN];
message m;
.nf
#include <sys/mount.h>
-int mount(char *\fIspecial\fP, char *\fIname\fP, int \fImountflags\fP, int \fIsrvflags\fP, char *\fItype\fP, char *\fIargs\fP)
-int umount(char *\fIname\fP, int \fIsrvflags)
+int minix_mount(char *\fIspecial\fP, char *\fIname\fP, int \fImountflags\fP, int \fIsrvflags\fP, char *\fItype\fP, char *\fIargs\fP)
+int minix_umount(char *\fIname\fP, int \fIsrvflags)
.fi
.ft P
.SH DESCRIPTION
#if !defined(__minix)
int unmount(const char *, int);
#else
-int umount(const char *_name, int srvflags);
+int minix_umount(const char *_name, int srvflags);
#endif /* !defined(__minix) */
#if defined(_NETBSD_SOURCE)
#if !defined(__minix)
int mount(const char *, const char *, int, void *, size_t) __RENAME(__mount50);
#else
-int mount(char *_spec, char *_name, int _mountflags, int srvflags, char *type,
+int minix_mount(char *_spec, char *_name, int _mountflags, int srvflags, char *type,
char *args);
#endif /* !defined(__minix) */
int fhopen(const void *, size_t, int) __RENAME(__fhopen40);