mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
* libio/oldtmpfile.c: Use new macros from shlib-compat.h to define versions. * libio/iofdopen.c: Likewise. * libio/iofgetpos.c: Likewise. * libio/iofgetpos64.c: Likewise. * libio/iofopen.c: Likewise. * libio/iofsetpos.c: Likewise. * libio/iofsetpos64.c: Likewise. * libio/iopopen.c: Likewise. * libio/oldiofopen.c: Likewise. * libio/pclose.c: Likewise. * sysdeps/gnu/siglist.c: Likewise. * sysdeps/unix/sysv/linux/errlist.c: Likewise.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993, 1994, 1997, 1998, 1999 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993, 1994, 1997-1999, 2000 Free Software Foundation, Inc.
|
||||
This file is part of the GNU IO Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
@@ -24,11 +24,15 @@
|
||||
General Public License. */
|
||||
|
||||
#ifdef __STDC__
|
||||
#include <stdlib.h>
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
#include "libioP.h"
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef _LIBC
|
||||
# include <shlib-compat.h>
|
||||
#endif
|
||||
|
||||
#ifndef _IO_fcntl
|
||||
#ifdef _LIBC
|
||||
#define _IO_fcntl __fcntl
|
||||
@@ -79,7 +83,7 @@ _IO_new_fdopen (fd, mode)
|
||||
#endif
|
||||
if (fd_flags == -1)
|
||||
return NULL;
|
||||
|
||||
|
||||
if (((fd_flags & O_ACCMODE) == O_RDONLY && !(read_write & _IO_NO_WRITES))
|
||||
|| ((fd_flags & O_ACCMODE) == O_WRONLY && !(read_write & _IO_NO_READS)))
|
||||
{
|
||||
@@ -139,13 +143,6 @@ _IO_new_fdopen (fd, mode)
|
||||
return &new_f->fp.file;
|
||||
}
|
||||
|
||||
#if defined PIC && DO_VERSIONING
|
||||
strong_alias (_IO_new_fdopen, __new_fdopen)
|
||||
default_symbol_version (_IO_new_fdopen, _IO_fdopen, GLIBC_2.1);
|
||||
default_symbol_version (__new_fdopen, fdopen, GLIBC_2.1);
|
||||
#else
|
||||
# ifdef weak_alias
|
||||
weak_alias (_IO_new_fdopen, _IO_fdopen)
|
||||
weak_alias (_IO_new_fdopen, fdopen)
|
||||
# endif
|
||||
#endif
|
||||
versioned_symbol (libc, _IO_new_fdopen, _IO_fdopen, GLIBC_2_1);
|
||||
versioned_symbol (libc, __new_fdopen, fdopen, GLIBC_2_1);
|
||||
|
||||
Reference in New Issue
Block a user