lib9/fmt: avoid racy access to installed fmt formats

This commit is contained in:
Russ Cox 2020-01-13 11:41:37 -05:00
parent d96e9e5dc3
commit 7ba9f9467d
4 changed files with 55 additions and 22 deletions

View file

@ -33,11 +33,13 @@ int __fmtFdFlush(Fmt *f);
int __fmtcpy(Fmt *f, const void *vm, int n, int sz);
void* __fmtdispatch(Fmt *f, void *fmt, int isrunes);
void * __fmtflush(Fmt *f, void *t, int len);
void __fmtlock(void);
int __fmtpad(Fmt *f, int n);
double __fmtpow10(int n);
int __fmtrcpy(Fmt *f, const void *vm, int n);
void __fmtunlock(void);
void __fmtrlock(void);
void __fmtrunlock(void);
void __fmtwlock(void);
void __fmtwunlock(void);
int __ifmt(Fmt *f);
int __isInf(double d, int sign);
int __isNaN(double d);