Re: [osv-dev] [RFC 2] libc: replace syscall call with variadic macro and inlined function

2020-08-09 Thread Nadav Har'El
On Mon, Aug 10, 2020 at 8:02 AM Waldemar Kozaczuk wrote: > In more complicated situations when single musl file > calls syscall() for 2 or more system call types (like stdio/tmpnam.o), > we cannot have single macro that will solve it like previous patch > did. > > In those cases we fallback to st

[osv-dev] [RFC 1] libc: replace syscall call with function calls using a macro

2020-08-09 Thread Waldemar Kozaczuk
In order to minimize copying musl source files that invoke syscall() into libc/ folder, we employ following scheme that works in simple cases: single .c files uses single syscall type. The scheme involves new header file - libc/syscall_to_function.h - that defines simple macros specific to each so

[osv-dev] [RFC 2] libc: replace syscall call with variadic macro and inlined function

2020-08-09 Thread Waldemar Kozaczuk
In more complicated situations when single musl file calls syscall() for 2 or more system call types (like stdio/tmpnam.o), we cannot have single macro that will solve it like previous patch did. In those cases we fallback to statically inlined functions defined for each syscall type. The defined

[osv-dev] [COMMIT osv master] libc: replace more include/api/ headers with their musl copies

2020-08-09 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master libc: replace more include/api/ headers with their musl copies All these headers were initially copied from an earlier version of musl as-is and have not been changed since on OSv side. Though they have changed on musl side between