mirror of
https://github.com/encounter/newlib.git
synced 2026-03-30 11:31:09 -07:00
22 lines
409 B
C
22 lines
409 B
C
#include <config.h>
|
|
#include <_ansi.h>
|
|
#include <_syslist.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#ifndef REENTRANT_SYSCALLS_PROVIDED
|
|
#include <reent.h>
|
|
#endif
|
|
#include <errno.h>
|
|
#include <sys/lock.h>
|
|
|
|
void __flockfile(FILE *fp)
|
|
{
|
|
__lock_acquire_recursive(*(_LOCK_RECURSIVE_T*)&fp->_lock);
|
|
}
|
|
|
|
void __funlockfile(FILE *fp)
|
|
{
|
|
__lock_release_recursive(*(_LOCK_RECURSIVE_T*)&fp->_lock);
|
|
}
|