Files
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

27 lines
503 B
C
Executable File

/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "@(#)errno.c 1.2 91/02/07 SMI" /* SVr4.0 1.3 */
#include <thread.h>
#include <synch.h>
#include <mtlib.h>
#undef errno
int *
___errno()
{
extern int errno;
extern int *_thr_errnop();
if (_thr_main())
return (&errno);
else
return (_thr_errnop());
}