This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |