Project

General

Profile

Statistics
| Branch: | Revision:

scoutos / prex-0.9.0 / include / sys / errno.h @ 03e9c04a

History | View | Annotate | Download (3.94 KB)

1 03e9c04a Brad Neuman
/*
2
 * Copyright (c) 1982, 1986, 1989, 1993
3
 *        The Regents of the University of California.  All rights reserved.
4
 * (c) UNIX System Laboratories, Inc.
5
 * All or some portions of this file are derived from material licensed
6
 * to the University of California by American Telephone and Telegraph
7
 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8
 * the permission of UNIX System Laboratories, Inc.
9
 *
10
 * Redistribution and use in source and binary forms, with or without
11
 * modification, are permitted provided that the following conditions
12
 * are met:
13
 * 1. Redistributions of source code must retain the above copyright
14
 *    notice, this list of conditions and the following disclaimer.
15
 * 2. Redistributions in binary form must reproduce the above copyright
16
 *    notice, this list of conditions and the following disclaimer in the
17
 *    documentation and/or other materials provided with the distribution.
18
 * 3. Neither the name of the University nor the names of its contributors
19
 *    may be used to endorse or promote products derived from this software
20
 *    without specific prior written permission.
21
 *
22
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32
 * SUCH DAMAGE.
33
 *
34
 *        @(#)errno.h        8.5 (Berkeley) 1/21/94
35
 */
36
37
#ifndef _SYS_ERRNO_H_
38
#define _SYS_ERRNO_H_
39
40
#define        EPERM                1                /* Operation not permitted */
41
#define        ENOENT                2                /* No such file or directory */
42
#define        ESRCH                3                /* No such process */
43
#define        EINTR                4                /* Interrupted system call */
44
#define        EIO                5                /* Input/output error */
45
#define        ENXIO                6                /* Device not configured */
46
#define        E2BIG                7                /* Argument list too long */
47
#define        ENOEXEC                8                /* Exec format error */
48
#define        EBADF                9                /* Bad file descriptor */
49
#define        ECHILD                10                /* No child processes */
50
#define        EDEADLK                11                /* Resource deadlock avoided */
51
                                        /* 11 was EAGAIN */
52
#define        ENOMEM                12                /* Cannot allocate memory */
53
#define        EACCES                13                /* Permission denied */
54
#define        EFAULT                14                /* Bad address */
55
#define        ENOTBLK                15                /* Block device required */
56
#define        EBUSY                16                /* Device busy */
57
#define        EEXIST                17                /* File exists */
58
#define        EXDEV                18                /* Cross-device link */
59
#define        ENODEV                19                /* Operation not supported by device */
60
#define        ENOTDIR                20                /* Not a directory */
61
#define        EISDIR                21                /* Is a directory */
62
#define        EINVAL                22                /* Invalid argument */
63
#define        ENFILE                23                /* Too many open files in system */
64
#define        EMFILE                24                /* Too many open files */
65
#define        ENOTTY                25                /* Inappropriate ioctl for device */
66
#define        ETXTBSY                26                /* Text file busy */
67
#define        EFBIG                27                /* File too large */
68
#define        ENOSPC                28                /* No space left on device */
69
#define        ESPIPE                29                /* Illegal seek */
70
#define        EROFS                30                /* Read-only file system */
71
#define        EMLINK                31                /* Too many links */
72
#define        EPIPE                32                /* Broken pipe */
73
74
/* math software */
75
#define        EDOM                33                /* Numerical argument out of domain */
76
#define        ERANGE                34                /* Result too large */
77
78
/* non-blocking and interrupt i/o */
79
#define        EAGAIN                35                /* Resource temporarily unavailable */
80
#define        EWOULDBLOCK        EAGAIN                /* Operation would block */
81
82
#define        ETIMEDOUT        36                /* Operation timed out */
83
#define        ENAMETOOLONG        37                /* File name too long */
84
#define        ENOTEMPTY        38                /* Directory not empty */
85
86
/* quotas & mush */
87
#define        EPROCLIM        39                /* Too many processes */
88
#define        ENOSYS                40                /* Function not implemented */
89
90
#endif /* !_SYS_ERRNO_H_ */