| * Wine library reentrant errno support |
| * Copyright 1998 Alexandre Julliard |
| /* Get pointers to the static errno and h_errno variables used by Xlib. This |
| must be done before including <errno.h> makes the variables invisible. */ |
| static int *default_errno_location(void) |
| static int *default_h_errno_location(void) |
| int* (*wine_errno_location)(void) = default_errno_location; |
| int* (*wine_h_errno_location)(void) = default_h_errno_location; |
| /*********************************************************************** |
| * __errno_location/__error/___errno |
| * Get the per-thread errno location. |
| int *ERRNO_LOCATION(void) |
| return wine_errno_location(); |
| #endif /* ERRNO_LOCATION */ |
| /*********************************************************************** |
| * Get the per-thread h_errno location. |
| int *__h_errno_location(void) |
| return wine_h_errno_location(); |