aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/fmt/fmtdef.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-13 11:41:37 -0500
committerRuss Cox <rsc@swtch.com>2020-01-13 11:42:24 -0500
commit7ba9f9467d95fa8d05bb04d36fd4c602e497f529 (patch)
tree54f201e17fcc92cc2ccf2bfa3177e6d9bb5f8c6d /src/lib9/fmt/fmtdef.h
parentd96e9e5dc39a356febed132703e46bf73bac6850 (diff)
downloadplan9port-7ba9f9467d95fa8d05bb04d36fd4c602e497f529.tar.gz
plan9port-7ba9f9467d95fa8d05bb04d36fd4c602e497f529.tar.bz2
plan9port-7ba9f9467d95fa8d05bb04d36fd4c602e497f529.zip
lib9/fmt: avoid racy access to installed fmt formats
Diffstat (limited to 'src/lib9/fmt/fmtdef.h')
-rw-r--r--src/lib9/fmt/fmtdef.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib9/fmt/fmtdef.h b/src/lib9/fmt/fmtdef.h
index 5c8eb2cb..d547184d 100644
--- a/src/lib9/fmt/fmtdef.h
+++ b/src/lib9/fmt/fmtdef.h
@@ -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);