From 51cffb6bac86b91ac5ec606a7c085d25242b8a7e Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 16 Feb 2001 06:11:22 +0000 Subject: 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. --- lib/libc/stdio/_flock_stub.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/libc/stdio/_flock_stub.c') 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 -- cgit v1.1