/* begincopyright Copyright (c) 1988 Xerox Corporation. All rights reserved. Use and copying of this software and preparation of derivative works based upon this software are permitted. Any distribution of this software or derivative works must comply with all applicable United States export control laws. This software is made available AS IS, and Xerox Corporation makes no warranty about the software, its performance or its conformity to any specification. Any person obtaining a copy of this software is requested to send their name and post office or electronic mail address to: PCR Coordinator Xerox PARC 3333 Coyote Hill Rd. Palo Alto, CA 94304 endcopyright */ /* * Errno.h * * Extensions to Unix error number definitions. * * Demers, July 12, 1990 8:36:53 pm PDT */ #ifndef _XR_ERRNO_ #define _XR_ERRNO_ #ifndef EPERM # include #endif /* * errno values private to XR processes package */ #define XR_EABORTED 1024 /* * utilities to get/set per-thread errno value */ extern int * (XR_GetErrnoAddress(/* */)); /* Get address of per-thread errno value. */ #define XR_errno (*(XR_GetErrnoAddress())) #define XR_GetErrno() XR_errno #define XR_SetErrno(x) ( XR_errno = (x)) #endif _XR_ERRNO_