diff options
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/netinet/if_ether.h | 1 | ||||
-rw-r--r-- | sys/include/sys/syscall.h | 1 | ||||
-rw-r--r-- | sys/include/sys/systm.h | 2 | ||||
-rw-r--r-- | sys/include/sys/time.h | 11 |
4 files changed, 13 insertions, 2 deletions
diff --git a/sys/include/netinet/if_ether.h b/sys/include/netinet/if_ether.h index 571622d..d3dc9b7 100644 --- a/sys/include/netinet/if_ether.h +++ b/sys/include/netinet/if_ether.h @@ -51,5 +51,6 @@ struct ether_frame { }; int arp_request(struct netif *nifp, uint8_t *sproto, uint8_t *tproto); +int arp_reply(struct netif *netif, uint8_t *sproto, uint8_t *tproto); #endif /* !_NETINET_IF_ETHER_H_ */ diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h index 37e2286..6d9dae6 100644 --- a/sys/include/sys/syscall.h +++ b/sys/include/sys/syscall.h @@ -52,6 +52,7 @@ #define SYS_munmap 11 #define SYS_access 12 #define SYS_lseek 13 +#define SYS_sleep 14 #if defined(_KERNEL) /* Syscall return value and arg type */ diff --git a/sys/include/sys/systm.h b/sys/include/sys/systm.h index 5d06257..42e1723 100644 --- a/sys/include/sys/systm.h +++ b/sys/include/sys/systm.h @@ -55,7 +55,5 @@ __sigraise(int signo) dispatch_signals(td); } -int hyra_install(void); - #endif /* _KERNEL */ #endif /* !_SYS_SYSTM_H_ */ diff --git a/sys/include/sys/time.h b/sys/include/sys/time.h index 37f3daf..8563fc7 100644 --- a/sys/include/sys/time.h +++ b/sys/include/sys/time.h @@ -31,16 +31,27 @@ #define _SYS_TIME_H_ #include <sys/types.h> +#if defined(_KERNEL) +#include <sys/syscall.h> +#endif /* _KERNEL */ struct timeval { time_t tv_sec; time_t tv_usec; }; +struct timespec { + time_t tv_sec; + long tv_nsec; +}; + struct date { uint8_t sec; uint8_t min; uint8_t hour; }; +#if defined(_KERNEL) +scret_t sys_sleep(struct syscall_args *scargs); +#endif #endif /* !_SYS_TIME_H_ */ |