1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2013-09-01 01:42:02 +02:00
parent e1db06c1c9
commit 1ddd404ff9
83 changed files with 1685 additions and 417 deletions

View file

@ -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;
}