* Questions concerning umount on Digital Unix as compared to Linux.....
@ 1998-07-25 4:00 Steven J. Hill
1998-07-26 4:00 ` Douglas H. Borsom
1998-07-26 4:00 ` Mark Bartelt
0 siblings, 2 replies; 4+ messages in thread
From: Steven J. Hill @ 1998-07-25 4:00 UTC (permalink / raw)
Greetings.
I am currently writing some software that will eventually compile
on most of the major UNIX platforms. I am having a problem with
the umount command. In the OSF header file it shows the prototype
as:
extern int umount( char *, int );
whereas in my Linux header file it is:
extern int umount __P ((__const char* __specialfile));
What is the second argument value in the OSF call? Thanks in
advance.
Steve
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Questions concerning umount on Digital Unix as compared to Linux.....
1998-07-25 4:00 Questions concerning umount on Digital Unix as compared to Linux Steven J. Hill
1998-07-26 4:00 ` Douglas H. Borsom
@ 1998-07-26 4:00 ` Mark Bartelt
1998-07-27 4:00 ` Robert Harley
1 sibling, 1 reply; 4+ messages in thread
From: Mark Bartelt @ 1998-07-26 4:00 UTC (permalink / raw)
[ Steven J. Hill ]
>> I am having a problem with
>> the umount command. In the OSF header file it shows the prototype
>> as:
>>
>> extern int umount( char *, int );
[ ... ]
>> What is the second argument value in the OSF call?
I presume that you don't have access to a Digital UNIX system at the moment,
else "RTFM" would be the appropriate answer. Anyway, doing a "man 2 umount"
tells us that ...
umnt_flag Specifies one of the following values:
MNT_FORCE The file system should be forcibly umounted even if
files are still active. Active special devices con-
tinue to work, but any further accesses to any other
active files result in errors even if the file system
is later remounted. Support for a forcible unmount is
file system dependent.
The "one of" is a bit amusing, since MNT_FORCE is the only value described in
the manpage. However, /usr/include/sys/mount.h has ...
#define MNT_FORCE 0x1
#define MNT_NOFORCE 0x2
... which leads one to wonder what the behaviour is if the second argument is
zero.
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.utoronto.ca
Theoretical Astrophysics http://www.cita.utoronto.ca/~mark
"Clothes not busy being worn are busy drying." -- Dylan, on laundry day
[ singing "It's all right, ma (I'm only bleaching)" ]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Questions concerning umount on Digital Unix as compared to Linux.....
1998-07-25 4:00 Questions concerning umount on Digital Unix as compared to Linux Steven J. Hill
@ 1998-07-26 4:00 ` Douglas H. Borsom
1998-07-26 4:00 ` Mark Bartelt
1 sibling, 0 replies; 4+ messages in thread
From: Douglas H. Borsom @ 1998-07-26 4:00 UTC (permalink / raw)
In article <35BA9AB2.8654123@plutonium.net>, "Steven J. Hill"
<sjhill@plutonium.net> wrote:
> Greetings.
>
> I am currently writing some software that will eventually compile
> on most of the major UNIX platforms. I am having a problem with
> the umount command. In the OSF header file it shows the prototype
> as:
>
> extern int umount( char *, int );
>
> whereas in my Linux header file it is:
>
> extern int umount __P ((__const char* __specialfile));
>
> What is the second argument value in the OSF call? Thanks in
> advance.
On the theory that if you give a man a fish, you feed him
for one day, but if you teach a man to fish, he'll laze away
entire days in the sun, drinking beer while his line trails
neglected in the water:
The DEC man pages can be found on the net at
http://www.unix.digital.com/bin/webman
The complete DEC UNIX doc set can be got at from
http://www.unix.digital.com/faqs/publications/pub_page/doc_list.html
-doug
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Questions concerning umount on Digital Unix as compared to Linux.....
1998-07-26 4:00 ` Mark Bartelt
@ 1998-07-27 4:00 ` Robert Harley
0 siblings, 0 replies; 4+ messages in thread
From: Robert Harley @ 1998-07-27 4:00 UTC (permalink / raw)
mark@cita.toronto.edu (Mark Bartelt) writes:
> I presume that you don't have access to a Digital UNIX system at the moment,
> else "RTFM" would be the appropriate answer. Anyway, doing a "man 2 umount"
> tells us that ...
> [...stuff...]
However if you also do "whatis umount" you'll see that there is another
umount() which doesn't take the flag.
And doing "man 2 umount" on Linux tells you:
------------------------------------------------------------------------------
CONFORMING TO
These functions are Linux-specific and should not be used
in programs intended to be portable.
------------------------------------------------------------------------------
so he probably shouldn't be using umount() anyway.
Rob.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-07-27 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-25 4:00 Questions concerning umount on Digital Unix as compared to Linux Steven J. Hill
1998-07-26 4:00 ` Douglas H. Borsom
1998-07-26 4:00 ` Mark Bartelt
1998-07-27 4:00 ` Robert Harley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox