public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] __sched_yield libc_hidden_def
@ 2006-02-23 13:56 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2006-02-23 13:56 UTC (permalink / raw)
  To: Roland McGrath; +Cc: Glibc hackers

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  <jakub@redhat.com>

	* 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 <stub-tag.h>
--- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-23 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23 13:56 [PATCH] __sched_yield libc_hidden_def Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).