* hurd/hurd/threadvar.h: Add prototype for __hurd_errno_location.

2001-06-10  Mark Kettenis  <kettenis@gnu.org>

	* hurd/hurd/threadvar.h: Add prototype for __hurd_errno_location.
This commit is contained in:
Mark Kettenis 2001-06-10 21:05:36 +00:00
parent e10a9ebaa6
commit fecb794f59
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-06-10 Mark Kettenis <kettenis@gnu.org>
* hurd/hurd/threadvar.h: Add prototype for __hurd_errno_location.
2001-06-08 Andreas Schwab <schwab@suse.de>
* posix/regex.c (re_match_2_internal) [case wordbeg, wordend]:

View File

@ -109,11 +109,12 @@ __hurd_threadvar_location (enum __hurd_threadvar_index __index)
/* 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 */