mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-22 00:32:44 +00:00
04a83f00f3
MKDIR:completely implemented LS/RM/MV/CP: combined switches KERNEL:SList API now handle options to handle several languages/parsers
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
NEW
|
||
AUTO 3,1
|
||
|
||
#define AF_LOCAL 0
|
||
#define AF_INET 2
|
||
#define AF_ETHERTALK 4
|
||
|
||
#define SOCK_RAW 0
|
||
#define SOCK_DGRAM 2
|
||
#define SOCK_SEQPACKET 4
|
||
#define SOCK_STREAM 6
|
||
|
||
#define SO_DEBUG 1
|
||
#define SO_ACCEPTCONN 2
|
||
#define SO_REUSEADDR 4
|
||
#define SO_KEEPALIVE 8
|
||
#define SO_DONTROUTE 16
|
||
#define SO_BROADCAST 32
|
||
#define SO_USELOOPBACK 64
|
||
#define SO_LINGER 128
|
||
|
||
typedef int sa_family_t;
|
||
typedef int ssize_t;
|
||
|
||
struct sockaddr
|
||
{
|
||
sa_family_t sa_family;
|
||
char sa_data[];
|
||
};
|
||
|
||
int socket(int, int, int);
|
||
int bind(int, const struct sockaddr *, socklen_t);
|
||
int connect(int, const struct sockaddr *, socklen_t);
|
||
int listen(int, int);
|
||
int accept(int, struct sockaddr *restrict, socklen_t *restrict);
|
||
int shutdown(int, int);
|
||
|
||
ssize_t recv(int, void *, size_t, int);
|
||
ssize_t send(int, const void *, size_t, int);
|
||
|
||
ssize_t recvfrom(int, void *restrict, size_t, int,struct sockaddr *restrict, socklen_t *restrict);
|
||
ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *,socklen_t);
|
||
|
||
int getsockopt(int, int, int, void *restrict, socklen_t *restrict);
|
||
int setsockopt(int, int, int, const void *, socklen_t);
|
||
|
||
MAN
|
||
TEXT include/sys/socket.h
|