From 79acdfbd39f0127e25ba7aad63839b6455171e08 Mon Sep 17 00:00:00 2001 From: Marco S Hyman Date: Tue, 13 Jul 2004 21:03:40 +0000 Subject: errno changes, lib major version bumps, and general flag day To build you must: cd /usr/src && make obj && make includes cd lib/libc && make depend && make && NOMAN=1 sudo make install cd /usr/src && make build --- lib/libc/gen/errno.c | 19 ++++++++++++++++++- lib/libc/shlib_version | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/errno.c b/lib/libc/gen/errno.c index e6560942c1a..3c14afbe3c3 100644 --- a/lib/libc/gen/errno.c +++ b/lib/libc/gen/errno.c @@ -1,5 +1,22 @@ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: errno.c,v 1.2 1996/08/19 08:22:34 tholo Exp $"; +static char rcsid[] = "$OpenBSD: errno.c,v 1.3 2004/07/13 21:03:35 marc Exp $"; #endif /* LIBC_SCCS and not lint */ +#include +#undef errno + +/* + * global errno for unthreaded programs. + */ int errno; + +/* + * weak version of function used by unthreaded programs. + */ +int * +___errno(void) +{ + return &errno; +} + +__weak_alias(__errno, ___errno); diff --git a/lib/libc/shlib_version b/lib/libc/shlib_version index a6a346fe782..c3b79bfdab3 100644 --- a/lib/libc/shlib_version +++ b/lib/libc/shlib_version @@ -1,4 +1,4 @@ -major=33 +major=34 minor=0 # note: If changes were made to include/thread_private.h or if system # calls were added/changed then libpthread must also be updated. -- cgit v1.2.3