|
UbixOS V2
2.0
|
#include <sys/types.h>#include <ubixos/sched.h>#include <ubixos/ubthread.h>#include <ubixos/kpanic.h>#include <lib/kprintf.h>#include <lib/kmalloc.h>#include <sys/sysproto_posix.h>#include <sys/descrip.h>#include "net/debug.h"#include "net/sys.h"#include "net/opt.h"#include "net/stats.h"#include <net/arch/sys_arch.h>#include <ubixos/spinlock.h>#include <ubixos/sem.h>
Go to the source code of this file.
Data Structures | |
| struct | thread_start_param |
Macros | |
| #define | ERR_NOT_READY 0 |
| #define | ERR_TIMED_OUT 1 |
| #define | INFINITE_TIME 0 |
| #define ERR_NOT_READY 0 |
Definition at line 20 of file sys_arch.c.
| #define ERR_TIMED_OUT 1 |
Definition at line 21 of file sys_arch.c.
| #define INFINITE_TIME 0 |
Definition at line 22 of file sys_arch.c.
| struct sys_timeouts* sys_arch_timeouts | ( | void | ) |
Definition at line 477 of file sys_arch.c.
| void sys_init | ( | void | ) |
Definition at line 32 of file sys_arch.c.
References gettimeofday().
Referenced by lwip_init().

| int sys_sendto | ( | struct thread * | td, |
| struct sys_sendto_args * | args | ||
| ) |
Definition at line 540 of file sys_arch.c.
References sys_sendto_args::buf, file::fd, sys_sendto_args::flags, getfd(), sys_sendto_args::len, sys_sendto_args::s, thread::td_retval, sys_sendto_args::to, and sys_sendto_args::tolen.

| int sys_setsockopt | ( | struct thread * | td, |
| struct sys_setsockopt_args * | args | ||
| ) |
Definition at line 529 of file sys_arch.c.
References file::fd, getfd(), kprintf(), sys_setsockopt_args::level, sys_setsockopt_args::name, sys_setsockopt_args::s, thread::td_retval, sys_setsockopt_args::val, and sys_setsockopt_args::valsize.

| int sys_socket | ( | struct thread * | td, |
| struct sys_socket_args * | args | ||
| ) |
Definition at line 502 of file sys_arch.c.
References sys_socket_args::domain, falloc(), file::fd, file::fd_type, fdestroy(), kprintf(), sys_socket_args::protocol, file::socket, thread::td_retval, and sys_socket_args::type.

| unsigned long sys_unix_now | ( | ) |
Definition at line 483 of file sys_arch.c.
References gettimeofday(), and timeval::tv_sec.
Referenced by sys_now().
