9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

fmtlock2.c (145B)


      1 #include <u.h>
      2 #include <libc.h>
      3 
      4 static Lock fmtlock;
      5 
      6 void
      7 __fmtlock(void)
      8 {
      9 	lock(&fmtlock);
     10 }
     11 
     12 void
     13 __fmtunlock(void)
     14 {
     15 	unlock(&fmtlock);
     16 }