From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ee9b3a7ee574b880 X-Google-Attributes: gidfee84,public From: klaus@axp4.physik.fu-berlin.de (Wolfram Klaus) Subject: Re: Questions concerning umount on Digital Unix as compared to Linux..... Date: 1998/07/27 Message-ID: #1/1 X-Deja-AN: 375277488 Content-Transfer-Encoding: 8bit References: <35BA9A58.D2387B59@plutonium.net> X-Trace: fu-berlin.de 901540161 24592 (none) 160.45.32.195 Organization: Freie Universitaet Berlin X-Access: 16 17 19 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 "Steven J. Hill" writes: >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. >From man 2 umount: NAME mount, umount - Mounts or unmounts a file system SYNOPSIS #include mount( int type, char *mnt-path, int mnt_flag, caddr_t data ); umount( char *mnt-path, int umnt_flag ); [...] 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. Hope this helps, Wolfram >Steve -- """ (o o) +---------------------------------oOO--(_)--OOo-------------------------------+ | Wolfram Klaus (klaus@physik.fu-berlin.de) FU Berlin, FB Physik |