This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.16-ports-merge-404-g28c195f
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 28 Sep 2012 22:07:28 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.16-ports-merge-404-g28c195f
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 28c195f756b734ee92eed9463e440e6bcb85313e (commit)
from 848917f9ee60e08638c67bcb590ed4b4c4186b0b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=28c195f756b734ee92eed9463e440e6bcb85313e
commit 28c195f756b734ee92eed9463e440e6bcb85313e
Author: Roland McGrath <roland@hack.frob.com>
Date: Fri Sep 28 15:04:26 2012 -0700
Fix stub open.c to define __libc_open.
diff --git a/ChangeLog b/ChangeLog
index fa7d734..a41982d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
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).
* nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
diff --git a/io/open.c b/io/open.c
index 0916b1e..b691120 100644
--- a/io/open.c
+++ b/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.
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,
a third argument is the file protection. */
int
-__open (file, oflag)
+__libc_open (file, oflag)
const char *file;
int oflag;
{
@@ -49,10 +50,12 @@ __open (file, oflag)
__set_errno (ENOSYS);
return -1;
}
-libc_hidden_def (__open)
-stub_warning (open)
+libc_hidden_def (__libc_open)
+weak_alias (__libc_open, __open)
+libc_hidden_weak (__open)
+weak_alias (__libc_open, open)
-weak_alias (__open, open)
+stub_warning (open)
int
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 2 ++
io/open.c | 13 ++++++++-----
2 files changed, 10 insertions(+), 5 deletions(-)
hooks/post-receive
--
GNU C Library master sources