9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e427154bf1c1c9bc9ed86f1366f60d5565c1bbfa
parent a7b2bad255fadede36a068ffe7a6dca15ac78f9f
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Thu,  8 Nov 2018 14:58:52 +0000

[libc] Generate errno.lst for dragonfly

Change-Id: Ie1a23db2f6341f4f5561c5bc48d9fe1c3e0ff88a
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>

Diffstat:
Dinclude/bits/dragonfly/sys/errno.h | 98-------------------------------------------------------------------------------
Msrc/libc/arch/amd64/dragonfly/Makefile | 14++++++++------
Asrc/libc/arch/amd64/dragonfly/errno.lst | 100+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 108 insertions(+), 104 deletions(-)

diff --git a/include/bits/dragonfly/sys/errno.h b/include/bits/dragonfly/sys/errno.h @@ -1,98 +0,0 @@ -#define EWOULDBLOCK EAGAIN -#define EPERM 1 -#define ENOENT 2 -#define ESRCH 3 -#define EINTR 4 -#define EIO 5 -#define ENXIO 6 -#define E2BIG 7 -#define ENOEXEC 8 -#define EBADF 9 -#define ECHILD 10 -#define EDEADLK 11 -#define ENOMEM 12 -#define EACCES 13 -#define EFAULT 14 -#define ENOTBLK 15 -#define EBUSY 16 -#define EEXIST 17 -#define EXDEV 18 -#define ENODEV 19 -#define ENOTDIR 20 -#define EISDIR 21 -#define EINVAL 22 -#define ENFILE 23 -#define EMFILE 24 -#define ENOTTY 25 -#define ETXTBSY 26 -#define EFBIG 27 -#define ENOSPC 28 -#define ESPIPE 29 -#define EROFS 30 -#define EMLINK 31 -#define EPIPE 32 -#define EDOM 33 -#define ERANGE 34 -#define EAGAIN 35 -#define EINPROGRESS 36 -#define EALREADY 37 -#define ENOTSOCK 38 -#define EDESTADDRREQ 39 -#define EMSGSIZE 40 -#define EPROTOTYPE 41 -#define ENOPROTOOPT 42 -#define EPROTONOSUPPORT 43 -#define ESOCKTNOSUPPORT 44 -#define EOPNOTSUPP 45 -#define EPFNOSUPPORT 46 -#define EAFNOSUPPORT 47 -#define EADDRINUSE 48 -#define EADDRNOTAVAIL 49 -#define ENETDOWN 50 -#define ENETUNREACH 51 -#define ENETRESET 52 -#define ECONNABORTED 53 -#define ECONNRESET 54 -#define ENOBUFS 55 -#define EISCONN 56 -#define ENOTCONN 57 -#define ESHUTDOWN 58 -#define ETOOMANYREFS 59 -#define ETIMEDOUT 60 -#define ECONNREFUSED 61 -#define ELOOP 62 -#define ENAMETOOLONG 63 -#define EHOSTDOWN 64 -#define EHOSTUNREACH 65 -#define ENOTEMPTY 66 -#define EPROCLIM 67 -#define EUSERS 68 -#define EDQUOT 69 -#define ESTALE 70 -#define EREMOTE 71 -#define EBADRPC 72 -#define ERPCMISMATCH 73 -#define EPROGUNAVAIL 74 -#define EPROGMISMATCH 75 -#define EPROCUNAVAIL 76 -#define ENOLCK 77 -#define ENOSYS 78 -#define EFTYPE 79 -#define EAUTH 80 -#define ENEEDAUTH 81 -#define EIDRM 82 -#define ENOMSG 83 -#define EOVERFLOW 84 -#define EILSEQ 85 -#define ENOTSUP 86 -#define ECANCELED 87 -#define EBADMSG 88 -#define ENODATA 89 -#define ENOSR 90 -#define ENOSTR 91 -#define ETIME 92 -#define ENOATTR 93 -#define EMULTIHOP 94 -#define ENOLINK 95 -#define ELAST 96 -#define EPROTO 96 diff --git a/src/libc/arch/amd64/dragonfly/Makefile b/src/libc/arch/amd64/dragonfly/Makefile @@ -1,6 +1,7 @@ .POSIX: PROJECTDIR =../../../../.. include $(PROJECTDIR)/scripts/rules.mk +include ../../rules.mk OBJS = _Exit.o \ _close.o \ @@ -13,11 +14,12 @@ OBJS = _Exit.o \ _brk.o \ _getheap.o \ _sigaction.o\ - _tzone.o\ - getenv.o\ - raise.o\ - signal.o\ - time.o\ + _tzone.o \ + getenv.o \ + raise.o \ + signal.o \ + time.o \ + _sys_errlist.o \ all: syscall $(MAKE) objs @@ -30,4 +32,4 @@ syscall: syscall.lst clean: rm -f `awk '/[0-9]* _/ {print $$2".s"}' syscall.lst` - rm -f syscall + rm -f syscall _sys_errlist.c diff --git a/src/libc/arch/amd64/dragonfly/errno.lst b/src/libc/arch/amd64/dragonfly/errno.lst @@ -0,0 +1,100 @@ +EPERM 1 Operation not permitted +ENOENT 2 No such file or directory +ESRCH 3 No such process +EINTR 4 Interrupted system call +EIO 5 Input/output error +ENXIO 6 Device not configured +E2BIG 7 Argument list too long +ENOEXEC 8 Exec format error +EBADF 9 Bad file descriptor +ECHILD 10 No child processes +EDEADLK 11 Resource deadlock avoided +ENOMEM 12 Cannot allocate memory +EACCES 13 Permission denied +EFAULT 14 Bad address +ENOTBLK 15 Block device required +EBUSY 16 Device busy +EEXIST 17 File exists +EXDEV 18 Cross-device link +ENODEV 19 Operation not supported by device +ENOTDIR 20 Not a directory +EISDIR 21 Is a directory +EINVAL 22 Invalid argument +ENFILE 23 Too many open files in system +EMFILE 24 Too many open files +ENOTTY 25 Inappropriate ioctl for device +ETXTBSY 26 Text file busy +EFBIG 27 File too large +ENOSPC 28 No space left on device +ESPIPE 29 Illegal seek +EROFS 30 Read-only filesystem +EMLINK 31 Too many links +EPIPE 32 Broken pipe +EDOM 33 Numerical argument out of domain +ERANGE 34 Result too large +EAGAIN 35 Resource temporarily unavailable +EINPROGRESS 36 Operation now in progress +EALREADY 37 Operation already in progress +ENOTSOCK 38 Socket operation on non-socket +EDESTADDRREQ 39 Destination address required +EMSGSIZE 40 Message too long +EPROTOTYPE 41 Protocol wrong type for socket +ENOPROTOOPT 42 Protocol not available +EPROTONOSUPPORT 43 Protocol not supported +ESOCKTNOSUPPORT 44 Socket type not supported +EOPNOTSUPP 45 Operation not supported +EPFNOSUPPORT 46 Protocol family not supported +EAFNOSUPPORT 47 Address family not supported by protocol family +EADDRINUSE 48 Address already in use +EADDRNOTAVAIL 49 Can't assign requested address +ENETDOWN 50 Network is down +ENETUNREACH 51 Network is unreachable +ENETRESET 52 Network dropped connection on reset +ECONNABORTED 53 Software caused connection abort +ECONNRESET 54 Connection reset by peer +ENOBUFS 55 No buffer space available +EISCONN 56 Socket is already connected +ENOTCONN 57 Socket is not connected +ESHUTDOWN 58 Can't send after socket shutdown +ETOOMANYREFS 59 Too many references: can't splice +ETIMEDOUT 60 Operation timed out +ECONNREFUSED 61 Connection refused +ELOOP 62 Too many levels of symbolic links +ENAMETOOLONG 63 File name too long +EHOSTDOWN 64 Host is down +EHOSTUNREACH 65 No route to host +ENOTEMPTY 66 Directory not empty +EPROCLIM 67 Too many processes +EUSERS 68 Too many users +EDQUOT 69 Disc quota exceeded +ESTALE 70 Stale NFS file handle +EREMOTE 71 Too many levels of remote in path +EBADRPC 72 RPC struct is bad +ERPCMISMATCH 73 RPC version wrong +EPROGUNAVAIL 74 RPC prog. not avail +EPROGMISMATCH 75 Program version wrong +EPROCUNAVAIL 76 Bad procedure for program +ENOLCK 77 No locks available +ENOSYS 78 Function not implemented +EFTYPE 79 Inappropriate file type or format +EAUTH 80 Authentication error +ENEEDAUTH 81 Need authenticator +EIDRM 82 Identifier removed +ENOMSG 83 No message of desired type +EOVERFLOW 84 Value too large to be stored in data type +ECANCELED 85 Operation canceled +EILSEQ 86 Illegal byte sequence +ENOATTR 87 Attribute not found +EDOOFUS 88 Programming error +EBADMSG 89 Bad message +EMULTIHOP 90 Multihop attempted +ENOLINK 91 Link has been severed +EPROTO 92 Protocol error +ENOMEDIUM 93 linux +EUNUSED94 94 +EUNUSED95 95 +EUNUSED96 96 +EUNUSED97 97 +EUNUSED98 98 +EASYNC 99 XXX +ELAST 99 Must be equal largest errno