mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Thread-secure stdio.
This commit is contained in:
parent
e1db06c1c9
commit
1ddd404ff9
83 changed files with 1685 additions and 417 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -26,5 +26,8 @@
|
|||
|
||||
extern "C" int getc(FILE* fp)
|
||||
{
|
||||
return fgetc(fp);
|
||||
flockfile(fp);
|
||||
int ret = getc_unlocked(fp);
|
||||
funlockfile(fp);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue