mirror of git://sourceware.org/git/glibc.git
entered into RCS
This commit is contained in:
parent
c316c1ae19
commit
5f9a1a9b13
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 1991, 1993 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
|
@ -24,12 +24,16 @@ Cambridge, MA 02139, USA. */
|
|||
int
|
||||
DEFUN(fileno, (stream), FILE *stream)
|
||||
{
|
||||
extern void __stdio_check_funcs __P ((FILE *));
|
||||
|
||||
if (! __validfp (stream))
|
||||
{
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
__stdio_check_funcs (stream);
|
||||
|
||||
if (stream->__io_funcs.__fileno == NULL)
|
||||
{
|
||||
#ifdef EOPNOTSUPP
|
||||
|
|
|
|||
Loading…
Reference in New Issue