conterm/libc/fmtlock.c

17 lines
136 B
C
Raw Permalink Normal View History

2006-01-17 16:57:18 +03:00
#include <u.h>
#include <libc.h>
static Lock fmtl;
2005-08-08 16:50:13 +04:00
void
2006-01-17 15:37:52 +03:00
__fmtlock(void)
2005-08-08 16:50:13 +04:00
{
2006-01-17 16:57:18 +03:00
lock(&fmtl);
2005-08-08 16:50:13 +04:00
}
void
2006-01-17 15:37:52 +03:00
__fmtunlock(void)
2005-08-08 16:50:13 +04:00
{
2006-01-17 16:57:18 +03:00
unlock(&fmtl);
2005-08-08 16:50:13 +04:00
}