summaryrefslogtreecommitdiffstats
path: root/src/lib9/fmt/fmtdef.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-14 18:03:05 -0500
committerRuss Cox <rsc@swtch.com>2020-01-14 18:04:00 -0500
commit9505cd15a64933bf58ec50548339cf98b1854646 (patch)
treee3f519f753b124a27780470cf483f9f4a550a9d9 /src/lib9/fmt/fmtdef.h
parentd28913a9e6609fef96f5baf6e9f4d5055ede744c (diff)
downloadplan9port-9505cd15a64933bf58ec50548339cf98b1854646.tar.gz
plan9port-9505cd15a64933bf58ec50548339cf98b1854646.zip
lib9: make formatting lock-free again
First use of <stdatomic.h>. We will see if any supported systems don't have it yet. (C11 was so last decade.) Fixes #338.
Diffstat (limited to 'src/lib9/fmt/fmtdef.h')
-rw-r--r--src/lib9/fmt/fmtdef.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib9/fmt/fmtdef.h b/src/lib9/fmt/fmtdef.h
index d547184d..2bafd36d 100644
--- a/src/lib9/fmt/fmtdef.h
+++ b/src/lib9/fmt/fmtdef.h
@@ -36,10 +36,8 @@ void * __fmtflush(Fmt *f, void *t, int len);
int __fmtpad(Fmt *f, int n);
double __fmtpow10(int n);
int __fmtrcpy(Fmt *f, const void *vm, int n);
-void __fmtrlock(void);
-void __fmtrunlock(void);
-void __fmtwlock(void);
-void __fmtwunlock(void);
+void __fmtlock(void);
+void __fmtunlock(void);
int __ifmt(Fmt *f);
int __isInf(double d, int sign);
int __isNaN(double d);