Started trying to get the syscall forwading stuff working between BOCHS and my native...
[akaros.git] / tools / syscall_server / translate_state.c
1 #include <sys/stat.h>
2 #include <stdio.h>
3 #include <newlib_stat.h>
4 #include "syscall_server.h"
5
6 void translate_stat(struct stat* native, struct newlib_stat* newlib) {
7         newlib->st_dev = native->st_dev;
8         newlib->st_ino = native->st_ino;
9         newlib->st_mode = native->st_mode;
10         newlib->st_nlink = native->st_nlink;
11         newlib->st_uid = native->st_uid;
12         newlib->st_gid = native->st_gid;
13         newlib->st_rdev = native->st_rdev;
14         newlib->st_size = native->st_size;
15         newlib->st_atim = native->st_atim.tv_nsec;
16         newlib->st_mtim = native->st_mtim.tv_nsec;
17         newlib->st_ctim = native->st_ctim.tv_nsec;
18         newlib->st_blksize = native->st_blksize;
19         newlib->st_blocks = native->st_blocks;
20 }
21 void translate_flags(int native, int newlib) {
22 }
23 void translate_mode(int native, int newlib) {
24 }
25 void translate_dir(int native, int newlib) {
26 }