|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|
#include <miniOS/net/unix_sock.h>#include <miniOS/sched/sched.h>#include <miniOS/io.h>#include <string.h>
Functions | |
| static int | ringbuf_avail (unix_sock_t *s) |
| static int | ringbuf_free (unix_sock_t *s) |
| unix_sock_t * | unix_sock_alloc (void) |
| void | unix_sock_free (unix_sock_t *s) |
| int | unix_sock_bind (unix_sock_t *s, const char *path) |
| int | unix_sock_listen (unix_sock_t *s, int backlog) |
| unix_sock_t * | unix_sock_accept (unix_sock_t *server) |
| int | unix_sock_connect (unix_sock_t *s, const char *path) |
| int | unix_sock_write (unix_sock_t *s, const void *buf, size_t len) |
| int | unix_sock_read (unix_sock_t *s, void *buf, size_t len) |
| int | unix_sock_socketpair (unix_sock_t **a, unix_sock_t **b) |
| int | unix_sock_close (unix_sock_t *s) |
| int | unix_sock_has_data (unix_sock_t *s) |
Variables | |
| static unix_sock_t | unix_pool [UNIX_SOCK_POOL_SIZE] |
|
static |

|
static |


| unix_sock_t * unix_sock_accept | ( | unix_sock_t * | server | ) |


| unix_sock_t * unix_sock_alloc | ( | void | ) |


| int unix_sock_bind | ( | unix_sock_t * | s, |
| const char * | path ) |


| int unix_sock_close | ( | unix_sock_t * | s | ) |


| int unix_sock_connect | ( | unix_sock_t * | s, |
| const char * | path ) |


| void unix_sock_free | ( | unix_sock_t * | s | ) |

| int unix_sock_has_data | ( | unix_sock_t * | s | ) |

| int unix_sock_listen | ( | unix_sock_t * | s, |
| int | backlog ) |

| int unix_sock_read | ( | unix_sock_t * | s, |
| void * | buf, | ||
| size_t | len ) |


| int unix_sock_socketpair | ( | unix_sock_t ** | a, |
| unix_sock_t ** | b ) |


| int unix_sock_write | ( | unix_sock_t * | s, |
| const void * | buf, | ||
| size_t | len ) |


|
static |