public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: "MONTGOMERY,BOB (HP-FtCollins,ex1)" <bob.montgomery@hp.com>
To: linux-ia64@vger.kernel.org
Subject: RE: [Linux-ia64] libc umount and umount2 can't both be right
Date: Wed, 14 May 2003 15:47:23 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590723705795@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590723705762@msgid-missing>


> > In libc, umount and umount2 are the same code.  They both use
> > syscall number 1044 without introducing a call layer. 
> 
> looks like a typo in libc to me
> 
> -i
> ianw@gelato.unsw.edu.au
> http://www.gelato.unsw.edu.au

I don't think it was a typo.

The problem is that 2.4 IA64 kernels don't have a umount2
entry point.  They have a single entry point to provide
functionality for both umount and umount2 in the library.

Since the single kernel entry point expects two parameters,
the library needs to supply the second parameter (0) in the
case of umount, where the user only supplies the first
one.

Bob Montgomery, HP

> 
> --- libc/sysdeps/unix/sysv/linux/ia64/syscalls.list.old 
> 2003-05-14 09:10:04.000000000 +1000
> +++ libc/sysdeps/unix/sysv/linux/ia64/syscalls.list     
> 2003-05-14 09:09:40.000000000 +1000
> @@ -1,6 +1,6 @@
>  # File name    Caller  Syscall name    # args  Strong name   
>   Weak names
>   
> -umount2                -       umount          2       
> __umount2       umount2
> +umount2                -       umount2         2       
> __umount2       umount2
>   
>  # Whee! 64-bit systems naturally implement llseek.
>  llseek         EXTRA   lseek           C:3     __libc_lseek  
>   __lseek lseek __libc_lseek64 __llseek llseek __lseek64 lseek64
> 


  parent reply	other threads:[~2003-05-14 15:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-13 20:06 [Linux-ia64] libc umount and umount2 can't both be right MONTGOMERY,BOB (HP-FtCollins,ex1)
2003-05-13 23:24 ` Ian Wienand
2003-05-14  8:31 ` Andreas Schwab
2003-05-14 11:37 ` Ian Wienand
2003-05-14 14:43 ` Andreas Schwab
2003-05-14 15:47 ` MONTGOMERY,BOB (HP-FtCollins,ex1) [this message]
2003-05-15  0:26 ` Ulrich Drepper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590723705795@msgid-missing \
    --to=bob.montgomery@hp.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox