From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11956 invoked by alias); 23 Feb 2006 13:56:47 -0000 Received: (qmail 11940 invoked by uid 22791); 23 Feb 2006 13:56:47 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 23 Feb 2006 13:56:45 +0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id k1NDuW6T011619; Thu, 23 Feb 2006 14:56:32 +0100 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id k1NDuWLE011618; Thu, 23 Feb 2006 14:56:32 +0100 Date: Thu, 23 Feb 2006 13:56:00 -0000 From: Jakub Jelinek To: Roland McGrath Cc: Glibc hackers Subject: [PATCH] __sched_yield libc_hidden_def Message-ID: <20060223135632.GA30252@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00030.txt.bz2 Hi! Ulrich added libc_hidden_proto to __sched_yield last month. While that works when __sched_yield is provided by syscalls.list (as in that case __GI___sched_yield is provided automatically), when it is implemented in C, we need to mark it. 2006-02-23 Jakub Jelinek * posix/sched_yield.c (__sched_yield): Add libc_hidden_def. * sysdeps/mach/sched_yield.c (__sched_yield): Likewise. --- libc/posix/sched_yield.c.jj 2005-12-14 11:39:15.000000000 +0100 +++ libc/posix/sched_yield.c 2006-02-23 14:48:34.000000000 +0100 @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 2006 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 @@ -28,6 +28,7 @@ __sched_yield (void) return -1; } stub_warning (sched_yield) +libc_hidden_def (__sched_yield) weak_alias (__sched_yield, sched_yield) #include --- libc/sysdeps/mach/sched_yield.c.jj 2001-07-06 06:55:56.000000000 +0200 +++ libc/sysdeps/mach/sched_yield.c 2006-02-23 14:49:07.000000000 +0100 @@ -1,5 +1,5 @@ /* sched_yield -- yield the processor. Mach version. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2006 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 @@ -28,4 +28,5 @@ __sched_yield (void) (void) __swtch (); return 0; } +libc_hidden_def (__sched_yield) weak_alias (__sched_yield, sched_yield) Jakub