mirror of git://sourceware.org/git/glibc.git
Fix stub open.c to define __libc_open.
This commit is contained in:
parent
848917f9ee
commit
28c195f756
|
@ -1,5 +1,7 @@
|
||||||
2012-09-28 Roland McGrath <roland@hack.frob.com>
|
2012-09-28 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* io/open.c (__open): Renamed to __libc_open. Make __open an alias.
|
||||||
|
|
||||||
* posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
|
* posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
|
||||||
|
|
||||||
* nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
|
* nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
|
||||||
|
|
13
io/open.c
13
io/open.c
|
@ -1,4 +1,5 @@
|
||||||
/* Copyright (C) 1991,1995,1996,1997,2002,2007 Free Software Foundation, Inc.
|
/* Open a file by name. Stub version.
|
||||||
|
Copyright (C) 1991-2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -26,7 +27,7 @@ extern char **__libc_argv attribute_hidden;
|
||||||
/* Open FILE with access OFLAG. If OFLAG includes O_CREAT,
|
/* Open FILE with access OFLAG. If OFLAG includes O_CREAT,
|
||||||
a third argument is the file protection. */
|
a third argument is the file protection. */
|
||||||
int
|
int
|
||||||
__open (file, oflag)
|
__libc_open (file, oflag)
|
||||||
const char *file;
|
const char *file;
|
||||||
int oflag;
|
int oflag;
|
||||||
{
|
{
|
||||||
|
@ -49,10 +50,12 @@ __open (file, oflag)
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
libc_hidden_def (__open)
|
libc_hidden_def (__libc_open)
|
||||||
stub_warning (open)
|
weak_alias (__libc_open, __open)
|
||||||
|
libc_hidden_weak (__open)
|
||||||
|
weak_alias (__libc_open, open)
|
||||||
|
|
||||||
weak_alias (__open, open)
|
stub_warning (open)
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue