2 * Wine library reentrant errno support
4 * Copyright 1998 Alexandre Julliard
7 /* Get pointers to the static errno and h_errno variables used by Xlib. This
8 must be done before including <errno.h> makes the variables invisible. */
9 static int *default_errno_location(void)
15 static int *default_h_errno_location(void)
21 int* (*wine_errno_location
)(void) = default_errno_location
;
22 int* (*wine_h_errno_location
)(void) = default_h_errno_location
;
26 /***********************************************************************
27 * __errno_location/__error/___errno
29 * Get the per-thread errno location.
32 int *ERRNO_LOCATION(void)
34 return wine_errno_location();
36 #endif /* ERRNO_LOCATION */
38 /***********************************************************************
41 * Get the per-thread h_errno location.
43 int *__h_errno_location(void)
45 return wine_h_errno_location();