[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fileno(tmpfile()) returns EBADF
From: |
Roland McGrath |
Subject: |
Re: fileno(tmpfile()) returns EBADF |
Date: |
Fri, 19 Apr 2002 17:10:53 -0400 (EDT) |
> Roland McGrath <roland@frob.com> writes:
>
> > I think the Hurd libc implementation of tmpfile is at fault.
> > POSIX.1 says there must be a file descriptor. Try this libc patch.
>
> Why do it this way? I would prefer having fileno generate the file
> descriptor, since most uses of tmpfile will probably not need one.
That was my first thought too. But POSIX.1 says that tmpfile "shall
allocate a file descriptor as fopen does".
- fileno(tmpfile()) returns EBADF, Marcus Brinkmann, 2002/04/16
- Re: fileno(tmpfile()) returns EBADF, Marcus Brinkmann, 2002/04/16
- Re: fileno(tmpfile()) returns EBADF, Roland McGrath, 2002/04/17
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/17
- Re: fileno(tmpfile()) returns EBADF,
Roland McGrath <=
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF, Roland McGrath, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF, Marcus Brinkmann, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF, Marcus Brinkmann, 2002/04/20
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/20
- Re: fileno(tmpfile()) returns EBADF, Marcus Brinkmann, 2002/04/20