- Moved error codes to errno.h

- Removed non-working files for compilation via gcc.

git-svn-id: svn://kolibrios.org@8536 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
superturbocat2001
2021-01-15 21:48:24 +00:00
parent b29cc6670d
commit a61177b2ae
10 changed files with 63 additions and 200 deletions

View File

@@ -2,6 +2,7 @@
#define __SOCKET_H
#include <stddef.h>
#include <errno.h>
// Socket Types
#define SOCK_STREAM 1
@@ -53,27 +54,7 @@
//Socket options
#define SO_BINDTODEVICE (1<<9)
#define SO_NONBLOCK (1<<31)
// Error Codes
#define ENOBUFS 1
#define EINPROGRESS 2
#define EOPNOTSUPP 4
#define EWOULDBLOCK 6
#define ENOTCONN 9
#define EALREADY 10
#define EINVALUE 11
#define EMSGSIZE 12
#define ENOMEM 18
#define EADDRINUSE 20
#define ECONNREFUSED 61
#define ECONNRESET 52
#define EISCONN 56
#define ETIMEDOUT 60
#define ECONNABORTED 53
#define PORT(X) (X<<8)
extern int err_code;
#pragma pack(push,1)
struct sockaddr{