1997-01-31 12:15:11 -04:00
|
|
|
/***********************************************************
|
|
|
|
Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
|
|
|
|
The Netherlands.
|
|
|
|
|
|
|
|
All Rights Reserved
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and distribute this software and its
|
|
|
|
documentation for any purpose and without fee is hereby granted,
|
|
|
|
provided that the above copyright notice appear in all copies and that
|
|
|
|
both that copyright notice and this permission notice appear in
|
|
|
|
supporting documentation, and that the names of Stichting Mathematisch
|
|
|
|
Centrum or CWI or Corporation for National Research Initiatives or
|
|
|
|
CNRI not be used in advertising or publicity pertaining to
|
|
|
|
distribution of the software without specific, written prior
|
|
|
|
permission.
|
|
|
|
|
|
|
|
While CWI is the initial source for this software, a modified version
|
|
|
|
is made available by the Corporation for National Research Initiatives
|
|
|
|
(CNRI) at the Internet address ftp://ftp.python.org.
|
|
|
|
|
|
|
|
STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
|
|
|
|
REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
|
|
|
|
CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
|
|
|
|
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
|
|
|
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
|
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
|
|
|
******************************************************************/
|
1995-01-18 09:41:47 -04:00
|
|
|
|
2000-06-02 18:18:09 -03:00
|
|
|
/*
|
|
|
|
** There are various sources of unix-like error numbers: GUSI headers,
|
|
|
|
** MSL headers and Carbon-specific MSL headers. The later are triggered,
|
|
|
|
** apparently, by the _POSIX define.
|
|
|
|
*/
|
2000-04-07 06:10:49 -03:00
|
|
|
#ifndef USE_GUSI2
|
1995-01-18 09:41:47 -04:00
|
|
|
#define ENOTDIR (-120)
|
1997-04-08 12:28:05 -03:00
|
|
|
#ifndef __MSL__
|
1995-01-18 09:41:47 -04:00
|
|
|
#define EACCES (-54)
|
1997-04-08 12:28:05 -03:00
|
|
|
#endif
|
2000-06-02 18:18:09 -03:00
|
|
|
#ifndef _POSIX
|
1995-01-18 09:41:47 -04:00
|
|
|
#define EEXIST (-48)
|
|
|
|
#define ENOENT (-43)
|
|
|
|
#define ENFILE (-42)
|
|
|
|
#define ENOSPC (-34)
|
2000-06-02 18:18:09 -03:00
|
|
|
#define EIO (-36)
|
|
|
|
#endif
|
|
|
|
#define EBUSY (-47)
|
|
|
|
#define EROFS (-44)
|
2000-04-07 06:10:49 -03:00
|
|
|
#endif
|
1995-01-18 09:41:47 -04:00
|
|
|
|
2000-08-25 19:00:22 -03:00
|
|
|
#ifndef USE_GUSI2
|
1995-01-18 09:41:47 -04:00
|
|
|
#define ESRCH 3
|
|
|
|
#define EINTR 4
|
|
|
|
#define ENODEV 19
|
2000-08-25 19:00:22 -03:00
|
|
|
#endif
|
2000-06-02 18:18:09 -03:00
|
|
|
#ifndef _POSIX
|
|
|
|
#define EBADF 9
|
1995-01-18 09:41:47 -04:00
|
|
|
#define EINVAL 22
|
|
|
|
#define EMFILE 24
|
2000-06-02 18:18:09 -03:00
|
|
|
#endif
|
1995-01-18 09:41:47 -04:00
|
|
|
|