473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

mount() function problem !

int mount(const char *fs, const char *path, int mflag); int
mount(const char *fs, const char *path, int mflag, const char
*fstype, const char *dataptr, int datalen);

I am not getting what is meant by this --int mflag, const char
*fstype, const char *dataptr, int datalen
Can anybody please explain me with example , Please !
regards,
Onkar
Jun 27 '08 #1
6 3138
on*************@gmail.com writes:
int mount(const char *fs, const char *path, int mflag); int
mount(const char *fs, const char *path, int mflag, const char
*fstype, const char *dataptr, int datalen);

I am not getting what is meant by this --int mflag, const char
*fstype, const char *dataptr, int datalen
Can anybody please explain me with example , Please !
mount is not a standard C function. Try comp.unix.programmer.

(We have some trolls who are trying to encourage off-topic discussions
in this newsgroup. Please ignore them.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 27 '08 #2
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
>on*************@gmail.com writes:
>int mount(const char *fs, const char *path, int mflag); int
mount(const char *fs, const char *path, int mflag, const char
*fstype, const char *dataptr, int datalen);

I am not getting what is meant by this --int mflag, const char
*fstype, const char *dataptr, int datalen
Can anybody please explain me with example , Please !

mount is not a standard C function. Try comp.unix.programmer.

(We have some trolls who are trying to encourage off-topic discussions
in this newsgroup. Please ignore them.)
What keith meant to say (but, apparently, his editor failed him):

"I am a troll who is trying to be a real prick
in this newsgroup. Please ignore me."

Jun 27 '08 #3
On 13 Jun 2008 at 8:55, Kenny McCormack wrote:
Keith Thompson <ks***@mib.orgwrote:
>>on*************@gmail.com writes:
>>int mount(const char *fs, const char *path, int mflag);

mount is not a standard C function. Try comp.unix.programmer.

(We have some trolls who are trying to encourage off-topic discussions
in this newsgroup. Please ignore them.)

What keith meant to say (but, apparently, his editor failed him):

"I am a troll who is trying to be a real prick
in this newsgroup. Please ignore me."
The ironic thing is that mount isn't specified by POSIX, so by Keith's
own standards he's just sent the OP to another newsgroup where his
question is also "off topic" - in fact, the signature, semantics and
associated structs for mount(2) vary significantly between different
Unices.

Jun 27 '08 #4
In article <sl*******************@nospam.invalid>,
Antoninus Twink <no****@nospam.invalidwrote:
>On 13 Jun 2008 at 8:55, Kenny McCormack wrote:
>Keith Thompson <ks***@mib.orgwrote:
>>>on*************@gmail.com writes:
int mount(const char *fs, const char *path, int mflag);

mount is not a standard C function. Try comp.unix.programmer.

(We have some trolls who are trying to encourage off-topic discussions
in this newsgroup. Please ignore them.)

What keith meant to say (but, apparently, his editor failed him):

"I am a troll who is trying to be a real prick
in this newsgroup. Please ignore me."

The ironic thing is that mount isn't specified by POSIX, so by Keith's
own standards he's just sent the OP to another newsgroup where his
question is also "off topic" - in fact, the signature, semantics and
associated structs for mount(2) vary significantly between different
Unices.
(In the words of a well known CLC troll)

"Indeed"

Jun 27 '08 #5
ga*****@xmission.xmission.com (Kenny McCormack) writes:
In article <sl*******************@nospam.invalid>,
Antoninus Twink <no****@nospam.invalidwrote:
>>On 13 Jun 2008 at 8:55, Kenny McCormack wrote:
>>Keith Thompson <ks***@mib.orgwrote:
on*************@gmail.com writes:
int mount(const char *fs, const char *path, int mflag);

mount is not a standard C function. Try comp.unix.programmer.

(We have some trolls who are trying to encourage off-topic discussions
in this newsgroup. Please ignore them.)

What keith meant to say (but, apparently, his editor failed him):

"I am a troll who is trying to be a real prick
in this newsgroup. Please ignore me."

The ironic thing is that mount isn't specified by POSIX, so by Keith's
own standards he's just sent the OP to another newsgroup where his
question is also "off topic" - in fact, the signature, semantics and
associated structs for mount(2) vary significantly between different
Unices.

(In the words of a well known CLC troll)

"Indeed"
That would be "word", not "words" ........
Jun 27 '08 #6
On Thu, 12 Jun 2008 23:34:39 -0700 (PDT), on*************@gmail.com
wrote:
>int mount(const char *fs, const char *path, int mflag); int
mount(const char *fs, const char *path, int mflag, const char
*fstype, const char *dataptr, int datalen);

I am not getting what is meant by this --int mflag, const char
*fstype, const char *dataptr, int datalen
Can anybody please explain me with example , Please !
What you have is a pair of inconsistent prototypes for a function
named mount.

The first prototype says that mount returns an int and takes three
arguments:
a pointer to a constant character (the function will not modify
this character)
a second pointer to a constant character
and an int

The second prototype says that mount returns an int and takes six
arguments:
the first three are the same as above
a third pointer to a constant character
a fourth pointer to a constant character
and a second integer

Since both prototypes cannot be in scope simultaneously, what kind of
example are you looking for?

Remove del for email
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Terry Olsen | last post by:
My 5 year old has lots of games that require the CD be in the drive. I would like to come up with a program that will mount the .iso image to a virtual cd-rom drive and then run the game...
1
by: manueladeva | last post by:
Hi guys! can anyone help me with my project. I have to mount usb using C. and i got to read about system function. can anyone help me with a code on how to use use this in mounting usb..
3
by: tguclu | last post by:
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...
3
by: m.smith_1999 | last post by:
Hello, I'm a student software developer. As a part of an excerise I'm doing I'm trying to build a program to create "mount files" and mount them. Something like Sarah Dean's OTFE but really...
2
by: Michael_R_Banks | last post by:
Is there any way to mount a Unix volume with VB.net and use the file system as if it were native to Windows? I need to write a program that will take a file, manipulate it some, then re-post it &...
7
by: skyy | last post by:
hi... i am using arm-linux.. i want to mount my usb using vfat filesystem. Currently it only allow me to mount using msdos filesystem. Is there any way to change the /etc/fstab file to let...
3
by: paras sharma | last post by:
hello everyone; I was trying to make a prog. to mount CD image using mount() system call, but I got error block device require what arguments should I pass to it to make it work.
1
Nepomuk
by: Nepomuk | last post by:
In most modern distributions of Linux and Unix (at least ones with graphical environments like KDE, Gnome or XFCE), you get to mount your partitions easily from the desktop. In some cases however, it...
12
by: tvnaidu | last post by:
Trying to mount windows folder on Linux machine, getting this error. I have a folder called "CheckIn" on windows, I made that folder as Network sharing. ON lInux, I tried to access that folder by...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.