[COMMIT osv-apps master] Added missing src directories to rust-example and rust-httpserver apps

2018-04-22 Thread Commit Bot
From: Waldemar Kozaczuk <jwkozac...@gmail.com> Committer: Waldemar Kozaczuk <jwkozac...@gmail.com> Branch: master Added missing src directories to rust-example and rust-httpserver apps Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com> --- diff --git a/rust-example

Re: Rust example

2018-03-23 Thread Nadav Har'El
p as rust was looking for > __res_init NOT res_init. I hacked the name in musl version of res_init.c to > __res_init it made rust example boot properly. > > What is the proper way to add __res_init? > I think you should make a copy of musl's res_init.c in our libc/, and modify that c

Re: Rust example

2018-03-23 Thread Geraldo Netto
_LIBC libc_hidden_def (__res_nclose) #endif #ifdef _LIBC # ifdef _LIBC_REENTRANT /* This is called when a thread is exiting to free resources held in _res. */ static void __attribute__ ((section ("__libc_thread_freeres_fn"))) res_thread_freeres (void) { if (_res.nscount == 0) /* Never cal

Rust example

2018-03-23 Thread Waldek Kozaczuk
/res_init.c int res_init() { return 0; } I added it to Makefile and this also did not help as rust was looking for __res_init NOT res_init. I hacked the name in musl version of res_init.c to __res_init it made rust example boot properly. What is the proper way to add __res_init? Waldek