This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/h/errno.h

104 lines
3.2 KiB
C
Raw Permalink Normal View History

/*
* errno.h/cerrno Error numbers
*
* =========================================================================
*
* Open Watcom Project
*
* Copyright (c) 2002-2010 Open Watcom Contributors. All Rights Reserved.
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* This file is automatically generated. Do not edit directly.
*
* =========================================================================
*/
#ifndef _ERRNO_H_INCLUDED
#define _ERRNO_H_INCLUDED
#ifndef _ENABLE_AUTODEPEND
#pragma read_only_file;
#endif
#ifndef _COMDEF_H_INCLUDED
#include <_comdef.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _ERRNO_DEFINED
#define _ERRNO_DEFINED
#ifndef errno
_WCRTLINK extern int *__get_errno_ptr( void );
#define errno (*__get_errno_ptr())
#else
_WCRTDATA extern int errno;
#endif
#endif
#if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ == 1
#ifndef _ERRNO_T_DEFINED
#define _ERRNO_T_DEFINED
typedef int errno_t;
#endif
#endif /* Safer C Library */
/*
* Error codes
*/
#define EZERO 0 /* No error */
#define ENOENT 1 /* No such file or directory */
#define E2BIG 2 /* Arg list too big */
#define ENOEXEC 3 /* Exec format error */
#define EBADF 4 /* Bad file number */
#define ENOMEM 5 /* Not enough memory */
#define EACCES 6 /* Permission denied */
#define EEXIST 7 /* File exists */
#define EXDEV 8 /* Cross-device link */
#define EINVAL 9 /* Invalid argument */
#define ENFILE 10 /* File table overflow */
#define EMFILE 11 /* Too many open files */
#define ENOSPC 12 /* No space left on device */
/* math errors */
#define EDOM 13 /* Argument too large */
#define ERANGE 14 /* Result too large */
/* file locking error */
#define EDEADLK 15 /* Resource deadlock would occur */
#define EDEADLOCK 15 /* ... */
#define EINTR 16 /* System call interrupted */
#define ECHILD 17 /* Child does not exist */
/* POSIX errors */
#define EAGAIN 18 /* Resource unavailable, try again */
#define EBUSY 19 /* Device or resource busy */
#define EFBIG 20 /* File too large */
#define EIO 21 /* I/O error */
#define EISDIR 22 /* Is a directory */
#define ENOTDIR 23 /* Not a directory */
#define EMLINK 24 /* Too many links */
#define ENOTBLK 25 /* Block device required */
#define ENOTTY 26 /* Not a character device */
#define ENXIO 27 /* No such device or address */
#define EPERM 28 /* Not owner */
#define EPIPE 29 /* Broken pipe */
#define EROFS 30 /* Read-only file system */
#define ESPIPE 31 /* Illegal seek */
#define ESRCH 32 /* No such process */
#define ETXTBSY 33 /* Text file busy */
#define EFAULT 34 /* Bad address */
#define ENAMETOOLONG 35 /* Filename too long */
#define ENODEV 36 /* No such device */
#define ENOLCK 37 /* No locks available in system */
#define ENOSYS 38 /* Unknown system call */
#define ENOTEMPTY 39 /* Directory not empty */
/* additional Standard C error */
#define EILSEQ 40 /* Illegal multibyte sequence */
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif