summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/_flock_stub.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-02-16 06:11:22 +0000
committerimp <imp@FreeBSD.org>2001-02-16 06:11:22 +0000
commit51cffb6bac86b91ac5ec606a7c085d25242b8a7e (patch)
tree89de43324c841cd9d2a9fe23a5b1531d67fed290 /lib/libc/stdio/_flock_stub.c
parent778f80298c10621f10b64d201250c6fcb00793d8 (diff)
downloadFreeBSD-src-51cffb6bac86b91ac5ec606a7c085d25242b8a7e.zip
FreeBSD-src-51cffb6bac86b91ac5ec606a7c085d25242b8a7e.tar.gz
Fix the current libc breakage in current:
o Back out the __std* stuff. Can't figure out how to do this right now, so we'll save it for late. o use _up as a pointer for extra fields that we need to access. o back out the libc major version bump. Submitted by: green reviewed by: peter, imp, green, obrien (to varying degrees). We'll fix the "how do we stop encoding sizeof(FILE) in binaries" part later.
Diffstat (limited to 'lib/libc/stdio/_flock_stub.c')
-rw-r--r--lib/libc/stdio/_flock_stub.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libc/stdio/_flock_stub.c b/lib/libc/stdio/_flock_stub.c
index 8bea66d..a77fad9 100644
--- a/lib/libc/stdio/_flock_stub.c
+++ b/lib/libc/stdio/_flock_stub.c
@@ -68,6 +68,16 @@ struct __file_lock {
};
/*
+ * We need to retain binary compatibility for a while. So pretend
+ * that _lock is part of FILE * even though it is dereferenced off
+ * _extra now. When we stop encoding the size of FILE into binaries
+ * this can be changed in stdio.h. This will reduce the amount of
+ * code that has to change in the future (just remove this comment
+ * and #define).
+ */
+#define _lock _extra->_mtlock
+
+/*
* Allocate and initialize a file lock.
*/
static int
OpenPOWER on IntegriCloud