T
tguclu
Hi there,
I hope this is the right place for my question if not please accept
my
apologies.
In my application I want to mount/umount file system. From GNU C
Library
Reference Manual, for Version 2.3.x.
I have found 'HOW TO MOUNT/UMOUNT'
Below is the code
#include <sys/mount.h>
mount(dev,dest , MS_MGC_VAL | MS_RDONLY | MS_NOSUID,"");
//dev = "/dev/scsi/host0/bus0/target0/lun0/part1"
//dest= "mnt/removable
But compiler gives this error;
To few arguments to function 'mount'
According to reference there are enough numbers of parameters , but
couldn't
find it gives this error.
Kernel Version is:
Linux ts7000 2.4.26-ts11 #1 Mon Dec 18 16:31:10 MST 2006 armv4l GNU/
Linux
And the GCC version is :
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Thanks..
I hope this is the right place for my question if not please accept
my
apologies.
In my application I want to mount/umount file system. From GNU C
Library
Reference Manual, for Version 2.3.x.
I have found 'HOW TO MOUNT/UMOUNT'
Below is the code
#include <sys/mount.h>
mount(dev,dest , MS_MGC_VAL | MS_RDONLY | MS_NOSUID,"");
//dev = "/dev/scsi/host0/bus0/target0/lun0/part1"
//dest= "mnt/removable
But compiler gives this error;
To few arguments to function 'mount'
According to reference there are enough numbers of parameters , but
couldn't
find it gives this error.
Kernel Version is:
Linux ts7000 2.4.26-ts11 #1 Mon Dec 18 16:31:10 MST 2006 armv4l GNU/
Linux
And the GCC version is :
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Thanks..