It probably doesn't like the options.
...
If you prefer those style options, it might be better to stick with the utilities as you have them than use hardcoded kernel calls.
Actually, the only reason that I wrote those options in my code was due to
what I read in 'man 2 mount'
Well, I looked mount(8) but I found nothing for the file system 'fuseblk'
so I didn't really know what to put as argument for the last parameter
of the mount system call (that is, const void *data). Therefore I thought
maybe it is the same as /etc/mtab, which seems that it is not the case.
I really need to do this mount and umount within the C code. If it was a
script (bash, KornShell, etc.) it would have been much easier, but
what I want to do is part of a C application and therefore I need to use
a system call. I wonder whether there is other system calls allowing
to mount/umount devices. Because I looked the POSIX specification
and it seems that mount is linux specific (there is no mount.h), because I
couldn't find the system call among the list of POSIX system calls. Do you
know any other system call?
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
Hi Friends,
Could you pleas help me out..
I have an awk program which works fine while running it in the command prompt.
The awk program is
===============
awk 'BEGIN {
format="head -%d M2_Sales_N01.txt |tail -%d >M2_Sales_N01_%02d.txt\n"
n=0
m=0
}
{
if (n==0)
{
tmp=$1
n=1
}... (5 Replies)
Hi,
I would like to know how to call a program "cmp_size" ... where to put in progam to run it
ex: program checkdisk is below, and it will call a nother problem "cmp_size"
Do I just put the cmp_size program at the end of this program.
Thank you very much,
# check all directory for size... (3 Replies)
hi guys
i have only basic knowledge of c so guys plz help me .....
i want 2 call c executable which requires file name as argument and i need to modify file contents before calling that executable now my question is how can i call this c executable inside another c program with arguments ??
i... (9 Replies)
Hello everyone!
I'm quite new here, but this forum helped me a lot before without registering :-)
I'll go directly to my problem, I have been searching a bit about this issue but I was not successful.
I need to write a program in C code to notificate me (to my email) when some action is done... (7 Replies)
Write a program using select, which will create some number of child processes that continuously send text messages to the parent process using pipes. Each child has its own pipe that it uses to communicate with the parent. The parent uses select () to decide what pipes should be processed to... (1 Reply)
Hi all
I wonder if its possible to mount on a hp-ux server a file system that was previously mounted on a solaris 10 server. The LUN is on NetApp stoarge.
The problem on hp-ux I cannot do pvcreate on the lun (disk) because contains data.
Any help will be appreciated
FR (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
"Your a7.c program should use printf to print a nice message. (You can decide what to say.) Then the process... (9 Replies)