From: Roland McGrath Date: Mon, 11 Mar 2002 21:27:12 +0000 (+0000) Subject: 2002-03-11 Roland McGrath X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff31f6640e0d2e42fbf414a957518643bf23e3d9;p=thirdparty%2Fglibc.git 2002-03-11 Roland McGrath * hurd/hurd/threadvar.h: Include for __THROW macro. 2002-02-23 Roland McGrath * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to declaration. (__hurd_errno_location): Function removed. --- diff --git a/hurd/hurd/threadvar.h b/hurd/hurd/threadvar.h index c4ccf134d1f..1c888c80157 100644 --- a/hurd/hurd/threadvar.h +++ b/hurd/hurd/threadvar.h @@ -1,5 +1,5 @@ /* Internal per-thread variables for the Hurd. - Copyright (C) 1994,95,97,98,99,2001 Free Software Foundation, Inc. + Copyright (C) 1994,95,97,98,99,2001,02 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,6 +20,8 @@ #ifndef _HURD_THREADVAR_H #define _HURD_THREADVAR_H +#include + /* The per-thread variables are found by ANDing this mask with the value of the stack pointer and then adding this offset. @@ -94,7 +96,7 @@ __hurd_threadvar_location_from_sp (enum __hurd_threadvar_index __index, per-thread variable with index INDEX. */ extern unsigned long int * -__hurd_threadvar_location (enum __hurd_threadvar_index __index) +__hurd_threadvar_location (enum __hurd_threadvar_index __index) __THROW /* This declaration tells the compiler that the value is constant given the same argument. We assume this won't be called twice from the same stack frame by different threads. */ @@ -107,14 +109,5 @@ __hurd_threadvar_location (enum __hurd_threadvar_index __index) __thread_stack_pointer ()); } -/* Return the current thread's location for `errno'. - The syntax of this function allows redeclarations like `int errno'. */ -extern int *__hurd_errno_location (void); - -_HURD_THREADVAR_H_EXTERN_INLINE int * -__hurd_errno_location (void) -{ - return (int *) __hurd_threadvar_location (_HURD_THREADVAR_ERRNO); -} #endif /* hurd/threadvar.h */