mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Remove use of INTDEF/INTUSE in libio
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
/* Copyright (C) 1993,1994,1997,1998,1999,2000,2002,2003,2010,2012
|
||||
Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993-2012 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
|
||||
@ -156,14 +155,14 @@ _IO_new_fdopen (fd, mode)
|
||||
(use_mmap && (read_write & _IO_NO_WRITES)) ? &_IO_file_jumps_maybe_mmap :
|
||||
#endif
|
||||
&_IO_file_jumps;
|
||||
INTUSE(_IO_file_init) (&new_f->fp);
|
||||
_IO_file_init (&new_f->fp);
|
||||
#if !_IO_UNIFIED_JUMPTABLES
|
||||
new_f->fp.vtable = NULL;
|
||||
#endif
|
||||
if (INTUSE(_IO_file_attach) ((_IO_FILE *) &new_f->fp, fd) == NULL)
|
||||
if (_IO_file_attach ((_IO_FILE *) &new_f->fp, fd) == NULL)
|
||||
{
|
||||
INTUSE(_IO_setb) (&new_f->fp.file, NULL, NULL, 0);
|
||||
INTUSE(_IO_un_link) (&new_f->fp);
|
||||
_IO_setb (&new_f->fp.file, NULL, NULL, 0);
|
||||
_IO_un_link (&new_f->fp);
|
||||
free (new_f);
|
||||
return NULL;
|
||||
}
|
||||
@ -174,7 +173,7 @@ _IO_new_fdopen (fd, mode)
|
||||
|
||||
return &new_f->fp.file;
|
||||
}
|
||||
INTDEF2(_IO_new_fdopen, _IO_fdopen)
|
||||
libc_hidden_ver (_IO_new_fdopen, _IO_fdopen)
|
||||
|
||||
strong_alias (_IO_new_fdopen, __new_fdopen)
|
||||
versioned_symbol (libc, _IO_new_fdopen, _IO_fdopen, GLIBC_2_1);
|
||||
|
Reference in New Issue
Block a user