/* 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 <errno.h>
#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←