@@ -59,6 +59,14 @@ else version (FreeBSD)
5959 alias errno = __error;
6060 }
6161}
62+ else version (DragonFlyBSD )
63+ {
64+ extern (C )
65+ {
66+ ref int __error1 ();
67+ alias errno = __error1;
68+ }
69+ }
6270else version (CRuntime_Bionic )
6371{
6472 extern (C )
@@ -1822,6 +1830,109 @@ else version( OpenBSD )
18221830 enum ENOTSUP = 91 ; // / Not supported
18231831 enum ELAST = 91 ; // / Must be equal largest errno
18241832}
1833+ else version ( DragonFlyBSD )
1834+ {
1835+ enum EPERM = 1 ; // / Operation not permitted
1836+ enum ENOENT = 2 ; // / No such file or directory
1837+ enum ESRCH = 3 ; // / No such process
1838+ enum EINTR = 4 ; // / Interrupted system call
1839+ enum EIO = 5 ; // / Input/output error
1840+ enum ENXIO = 6 ; // / Device not configured
1841+ enum E2BIG = 7 ; // / Argument list too long
1842+ enum ENOEXEC = 8 ; // / Exec format error
1843+ enum EBADF = 9 ; // / Bad file descriptor
1844+ enum ECHILD = 10 ; // / No child processes
1845+ enum EDEADLK = 11 ; // / Resource deadlock avoided
1846+ enum ENOMEM = 12 ; // / Cannot allocate memory
1847+ enum EACCES = 13 ; // / Permission denied
1848+ enum EFAULT = 14 ; // / Bad address
1849+ enum ENOTBLK = 15 ; // / Block device required
1850+ enum EBUSY = 16 ; // / Device busy
1851+ enum EEXIST = 17 ; // / File exists
1852+ enum EXDEV = 18 ; // / Cross-device link
1853+ enum ENODEV = 19 ; // / Operation not supported by device
1854+ enum ENOTDIR = 20 ; // / Not a directory
1855+ enum EISDIR = 21 ; // / Is a directory
1856+ enum EINVAL = 22 ; // / Invalid argument
1857+ enum ENFILE = 23 ; // / Too many open files in system
1858+ enum EMFILE = 24 ; // / Too many open files
1859+ enum ENOTTY = 25 ; // / Inappropriate ioctl for device
1860+ enum ETXTBSY = 26 ; // / Text file busy
1861+ enum EFBIG = 27 ; // / File too large
1862+ enum ENOSPC = 28 ; // / No space left on device
1863+ enum ESPIPE = 29 ; // / Illegal seek
1864+ enum EROFS = 30 ; // / Read-only file system
1865+ enum EMLINK = 31 ; // / Too many links
1866+ enum EPIPE = 32 ; // / Broken pipe
1867+ enum EDOM = 33 ; // / Numerical argument out of domain
1868+ enum ERANGE = 34 ; // / Result too large
1869+ enum EAGAIN = 35 ; // / Resource temporarily unavailable
1870+ enum EWOULDBLOCK = EAGAIN ; // / Operation would block
1871+ enum EINPROGRESS = 36 ; // / Operation now in progress
1872+ enum EALREADY = 37 ; // / Operation already in progress
1873+ enum ENOTSOCK = 38 ; // / Socket operation on non-socket
1874+ enum EDESTADDRREQ = 39 ; // / Destination address required
1875+ enum EMSGSIZE = 40 ; // / Message too long
1876+ enum EPROTOTYPE = 41 ; // / Protocol wrong type for socket
1877+ enum ENOPROTOOPT = 42 ; // / Protocol not available
1878+ enum EPROTONOSUPPORT = 43 ; // / Protocol not supported
1879+ enum ENOTSUP = 45 ; // / Operation not supported
1880+ enum EOPNOTSUPP = ENOTSUP ; // / Operation not supported on socket
1881+ enum EPFNOSUPPORT = 46 ; // / Protocol family not supported
1882+ enum EAFNOSUPPORT = 47 ; // / Address family not supported by protocol family
1883+ enum EADDRINUSE = 48 ; // / Address already in use
1884+ enum EADDRNOTAVAIL = 49 ; // / Can't assign requested address
1885+ enum ENETDOWN = 50 ; // / Network is down
1886+ enum ENETUNREACH = 51 ; // / Network is unreachable
1887+ enum ENETRESET = 52 ; // / Network dropped connection on reset
1888+ enum ECONNABORTED = 53 ; // / Software caused connection abort
1889+ enum ECONNRESET = 54 ; // / Connection reset by peer
1890+ enum ENOBUFS = 55 ; // / No buffer space available
1891+ enum EISCONN = 56 ; // / Socket is already connected
1892+ enum ENOTCONN = 57 ; // / Socket is not connected
1893+ enum ESHUTDOWN = 58 ; // / Can't send after socket shutdown
1894+ enum ETOOMANYREFS = 59 ; // / Too many refrences; can't splice
1895+ enum ETIMEDOUT = 60 ; // / Operation timed out
1896+ enum ECONNREFUSED = 61 ; // / Connection refused
1897+ enum ELOOP = 62 ; // / Too many levels of symbolic links
1898+ enum ENAMETOOLONG = 63 ; // / File name too long
1899+ enum EHOSTUNREACH = 65 ; // / No route to host
1900+ enum ENOTEMPTY = 66 ; // / Directory not empty
1901+ enum EPROCLIM = 67 ; // / Too many processes
1902+ enum EUSERS = 68 ; // / Too many users
1903+ enum EDQUOT = 69 ; // / Disc quota exceeded
1904+ enum ESTALE = 70 ; // / Stale NFS file handle
1905+ enum EREMOTE = 71 ; // / Too many levels of remote in path
1906+ enum EBADRPC = 72 ; // / RPC struct is bad
1907+ enum ERPCMISMATCH = 73 ; // / RPC version wrong
1908+ enum EPROGUNAVAIL = 74 ; // / RPC prog. not avail
1909+ enum EPROGMISMATCH = 75 ; // / Program version wrong
1910+ enum EPROCUNAVAIL = 76 ; // / Bad procedure for program
1911+ enum ENOLCK = 77 ; // / No locks available
1912+ enum ENOSYS = 78 ; // / Function not implemented
1913+ enum EFTYPE = 79 ; // / Inappropriate file type or format
1914+ enum EAUTH = 80 ; // / Authentication error
1915+ enum ENEEDAUTH = 81 ; // / Need authenticator
1916+ enum EIDRM = 82 ; // / Itendifier removed
1917+ enum ENOMSG = 83 ; // / No message of desired type
1918+ enum EOVERFLOW = 84 ; // / Value too large to be stored in data type
1919+ enum ECANCELED = 85 ; // / Operation canceled
1920+ enum EILSEQ = 86 ; // / Illegal byte sequence
1921+ enum ENOATTR = 87 ; // / Attribute not found
1922+ enum EDOOFUS = 88 ; // / Programming error
1923+ enum EBADMSG = 89 ; // / Bad message
1924+ enum EMULTIHOP = 90 ; // / Multihop attempted
1925+ enum ENOLINK = 91 ; // / Link has been severed
1926+ enum EPROTO = 92 ; // / Protocol error
1927+ enum ENOMEDIUM = 93 ;
1928+ enum EUNUSED94 = 94 ;
1929+ enum EUNUSED95 = 95 ;
1930+ enum EUNUSED96 = 96 ;
1931+ enum EUNUSED97 = 97 ;
1932+ enum EUNUSED98 = 98 ;
1933+ enum EASYNC = 99 ;
1934+ enum ELAST = 99 ; // / Must be equal largest errno
1935+ }
18251936else version (Solaris )
18261937{
18271938 enum EPERM = 1 /* * Not super-user */ ;
0 commit comments