Cleanup in elf.c with .bss section clean; adm command mounts cdrom instead of floppy...
[ZeXOS.git] / kernel / include / net / unix.h
blob5ae3f5e37cbbad30efda61486f729d80d3f54378
1 /*
2 * ZeX/OS
3 * Copyright (C) 2009 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _UNIX_H
20 #define _UNIX_H
22 #include <net/ip.h>
24 #define PROTO_UNIX_CONN_STATE_ESTABILISHED 0x1
26 /* Unix Domain connection structure */
27 typedef struct proto_unix_conn_context {
28 struct proto_unix_conn_context *next, *prev;
30 char *path;
32 unsigned short flags;
34 unsigned short state;
36 unsigned char bind;
38 unsigned short fd;
40 unsigned len;
41 char *data;
43 void *session;
44 } proto_unix_conn_t;
46 /* backlog for accept */
47 typedef struct proto_unix_backlog_context {
48 struct proto_unix_backlog_context *next, *prev;
50 proto_unix_conn_t *conn;
51 proto_unix_conn_t *session;
52 } proto_unix_backlog_t;
55 /* externs */
56 extern unsigned init_net_proto_unix ();
58 #endif