mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
* sysdeps/mach/sched_yield.c: New file.
2000-03-13 Roland McGrath <roland@baalperazim.frob.com> * sysdeps/generic/lockfile.c: Include <stdio.h> (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in case <libio.h> defined them. (__flockfile, __funlockfile, __ftrylockfile): Functions renamed from __internal_*. (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile, ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly. * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ... for more pleasing parse error. * elf/Makefile: Add rules to compile and run constload1 test.
This commit is contained in:
parent
1b67abbbfd
commit
da28fa2a44
19
ChangeLog
19
ChangeLog
@ -1,10 +1,27 @@
|
||||
2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
|
||||
|
||||
* sysdeps/mach/sched_yield.c: New file.
|
||||
|
||||
2000-03-13 Roland McGrath <roland@baalperazim.frob.com>
|
||||
|
||||
* sysdeps/generic/lockfile.c: Include <stdio.h>
|
||||
(_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
|
||||
case <libio.h> defined them.
|
||||
(__flockfile, __funlockfile, __ftrylockfile): Functions renamed
|
||||
from __internal_*.
|
||||
(flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
|
||||
ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
|
||||
|
||||
* sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
|
||||
for more pleasing parse error.
|
||||
|
||||
2000-03-16 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* locale/lc-time.c (_nl_init_era_entries): Correct allocation of
|
||||
memory for eras.
|
||||
Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
|
||||
|
||||
* elf/Makefile: Add rules to compile and rune constload1 test.
|
||||
* elf/Makefile: Add rules to compile and run constload1 test.
|
||||
* elf/constload1.c: New file.
|
||||
* elf/constload2.c: New file.
|
||||
* elf/constload3.c: New file.
|
||||
|
@ -25,7 +25,7 @@
|
||||
__libc_lock_define (typedef, _IO_lock_t)
|
||||
|
||||
/* We need recursive (counting) mutexes. */
|
||||
#define _IO_lock_initializer STUB_LOSER
|
||||
#define _IO_lock_initializer ...
|
||||
#error libio needs recursive mutexes for _IO_MTSAFE_IO
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
__libc_lock_define (typedef, _IO_lock_t)
|
||||
|
||||
/* We need recursive (counting) mutexes. */
|
||||
#define _IO_lock_initializer STUB_LOSER
|
||||
#define _IO_lock_initializer ...
|
||||
#error libio needs recursive mutexes for _IO_MTSAFE_IO
|
||||
|
||||
|
||||
|
31
sysdeps/mach/sched_yield.c
Normal file
31
sysdeps/mach/sched_yield.c
Normal file
@ -0,0 +1,31 @@
|
||||
/* sched_yield -- yield the processor. Mach version.
|
||||
Copyright (C) 2000 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
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <errno.h>
|
||||
#include <sched.h>
|
||||
#include <mach.h>
|
||||
|
||||
/* Yield the processor. */
|
||||
int
|
||||
__sched_yield (void)
|
||||
{
|
||||
(void) __swtch ();
|
||||
return 0;
|
||||
}
|
||||
weak_alias (__sched_yield, sched_yield)
|
Loading…
Reference in New Issue
Block a user